Another tutorial! Region loader!
Purpose: So people can't walk through your global objects while it's loading....
Difficulty: 1/10 Easy.
Assumed Knowledge: Copy n' paste.
Server base: Any.
Classes Modified: Client.java.
Go to Client.java. add this.
Code:
public void region()
{
RegionDelay = 15;
}
Now... search for "Public void process" and add this in.
Code:
if (RegionDelay >= 1) {
teleportToX = absX;
teleportToY = absY;
sendMessage("The region is loading... Please wait "+RegionDelay+" more seconds.");
}
Easy huh? Also put this **** in.
Code:
if(RegionDelay > 0)
RegionDelay -= 1;
Oh yeah, add this in too.
Code:
public int RegionDelay = 0;
That's it. Enjoy!
99% credits to me, 1% to BlazeScape for the idea. :p