AdamGrzegorz

2 chat

Dec 25th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. options:
  2. guild.tagformat: format tagu gildii
  3. guild.chat: chat gracza / default
  4. guild.chat2: chat admina/innej rangi
  5. # itd
  6.  
  7. on load:
  8. set {guild.chat} to "{@guild.chat}"
  9. set {guild.chat2} to "{@guild.chat2}"
  10.  
  11.  
  12. on chat:
  13. set {_chat} to {guild.chat}
  14. {skGuilds::inGuild::%player%} is set:
  15. set {_tag} to {skGuilds::inGuild::%player%}
  16. {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
  17. set {_tag} to {skGuilds::inGuild::%player%}
  18. if {_tag} is not set:
  19. replace all "{RANK}" with "%{skGuilds::Ranking::%player%}%" in {_chat}
  20. replace all "{NICK}" with "%player%" in {_chat}
  21. replace all "{MSG}" with "%message%" in {_chat}
  22. replace all "{TAG}" with "" in {_chat}
  23. replace all "Â" with "" in {_chat}
  24. broadcast "%{_chat}%"
  25. cancel event
  26. stop
  27. replace all "{RANK}" with "%{skGuilds::Ranking::%player%}%" in {_chat}
  28. replace all "{NICK}" with "%player%" in {_chat}
  29. replace all "{MSG}" with "%message%" in {_chat}
  30. replace all "Â" with "" in {_chat}
  31. replace all "{TAG}" with "{@guild.tagformat}" in {_chat}
  32. broadcast "%{_chat}%"
  33. cancel event
  34. if player is "nick":
  35. set {_chat2} to {guild.chat2}
  36. {skGuilds::inGuild::%player%} is set:
  37. set {_tag} to {skGuilds::inGuild::%player%}
  38. {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
  39. set {_tag} to {skGuilds::inGuild::%player%}
  40. if {_tag} is not set:
  41. replace all "{RANK2}" with "%{skGuilds::Ranking::%player%}%" in {_chat2}
  42. replace all "{NICK2}" with "%player%" in {_chat2}
  43. replace all "{MSG2}" with "%message%" in {_chat2}
  44. replace all "{TAG2}" with "" in {_chat2}
  45. replace all "Â" with "" in {_chat2}
  46. broadcast "%{_chat2}%"
  47. cancel event
  48. stop
  49. replace all "{RANK2}" with "%{skGuilds::Ranking::%player%}%" in {_chat2}
  50. replace all "{NICK2}" with "%player%" in {_chat2}
  51. replace all "{MSG2}" with "%message%" in {_chat2}
  52. replace all "Â" with "" in {_chat2}
  53. replace all "{TAG}" with "{@guild.tagformat}" in {_chat2}
  54. broadcast "%{_chat2}%"
  55. cancel event
  56. stop
Advertisement
Add Comment
Please, Sign In to add comment