In a delta source, when you walk around about every 20 seconds u get much lagg and lots of errors on walking bcuz the area loading packet also places objects everywhere in the worldmap. mostly for no reason, this will get rid of it:
first in client.java add these method:
for adding an object
usage:
makeGlobalObject(absX, absY, objectId, face, type, height);
Code:
public void makeGlobalObject(int i, int j, int k, int l, int i1, int j1)
{
int k1 = mapX - 6;
int l1 = mapY - 6;
int i2 = i - k1 * 8;
int j2 = j - l1 * 8;
byte byte0 = 10;
int k2 = anIntArray1177[byte0];
if(j2 > 0 && j2 < 103 && i2 > 0 && i2 < 103)
method130(404, -1, k, l, k2, j2, i1, j1, i2, 0);
}
and for deleting one:
usage:
deletethatobject(absX, absY);
Code:
public void deletethatobject(int i, int j)
{
int k1 = mapX - 6;
int l1 = mapY - 6;
int i2 = i - k1 * 8;
int j2 = j - l1 * 8;
byte byte0 = 10;
int k2 = anIntArray1177[byte0];
if(j2 > 0 && j2 < 103 && i2 > 0 && i2 < 103)
method130(404, -1, 6951, -1, k2, j2, 10, 0, i2, 0);
}
then add this method:
Code:
public void loadNewObjects() {
}
and within it, add all your makeglobalobject, and deleteobject stuff.[/B]
now in method22 add:
declare these:
Code:
public static int MapX;
public static int MapY;
public static int mapX;
public static int mapY;
now look for:
Code:
if(anInt1008 == 73)
{
l2 = aClass30_Sub2_Sub2_1083.method435(true);
i11 = aClass30_Sub2_Sub2_1083.method410();
aBoolean1159 = false;
}
and replace it with:
Code:
if(anInt1008 == 73)
{
l2 = mapX = MapX = aClass30_Sub2_Sub2_1083.method435(true);
i11 = mapY = MapY = aClass30_Sub2_Sub2_1083.method410();
aBoolean1159 = false;
}
All done