Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. custom_require.call(%w[common common-arcana common-healing common-items common-summoning common-travel drinfomon equipmanager events spellmonitor])
  2.  
  3. def mainloop
  4. ignore_npcs = %w[Usdiwi Servant]
  5. npcs = DRRoom.npcs - ignore_npcs
  6. loop do
  7. watch_complete = false
  8. if npcs != DRRoom.npcs - ignore_npcs
  9.  
  10. while !DRRoom.npcs.empty? && watch_complete == false
  11. target = DRRoom.npcs.first
  12. waitrt?
  13. case bput("watch #{target}", 'you could try to pedal', 'you could try to bob', 'you could try to duck', 'you could try to jump', 'you could try to lean', 'you could try to cower', '.*')
  14. when 'you could try to pedal'
  15. bput('pedal', '.*')
  16. watch_complete = true
  17. when 'you could try to bob'
  18. bput('bob', '.*')
  19. watch_complete = true
  20. when 'you could try to duck'
  21. bput('duck', '.*')
  22. watch_complete = true
  23. when 'you could try to jump'
  24. bput('jump', '.*')
  25. watch_complete = true
  26. when 'you could try to lean'
  27. bput('lean', '.*')
  28. watch_complete = true
  29. when 'you could try to cower'
  30. bput('cower', '.*')
  31. watch_complete = true
  32. end
  33. end
  34.  
  35. end
  36. npcs = DRRoom.npcs - ignore_npcs
  37. pause 1
  38. end
  39. end
  40.  
  41. def bput(message, *matches)
  42. DRC.bput(message, *matches)
  43. end
  44.  
  45. mainloop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement