Advertisement
nairdin

respondtolocate

May 8th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. =begin
  2. Respondtolocate
  3. Written by Nairdin
  4. Usage: ;respondtolocate "Your reply to folks who locate you"
  5. =end
  6.  
  7. if $SAFE > 0
  8. echo "error: This script needs to be trusted to work. (;trust #{script.name.downcase})"
  9. exit
  10. end
  11.  
  12.  
  13. silence_me
  14. Messages = Array.new;
  15. Recipients = Array.new
  16.  
  17. before_dying {
  18. respond "The following people have located you this session"
  19. respond " "
  20. Messages.each {|message|
  21. respond message
  22. }
  23. }
  24. oldtime=Time.now
  25. unless script.vars[0]
  26. echo "Usage ;respondtolocate as ;respondtolocate \"Your message here\""
  27. exit
  28. else
  29.  
  30. loop{
  31. line=get;
  32. if line =~ /\[lnet: sending location to GSIV:\](.*)/ then respond $1
  33.  
  34. end
  35. line="";
  36. pause 0.5
  37. oldtime=Time.now
  38. end
  39. }
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement