Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. /**
  2. * Teleportation Class
  3. * @author Aotearoa
  4. * Handles teleporting for players
  5. ***/
  6.  
  7. public class Teleportation {
  8. public int airId = 1,
  9. fireId = 1,
  10. waterId = 1,
  11. earthId = 1
  12. bodyId = 1,
  13. mindId = 1,
  14. lawId = 1;
  15. public void triggerTele2(int location, int height) {
  16. if (System.currentTimeMillis() - lastAction > 5000) {
  17. lastAction = System.currentTimeMillis();
  18. resetWalkingQueue();
  19. if(location == 1){ //Varrock
  20. if(playerHasItem(airId, 123){
  21. c.tX = 1234;
  22. c.tY = 5678;
  23. c.heightLevel = height;
  24. }
  25. if (location == 2){ //Lumbridge
  26. c.tX = 1234;
  27. c.tY = 5678;
  28. c.heightLevel = height;
  29. }
  30. followID = 0;
  31. followID2 = 0;
  32. ResetAttack();
  33. ResetAttackNPC();
  34. }
  35. }
  36. }
Add Comment
Please, Sign In to add comment