Guest User

Untitled

a guest
Jan 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. start_script 'go2', [ '10835', '_disable_confirm_', 'typeahead=0' ]
  2.  
  3. @sancted = false
  4. while line = get
  5. if line =~ /sense of peace and calm settles over the area/
  6. @sancted = true
  7. elsif line =~ /sense of peace and security passes away from the area/
  8. @sancted = false
  9. end
  10. end
  11. while running?('go2')
  12. pause_for_them = ["construct", "qyn'arj"]
  13. t = Time.now
  14. wait_until{GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)} || (t + 3) < Time.now}
  15. rresult = false
  16. if GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)}
  17. pause_script('go2')
  18. Spell[213].cast unless @sancted
  19. wait_until{!GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)} || !@sancted}
  20. if !@sancted
  21. Spell[213].cast
  22. elsif !GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)}
  23. unpause_script('go2')
  24. end
  25. end
  26. end
  27. fput "incant 130"
Add Comment
Please, Sign In to add comment