Junior Spellweaver
- Joined
- Aug 12, 2006
- Messages
- 115
- Reaction score
- 2
Basicly this is just like runescapes teleporting were you teleport to diffent locations and requies runes
in player.java add
Now add:
Now add:
save and close.
Open up button.java
Add in front of
This:
now add the case 192: i.e spell book
THIS TUTORIAL HAS NOT BEEN MADE BY ME !
IT IS MADE BY T X FROM RUNE-SERVER
in player.java add
Code:
public static int VTeleX[] = {3210, 3212, 3213};
public static int VTeleY[] = {3424, 3422, 3424};
public static int LTeleX[] = {3222, 3223, 3220};
public static int LTeleY[] = {3217, 3219, 3219};
public static int FTeleX[] = {2964, 2966, 2963};
public static int FTeleY[] = {3378, 3380, 3381};
public static int CTeleX[] = {2758, 2755, 2758};
public static int CTeleY[] = {3480, 3477, 3478};
public static int ATeleX[] = {2664, 2665, 2659, 2662};
public static int ATeleY[] = {3301, 3306, 3307, 3311};
public static int WTeleX[] = {2545, 2544, 2548};
public static int WTeleY[] = {3112, 3115, 3113};
Now add:
Code:
public static int random(int i)
{
return (int)(Math.random() * (double)(i + 1));
}
Now add:
Code:
public void Varrock() {
requestAnim(8939, 0);
requestGFX(1576, 0);
teleportTimer = 4;
teleTimer = 6;
int rand = random(3);
wantToTeleportX = VTeleX[rand];
wantToTeleportY = VTeleY[rand];
}
public void Lumbridge() {
requestAnim(8939, 0);
requestGFX(1576, 0);
teleportTimer = 4;
teleTimer = 6;
int rand = random(3);
wantToTeleportX = LTeleX[rand];
wantToTeleportY = LTeleY[rand];
}
public void Falador() {
requestAnim(8939, 0);
requestGFX(1576, 0);
teleportTimer = 4;
teleTimer = 6;
int rand = random(3);
wantToTeleportX = FTeleX[rand];
wantToTeleportY = FTeleY[rand];
}
public void Camelot() {
requestAnim(8939, 0);
requestGFX(1576, 0);
teleportTimer = 4;
teleTimer = 6;
int rand = random(3);
wantToTeleportX = CTeleX[rand];
wantToTeleportY = CTeleY[rand];
}
public void Ardougne() {
requestAnim(8939, 0);
requestGFX(1576, 0);
teleportTimer = 4;
teleTimer = 6;
int rand = random(4);
wantToTeleportX = ATeleX[rand];
wantToTeleportY = ATeleY[rand];
}
public void WatchTower() {
requestAnim(8939, 0);
requestGFX(1576, 0);
teleportTimer = 4;
teleTimer = 6;
int rand = random(3);
wantToTeleportX = WTeleX[rand];
wantToTeleportY = WTeleY[rand];
}
save and close.
Open up button.java
Add in front of
Code:
Main.m.log("[" + p.playerIndex + "-" + p.username + "] Interface ID: " + interfaceId + ", button: " + button);
This:
Code:
PlayerItems pi = new PlayerItems();
now add the case 192: i.e spell book
Code:
case 192:
if(p.teleTimer < 0) {
if(button == 15) { // varrock
p.Varrock();
}
if(button == 18) { //lumbridge
p.Lumbridge();
}
if(button == 21) { // falador
p.Falador();
}
if(button == 26) { // camelot
p.Camelot();
}
if(button == 32) { // ardougne
p.Ardougne();
}
if(button == 37) { //watchtower
p.WatchTower();
}
}
break;
THIS TUTORIAL HAS NOT BEEN MADE BY ME !
IT IS MADE BY T X FROM RUNE-SERVER