Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=================================================================================
- // Type "/list" while in vanish with an item in your hand to teleport around.
- // You can pause the teleportation sequence by putting the item aside.
- // If you want to exclude players from your tour list them as shown in the example.
- // Example: &tabu="Player1 Player2 Player3 Player4"
- &tabu="LexyDev stefm90 malaboo Kademlia"
- // Enter the time you want to wait between teleports in seconds.
- // Example: #rest=5
- #rest=5
- // This Macro was written by 22855.
- // Modify at own risk.
- //=================================================================================
- ifmatches(%CHAT%,"^§3You have joined vanished. To appear: /vanish§r$")
- set(vanish)
- log("§fVanish§7h§8h§0h...")
- endif
- ifmatches(%CHAT%,"^§3You have vanished. Poof.§r$")
- set(vanish)
- log("§fVanish§7h§8h§0h...")
- endif
- ifmatches(%CHAT%,"^§3You have become visible.§r$")
- unset(vanish)
- log("§0.§8.§7.§fBack to normal.")
- endif
- if(vanish)
- ifmatches(%CHAT%,"^§6Players§r: §r(.+)§r$")
- getslotitem(%INVSLOT%,&item)
- if(&item!="air")
- match(%CHAT%,"^§6Players§r: §r(.+)§r$",{&list})
- split("§r§f, ",%&list%,&list[])
- &check=" %&tabu% "
- #i=0
- do
- if(%&list[%#i%]%!=%PLAYER%)
- ifcontains("%&check%"," %&list[%#i%]% ")
- else
- do
- getslotitem(%INVSLOT%,&item)
- if(!vanish)
- &list[]=""
- log("§cYou became visible! The tour ended.")
- break
- endif
- until(&item!="air")
- log("/tp %&list[%#i%]%")
- wait("%#rest%")
- endif
- endif
- inc(#i)
- while("%&list[%#i%]%")
- endif
- log("§3Your secret journey has come to an end!")
- endif
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement