Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def stand()
- return if dead?
- fput 'stand' until standing?
- end
- PRONE = /sleeping|webbed|stunned|kneeling|sitting|^lying|prone/
- def lounge()
- while (percentencumbrance > 10) do
- echo "You're too fat to hunt, lighten up!"
- break
- kill_script ("pheist")
- end
- if Room.current.id == 27161
- start_script "go2", ['27160']
- wait_while { running? 'go2' }
- fput "stow all"
- fput "get booklet from my #{Vars.bookletsack}"
- fput "go bandit"
- fput "put booklet in my #{Vars.bookletsack}"
- fput "gird"
- end
- end
- activespells = Array['9903','9904','9907','9908','9912','9913','909','515']
- def spellcheck(thesespells)
- thesespells.each { |nextspell|
- waitrt?
- waitcastrt?
- if nextspell == "909"
- fput("incant #{nextspell}") if !Spell[nextspell.to_i].active? && Spell[nextspell.to_i].affordable? && Spell[nextspell.to_i].known?
- waitcastrt?
- elsif nextspell == "515"
- fput("incant #{nextspell}") if !Spell[nextspell.to_i].active? && Spell[nextspell.to_i].affordable? && Spell[nextspell.to_i].known?
- else
- Spell[nextspell.to_i].cast if !Spell[nextspell.to_i].active? && Spell[nextspell.to_i].affordable? && Spell[nextspell.to_i].known?
- end
- }
- end
- def symbol()
- Spell[9903].cast if !Spell[9903].active? && Spell[9903].affordable? && Spell[9903].known?
- Spell[9904].cast if !Spell[9904].active? && Spell[9904].affordable? && Spell[9904].known?
- Spell[9907].cast if !Spell[9907].active? && Spell[9907].affordable? && Spell[9907].known?
- Spell[9908].cast if !Spell[9908].active? && Spell[9908].affordable? && Spell[9908].known?
- Spell[9912].cast if !Spell[9912].active? && Spell[9912].affordable? && Spell[9912].known?
- Spell[9913].cast if !Spell[9913].active? && Spell[9913].affordable? && Spell[9913].known?
- end
- start_script("go2", ["27160"])
- wait_while {running?("go2")}
- pause 0.5
- if Room.current.id == 27160
- fput "stow all"
- fput "look at book"
- pause 0.5
- echo " ***PAUSE ME NOW IF YOU WANT TO STOP LEAVING IN 10 SECONDS *******"
- echo " ***PAUSE ME NOW IF YOU WANT TO STOP LEAVING IN 10 SECONDS *******"
- sleep 10
- result = dothistimeout("get my booklet", 5, /You remove|Get what\?/)
- if result =~ /You remove/
- fput "go bandit"
- fput "put my booklet in my #{Vars.bookletsack}"
- elsif result =~ /Get what\?/
- respond 'Out of booklets!'
- kill_script ("pheist")
- end
- fput "gird"
- else
- lounge()
- end
- loop {
- 5.times{
- spellcheck(activespells)
- waitrt?
- waitcastrt?
- fput "gird"
- if Spell[916].known?
- Spell[916].cast if !Spell[916].active? && Spell[916].affordable? && Spell[916].known?
- else
- nil
- end
- waitrt?
- waitcastrt?
- result = dothistimeout("observe", 5, /The maruaders are hot on your trail\, perhaps pace around to make some extra footprints\!|strides in|stride in/)
- if result =~ /The maruaders are hot on your trail\, perhaps pace around to make some extra footprints\!/
- waitrt?
- fput "pace"
- waitrt?
- fput "steal"
- sleep 3.0
- waitrt?
- if checkright == "runestaff"
- nil
- else
- fput "put ##{GameObj.left_hand.id} in my #{Vars.lootsack}"
- end
- sleep 3.0
- break
- elsif result =~ /strides in|stride in/
- end
- sleep 0.1
- waitrt?
- waitcastrt?
- wait_while{ stunned? }
- target = GameObj.npcs.find{ |npc| npc.name =~ // }
- while GameObj.npcs.size > 0
- target = GameObj.npcs.find{ |npc| npc.name =~ // if npc.status !~ /dead|gone/ }
- waitrt? if !(target.status =~ /dead|gone/)
- waitcastrt? if !(target.status =~ /dead|gone/)
- while target.status !~ /dead|gone/
- if !(target.status =~ /dead|gone/)
- start_script "bigshot", [ "quick" ]
- wait_while {running?("bigshot")}
- end
- end
- end
- waitrt?
- waitcastrt?
- fput "stance defensive"
- if !Room.current.id == 23733
- fput "steal"
- sleep 3.0
- waitrt?
- if checkright == "runestaff"
- nil
- else
- fput "put ##{GameObj.left_hand.id} in my #{Vars.lootsack}"
- end
- else
- fput "steal"
- sleep 3.0
- waitrt?
- if checkright == "runestaff"
- nil
- else
- fput "put ##{GameObj.left_hand.id} in my #{Vars.lootsack}"
- end
- if checkleft
- fput "put ##{GameObj.left_hand.id} in my #{Vars.lootsack}"
- end
- break
- end
- sleep 1.0
- }
- sleep 3.0
- lounge()
- sleep 1.0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement