This tutorial is only for people who use custom objects and that when ever you log in near them they take around a second to appear(object lag). Everyone else who does not have this problem, do not criticize me for posting a useless tutorial!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Description: Have you ever noticed how when you add custom objects to your server, sometimes it takes a second for them to appear? Well, the problem is if you build a wall using custom objects, you can place your character next to it, log out and back in and for a split second, you can actually walk through the wall because it takes a second for it to appear. For some reason, on my server, even the globalobject void has "object lag" too. My solution is whenever you log in, you need to make the screen blank, as well as the minimap, so that it gives the game long enough to load the objects.
Difficulty: 3/10
Assumed Knowledge: Ability to read.
Server Base: Pimpscape (should work on any)
Classes Modified: client.java
Step 1
First find the following code
Code:
public class client extends Player implements Runnable {
Step 2
Under that code add this
Code:
public int initTimer = 0;
public void initTimer(){
if(initTimer == 0){
initTimer = -1;
RemoveAllWindows();
frame99(0);
}
}
public void pause(int sec){
frame99(2);
showInterface(13583);
initTimer = sec;
}
Step 3
Under public boolean process() add
Step 4
Under public void initialize() add
Code:
pause(10);//Disables screen and minimap for approx 5 seconds
Conclusion
Now, all this does is disables the screen and minimap for around 5 seconds after you log in to give nearby objects to load before the player sees them. Now, they can't walk through custom made walls, etc. Some people may not have this problem with their objects, but some do. You may also want add the pause() void when there is a teleport to somewhere close to custom objects because the same problem will occur. Just add
when you are being teleported somewhere near custom objects. You will have to experiment some with this so that it fits your needs.
Credits: 100% me
(The screen and minimap is "paused" until everything loads)
© Copyright 2008 - Emerson Stewart