this is an easy tuturial
go to clickitem.java
search for
Code:
if (itemId != c.playerItems[itemSlot] - 1) {
return;
}
under }
add this add
Code:
if (itemId == 8007) { //Varrock Tele-tab
if(System.currentTimeMillis() - c.buryDelay > 1500) {
c.getItems().deleteItem(8007,c.getItems().getItemSlot(8007),1);
c.sendMessage("You break the teleport tab.");
c.startAnimation(4731);
c.gfx0(678);
c.getPA().movePlayer(3213, 3424, 0);
c.buryDelay = System.currentTimeMillis();
}
}
if (itemId == 8008) { //Lumbridge tab
if(System.currentTimeMillis() - c.buryDelay > 1500) {
c.getItems().deleteItem(8008,c.getItems().getItemSlot(8008),1);
c.sendMessage("You break the teleport tab.");
c.startAnimation(4731);
c.gfx0(678);
c.getPA().movePlayer(3222, 3218, 0);
c.buryDelay = System.currentTimeMillis();
}
}
if (itemId == 8009) { //Falador Tele-tab
if(System.currentTimeMillis() - c.buryDelay > 1500) {
c.getItems().deleteItem(8009,c.getItems().getItemSlot(8009),1);
c.sendMessage("You break the teleport tab.");
c.startAnimation(4731);
c.gfx0(678);
c.getPA().movePlayer(2965, 3379, 0);
c.buryDelay = System.currentTimeMillis();
}
}
if (itemId == 8010) { //Camelot Tele-tab
if(System.currentTimeMillis() - c.buryDelay > 1500) {
c.getItems().deleteItem(8010,c.getItems().getItemSlot(8010),1);
c.sendMessage("You break the teleport tab.");
c.startAnimation(4731);
c.gfx0(678);
c.getPA().movePlayer(2757, 3477, 0);
c.buryDelay = System.currentTimeMillis();
}
}
if (itemId == 8011) { // Ardougne tele-tab
if(System.currentTimeMillis() - c.buryDelay > 1500) {
c.getItems().deleteItem(8011,c.getItems().getItemSlot(8011),1);
c.sendMessage("You break the teleport tab.");
c.startAnimation(4731);
c.gfx0(678);
c.getPA().movePlayer(2661, 3305, 0);
c.buryDelay = System.currentTimeMillis();
}
}
if (itemId == 8012) { //Watchtower Tele-tab
if(System.currentTimeMillis() - c.buryDelay > 1500) {
c.getItems().deleteItem(8012,c.getItems().getItemSlot(8012),1);
c.sendMessage("You break the teleport tab.");
c.startAnimation(4731);
c.gfx0(678);
c.getPA().movePlayer(2549, 3112, 0);
c.buryDelay = System.currentTimeMillis();
}
}