Hanryu

pirproom.cmd

May 31st, 2023 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. # Bestow pirps on the whole room
  2. #
  3. # Usage:
  4. # .pirproom #
  5. # default is 1
  6. #
  7. # By Hanryu
  8. # Please report any bugs to #Hanryu0052 (discord) or [email protected]
  9. # This script may be reused in whole or in part as long as credit is given
  10. #https://pastebin.com/aJmqKRJC
  11. # 2024-10-03
  12. # change from $roomplayers to also here to avoid huge crowds messing up the var
  13. debug 10
  14.  
  15. var points 3
  16. if_1 then {var points %1}
  17.  
  18. send set roombrief
  19. waitfor Ok.
  20. send look
  21. waitforre Also here: (.+)\.
  22. var names $1
  23.  
  24. if %names == "" then goto end
  25. eval names replacere("%names", "Also here: ", "")
  26. eval names replacere("%names", ", ", "|")
  27. eval names replacere("%names", " and ","|")
  28. eval names replacere("%names", "\.","")
  29. eval names replacere("%names", " \(\w+\)", "")
  30. eval names replacere("%names", "[\w'-]+ ", "")
  31. eval names replacere("%names", "\|", " ")
  32. send .pirp %points %names
  33. end:
  34. exit
  35.  
Advertisement
Add Comment
Please, Sign In to add comment