Advertisement
priMELval

regiontp macro

Jun 9th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. $${
  2. IF(%KEYNAME%="onSendChatMessage")
  3. IFMATCHES(%CHAT%,"^/(regiontp|rtp) (.*)")
  4. MATCH(%CHAT%,^/(regiontp|rtp) (.+),{&nothing,&region})
  5. ECHO(/rg i %&region%)
  6. SET(@timetotp,1)
  7. FILTER
  8. ENDIF
  9. ELSE
  10. IFMATCHES(%@timetotp%,1)
  11. STRIP(&chat,%CHAT%)
  12. IFMATCHES(%&chat%,"^Bounds: \((.*),0,(.*)\) ->")
  13. MATCH(%&chat%,"^Bounds: \((.*),0,(.*)\) ->",{&xtpto,&ytpto})
  14. ECHO(/tpc %&xtpto% %&ytpto%)
  15. SET(@timetotp,0)
  16. ELSE
  17.  
  18. IFMATCHES(%&chat%,"^No region could be found")
  19. SET(@timetotp,0)
  20. ENDIF
  21. ENDIF
  22. ENDIF
  23. ENDIF
  24. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement