priMELval

pchat macro

Feb 27th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. $${
  2.  
  3. // Bind to onSendChatMessage
  4.  
  5. IF(%KEYNAME%!="onSendChatMessage")
  6.  
  7.  
  8. // Copy and paste the following into the chat filter:
  9.  
  10. //Chat Filter
  11. IFMATCHES(%CHATCLEAN%,"^\(");
  12. IF(!@pchat)
  13. FILTER()
  14. ENDIF
  15. ENDIF
  16. //Chat Filter
  17.  
  18. ELSE
  19.  
  20. STRIP(&chat,%CHAT%)
  21. IFMATCHES(%&chat%,"^/pchat")
  22. IFMATCHES(%&chat%,"^/pchat on$")
  23. SET(@pchat)
  24. LOG("&6[&4Party&6] &aParty Chat On")
  25. ELSE
  26. IFMATCHES(%&chat%,"^/pchat off$")
  27. UNSET(@pchat)
  28. ECHO("/p off")
  29. LOG("&6[&4Party&6] &aParty Chat Off")
  30. ELSE
  31. IF(@pchat)
  32. UNSET(@pchat)
  33. ECHO("/p off")
  34. LOG("&6[&4Party&6] &aParty Chat Off")
  35. ELSE
  36. SET(@pchat)
  37. LOG("&6[&4Party&6] &aParty Chat On")
  38. ENDIF
  39. ENDIF
  40. ENDIF
  41. FILTER
  42. ENDIF
  43.  
  44. IFMATCHES(%&chat%,"\/p\b")
  45. IF(!@pchat)
  46. LOG("&6[&4Party&6] &cERROR: &aParty Chat is off.)
  47. FILTER
  48. ENDIF
  49. ENDIF
  50. ENDIF
  51. }$$
Advertisement
Add Comment
Please, Sign In to add comment