Ily.
|
Purpose: Updating Minimap For Newer Gameframes.
Difficulty: 3/10
Assumed Knowledge: Copy And Paste.
Classes Modified: Client.Java And Class30_Sub2_Sub1_Sub1.Java.
Refactored/Non-Refactored?: Non-Refactored.
Tested On: 317 Deob.
Step One:
Put this in Mehtod8 with the others.
Add this into Mehotd79 with the othersCustomMapback = null
Step Two:CustomMapback.method348(0, 16083, 0);
Search for:
Under that add thisaClass30_Sub2_Sub1_Sub2_1197 = new Class30_Sub2_Sub1_Sub2(class44_2, "mapback", 0);
Replace your method141 with thisCustomMapback = new Class30_Sub2_Sub1_Sub1(class44_2, "mapback", 0);
Step Three:public final void method141(Class30_Sub2_Sub1_Sub1 class30_sub2_sub1_sub1, int i, int j, boolean flag)
{
int k = anInt1185 + anInt1209 & 0x7ff;
int l = i * i + j * j;
if(flag)
return;
if(l > 6400)
return;
int i1 = Class30_Sub2_Sub4_Sub6.anIntArray1689[k];
int j1 = Class30_Sub2_Sub4_Sub6.anIntArray1690[k];
i1 = (i1 * 256) / (anInt1170 + 256);
j1 = (j1 * 256) / (anInt1170 + 256);
int k1 = j * i1 + i * j1 >> 16;
int l1 = j * j1 - i * i1 >> 16;
if(l > 2500)
{
class30_sub2_sub1_sub1.method354(aClass30_Sub2_Sub 1_Sub2_1197, false, 83 - l1 - class30_sub2_sub1_sub1.anInt1445 / 2 - 4, ((94 + k1) - class30_sub2_sub1_sub1.anInt1444 / 2) + 4);
CustomMapback.method348(0, 16083, 0); //test
return;
} else
{
class30_sub2_sub1_sub1.method348(((94 + k1) - class30_sub2_sub1_sub1.anInt1444 / 2) + 4, 16083, 83 - l1 - class30_sub2_sub1_sub1.anInt1445 / 2 - 4);
CustomMapback.method348(0, 16083, 0); //test
return;
}
}
Add this at the bottom on Client.Java with the rest
Search forprivate Class30_Sub2_Sub1_Sub1 CustomMapback;
Under that add thisClass30_Sub2_Sub1.method336(3, 78, 97, 0xffffff, 3, 0);
Step Four:CustomMapback.method348(0, 16083, 0);
Search for
Replace that withanIntArray1229
anIntArray1052
Step Five:for (int x = 0; x < anIntArray1229.length; x++){
anIntArray1229[x] = 175;
anIntArray1052[x] = -23;
Search this
Until you see something like thisif(anInt1023 != 2)
Replace it with thisif(anInt1023 != 2)
{
aClass15_1165.method238(4, 23680, super.aGraphics12, 4);
aClass15_1164.method238(4, 23680, super.aGraphics12, 550);
}
Search forif(anInt1023 != 2)
{
aClass15_1165.method238(4, 23680, super.aGraphics12, 4);
aClass15_1164.method238(4, 23680, super.aGraphics12, 526);
}
Replace it withaClass15_1164.method238
Step Six:aClass15_1164.method238(4, 23680, super.aGraphics12, 526);
Search for this in mehtod92
Replace it withif(super.anInt26 == 1)
Step Seven:if(super.anInt26 == 1)
{
int i = super.anInt27 - 25 - 527;
int j = super.anInt28 - 5 - 4;
if(i >= 0 && j >= 0 && i < 146 && j < 151)
Find this
replace it withaClass30_Sub2_Sub1_Sub2_1122 = new Class30_Sub2_Sub1_Sub2(class44_2, "compass", 0);
Find thisaClass30_Sub2_Sub1_Sub1_1122 = new Class30_Sub2_Sub1_Sub1(class44_2, "compass", 0);
replace it withaClass30_Sub2_Sub1_Sub2_1122 = null;
Find this (you should find it twice replace both of them)aClass30_Sub2_Sub1_Sub1_1122 = null;
Replace it with(33, anInt1185, anIntArray1057, 256, anIntArray968, -236, 25, 0, 0, 33, 25);
Find thisaClass30_Sub2_Sub1_Sub1_1122.method352(33, anInt1185, anIntArray1057, 256, anIntArray968, -236, 25, 3, 1, 33, 25);
Replace it withprivate Class30_Sub2_Sub1_Sub2 aClass30_Sub2_Sub1_Sub2_1122;
Step Eight:private Class30_Sub2_Sub1_Sub1 aClass30_Sub2_Sub1_Sub1_1122;
Find this
Replace it withaClass15_1164 = new Class15
FindaClass15_1164 = new Class15(239, 156, method11(0), 0);
Delete the whole 3 linesbackright1
Delete this
And delete thisaClass15_905 = null;
Also delete thisaClass15_905.method238
Step Nine:private Class15 aClass15_905;
Go into Class30_Sub2_Sub1_Sub1.Java
Add this somewhere with the rest (make sure you change the paths)
Step Ten:else if(s.equalsIgnoreCase("compass"))
{
try
{
Image image40 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append(signlink.findcachedir()+"/Sprites/").append(s).append(" ").append(i).append(".png").toString());
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber40 = new PixelGrabber(image40, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber40.grabPixels();
}
catch(Exception exception40)
{
System.out.println(exception40);
}
}
else if (s.equalsIgnoreCase("mapback") && i >= 0)
{
try {
Image image = Toolkit.getDefaultToolkit().getImage("./cache/Sprites/MAPBACK1 0.PNG");
anInt1440 = 239;
anInt1441 = 156;
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440 , anInt1441 , anIntArray1439, 0, anInt1440 );
pixelgrabber.grabPixels();
} catch (Exception exception) {
System.out.println(((Object) (exception)));
}
}
else if (s.startsWith("backvmid1") && i == 0)
{
try
{
Image image = Toolkit.getDefaultToolkit().getImage("./cache/Sprites/BACKVMID1 0.PNG");
anInt1440 = 10;
anInt1441 = 156;
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber.grabPixels();
}
catch (Exception exception)
{
System.out.println(((Object) (exception)));
}
}
Download this and add it into your client
UppIT - Free File hosting - Minimap.rar
And delete BACKRIGHT1 0 in your sprites folder if you like.
End result:
Perfect Clicking, Perfect Compass.
Credits:
Stewie 20%
Me 75%
Bluur 5%
Enjoy
Ily.
No problem
doesn't work for me, can you tell me which parts actually change the position of the map, and which parts change the clicking?
Step five and the first bit of step 6 however it won't work unless you do my tutorial this could of been alot shorter if i didn't include the custom mapback and the hardcoding but i didn't what people with out that to complain.
hmm, i successfully moved the minimap position, but now my dot and the little icons move around when rotating...
happen to know where the are set?
HAHAHA yeah i can remove that image if you like i just typed in Minimap runescape or something on google and it came up so i used it
Leech?? Link me where you posted
Last edited by failz; 09-27-2010 at 10:30 AM. Reason: Typo
Bump? And also swat im still looking for that link you said i leeched it from....
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |