Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. //=================================================================================
  2. // Type "/list" while in vanish with an item in your hand to teleport around.
  3. // You can pause the teleportation sequence by putting the item aside.
  4.  
  5. // If you want to exclude players from your tour list them as shown in the example.
  6. // Example: &tabu="Player1 Player2 Player3 Player4"
  7. &tabu="LexyDev stefm90 malaboo Kademlia"
  8.  
  9. // Enter the time you want to wait between teleports in seconds.
  10. // Example: #rest=5
  11. #rest=5
  12.  
  13. // This Macro was written by 22855.
  14. // Modify at own risk.
  15. //=================================================================================
  16.  
  17. ifmatches(%CHAT%,"^§3You have joined vanished. To appear: /vanish§r$")
  18. set(vanish)
  19. endif
  20. ifmatches(%CHAT%,"^§3You have vanished. Poof.§r$")
  21. set(vanish)
  22. endif
  23. ifmatches(%CHAT%,"^§3You have become visible.§r$")
  24. unset(vanish)
  25. endif
  26. if(vanish)
  27. ifmatches(%CHAT%,"^§6Players§r: §r(.+)§r$")
  28. getslotitem(%INVSLOT%,&item)
  29. if(&item!="air")
  30. match(%CHAT%,"^§6Players§r: §r(.+)§r$",{&list})
  31. split("§r§f, ",%&list%,&list[])
  32. &check=" %&tabu% "
  33. #i=0
  34. do
  35. if(%&list[%#i%]%!=%PLAYER%)
  36. ifcontains("%&check%"," %&list[%#i%]% ")
  37. else
  38. do
  39. getslotitem(%INVSLOT%,&item)
  40. if(!vanish)
  41. unset(&list[])
  42. log("§cYou became visible! The tour ended.")
  43. stop
  44. endif
  45. until(&item!="air")
  46. log("/tp %&list[%#i%]%")
  47. wait("%#rest%")
  48. endif
  49. endif
  50. inc(#i)
  51. while("%&list[%#i%]%")
  52. log("§3Your secret journey has come to an end!")
  53. endif
  54. endif
  55. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement