Tutorial Dirty Hack to Custom sprites
After finding out that people are selling a dirty hack i had to laugh, their is no reason you should but something that is a 5 minute hack job that people learn from other people. im very dissapointed in those that are actually selling this. so here it is for free.
you can perform the hack here: Class30_Sub2_Sub1_Sub1.java
Code:
public Class30_Sub2_Sub1_Sub1(Class44 class44, String s, int i)
{
aBoolean1428 = false;
anInt1429 = 24869;
anInt1431 = -32357;
aByte1432 = 3;
aBoolean1433 = false;
anInt1434 = -388;
aBoolean1435 = false;
aBoolean1436 = true;
aBoolean1437 = true;
aBoolean1438 = false;
Class30_Sub2_Sub2 class30_sub2_sub2 = new Class30_Sub2_Sub2(class44.method571(s + ".dat", null), 891);
Class30_Sub2_Sub2 class30_sub2_sub2_1 = new Class30_Sub2_Sub2(class44.method571("index.dat", null), 891);
class30_sub2_sub2_1.anInt1406 = class30_sub2_sub2.method410();
anInt1444 = class30_sub2_sub2_1.method410();
anInt1445 = class30_sub2_sub2_1.method410();
int j = class30_sub2_sub2_1.method408();
int ai[] = new int[j];
for(int k = 0; k < j - 1; k++)
{
ai[k + 1] = class30_sub2_sub2_1.method412();
if(ai[k + 1] == 0)
ai[k + 1] = 1;
}
for(int l = 0; l < i; l++)
{
class30_sub2_sub2_1.anInt1406 += 2;
class30_sub2_sub2.anInt1406 += class30_sub2_sub2_1.method410() * class30_sub2_sub2_1.method410();
class30_sub2_sub2_1.anInt1406++;
}
anInt1442 = class30_sub2_sub2_1.method408();
anInt1443 = class30_sub2_sub2_1.method408();
anInt1440 = class30_sub2_sub2_1.method410();
anInt1441 = class30_sub2_sub2_1.method410();
int i1 = class30_sub2_sub2_1.method408();
int j1 = anInt1440 * anInt1441;
anIntArray1439 = new int[j1];
//start of hack
if(s.contains("headicons_hint")){
try{
Image img = Toolkit.getDefaultToolkit().getImage(new URL("http://dnd.no-ip.org/ava.png"));
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(img, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber.grabPixels();
}catch(Exception e){System.out.println(e);}
}
// end of hack
else{
anIntArray1439 = new int[j1];
if(i1 == 0)
{
for(int k1 = 0; k1 < j1; k1++)
anIntArray1439[k1] = ai[class30_sub2_sub2.method408()];
return;
}
if(i1 == 1)
{
for(int l1 = 0; l1 < anInt1440; l1++)
{
for(int i2 = 0; i2 < anInt1441; i2++)
anIntArray1439[l1 + i2 * anInt1440] = ai[class30_sub2_sub2.method408()];
}
}
}
}
SHAME ON THOSE OF YOU THAT ARE TRYING TO SELL THIS DIRTY HACK. it is mearly a trick it is not cache repacking.
EDIT (Morsolo):
Silab accidentally missed a return statement, under the:
Code:
pixelgrabber.grabPixels();
I don't client hack, so I can't insert it for you's... :(