Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. $${
  2. &type = "unknown";
  3. //initiates type as unknown
  4.  
  5. //if chat = regex of actual chat message, do nothing
  6. IFMATCHES(%CHATCLEAN%,"^(\[(\S+)\] )?(\[(\S+)\] )?(\S+): (\.+)$")
  7. &type = "chat";
  8. MATCH(%CHATCLEAN%,"^(\[(\S+)\] )?(\[(\S+)\] )?(\S+): (\.+)$",{&temp,&parkour_rank,&temp,&donor_rank,&friendname,&message}
  9. ENDIF
  10.  
  11. //if chat message is equal to friendlist message, set type to friendlist
  12. IFMATCHES(%CHATCLEAN%,"^(\S+) is in (.+?)$")
  13. MATCH(%CHATCLEAN%,"^(\S+) is in (.+?)$",{&friendname});
  14. &type = "friendlist";
  15. ENDIF
  16.  
  17.  
  18.  
  19. IF(&type = "friendlist")
  20. Push(@&friendarray[],%&friendname%);
  21. //LOG(%&friendname%);
  22. //&arraysizee = ARRAYSIZE(@&friendarray[]);
  23. //LOG(%&arraysizee%);
  24. ENDIF;
  25.  
  26. //these lines worked without a delay and without button but very spammy
  27. //LOG(%&friendname%);
  28. //if type is friendlist, run command to invite to housing
  29. //IF(%&type% = "friendlist")
  30. // ECHO("/housing invite %&friendname%");
  31. //ENDIF
  32. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement