kryxkan

chatooltip

Feb 17th, 2015
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. on chat:
  2. message contains "TOOLTIP":
  3. set {_message} to message
  4. replace all "TOOLTIP" with "##" in {_message}
  5. set {_1} to index of "##" in {_message}
  6. set {_2} to subtext of {_message} from character ({_1}+1) to
  7. character (length of {_message}-1)
  8. set {_mess} to message
  9. replace all "TOOLTIP%{_2}%TOOLTIP" with "" in {_mess}
  10. loop all players:
  11. send json message "%player's group%%player's name%:%{_mess}%" tooltip "%{_2}%" to all players
Advertisement
Add Comment
Please, Sign In to add comment