hey this is just for the people out there that want the teleporting like in the 508 server's
you know emote, and gfx, then tele end with gfx, and emote
Code:
public int teleX = -1;
public int teleY = -1;
public int teleDelay = -1;
public int teleFinishGFX = 0;
public int teleFinishAnim = 0;
public int teleportToX = -1;
public int teleportToY = -1;
public int clickDelay = -1;
method
Code:
/**
* Teleporting by Glabay of Rune-Server
* Riped from Boneyard508
* boneyard.servegame.com
*/
public void teleportTo(int x, int y, int height, int delay, int distance, int emoteStart, int emoteEnd, int gfxStart, int gfxEnd) {
clickDelay = delay + 2;
teleDelay = delay;
toX = x;
toY = y;
heightLevel = height;
setAnimation(emoteStart);
specGFX(gfxStart);
teleFinishGFX = gfxEnd;
teleFinishAnim = emoteEnd;
}
and if you don't have this
Code:
public void setCoords(int x, int y, int height) {
teleportToX = x;
teleportToY = y;
heightLevel = height;
didTeleport = true;
}
Timers in Process
Code:
/*
* Teleporting timers by GLabay of Rune-Server
*/
if (teleDelay == 0) {
teleDelay = -1;
setCoords(toX, toY, heightLevel);
setAnimation(teleFinishAnim);
specGFX(teleFinishGFX);
toX = toY = -1;
}
if (teleDelay > 0) {
teleDelay--;
}
// END OF Glabay's Timers
useage command
Code:
if (cmd[0].equals("lumby")) {
c.teleportTo(3221, 3219, 0, 4, 0, EMOTE1, EMOTE2, GFX1, GFX2);
}
post errors if any I will fix