Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start_script 'go2', [ '10835', '_disable_confirm_', 'typeahead=0' ]
- @sancted = false
- while line = get
- if line =~ /sense of peace and calm settles over the area/
- @sancted = true
- elsif line =~ /sense of peace and security passes away from the area/
- @sancted = false
- end
- end
- while running?('go2')
- pause_for_them = ["construct", "qyn'arj"]
- t = Time.now
- wait_until{GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)} || (t + 3) < Time.now}
- rresult = false
- if GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)}
- pause_script('go2')
- Spell[213].cast unless @sancted
- wait_until{!GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)} || !@sancted}
- if !@sancted
- Spell[213].cast
- elsif !GameObj.npcs.find{|npc| pause_for_them.include?(npc.noun)}
- unpause_script('go2')
- end
- end
- end
- fput "incant 130"
Add Comment
Please, Sign In to add comment