Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # partner script, if you have a hunting parter for MA'ing, this script works for diff things
- friendlist = ["Aethor","Aethorious", "Celebrim", "Sanch", "Ceba", "Arakus", "Issibella "]
- def wait_rt
- target_line = matchtimeout 4, "Roundtime:", "Cast Roundtime"
- if (target_line =~ /Roundtime\: (\d+) sec/i)
- sleep $1.to_f
- elsif (target_line =~ /Cast Roundtime (\d+) seconds/i)
- sleep $1.to_f
- end
- end
- def change_stance( new_stance, force = true )
- return if Spell[1617].active? || Spell[216].active? || dead?
- if( stance() =~ /#{new_stance}/ )
- return
- elsif( checkcastrt() > 0 && new_stance =~ /def/ )
- return if stance() == 'guarded'
- end
- if(force)
- result = dothistimeout( "stance #{new_stance}", 3, /You are now in an?|Cast Round Time in effect|You are unable to change/ )
- else
- fput "stance #{new_stance}"
- end
- end
- def stand()
- fput "stand" if !standing? && !muckled? && checkrt == 0
- until(standing?)
- change_stance('defensive')
- fput 'stand'
- end
- end
- def npcs
- npcs = GameObj.npcs.find_all { |i| i.status !~ /dead/ }
- end
- def spellactive
- if Char.name =~ /Ceba/
- if !Spell[716].active
- Spell[716].cast if mana(20)
- end
- if !Spell[712].active
- Spell[712].cast if mana(20)
- end
- if !Spell[1711].active
- multifput "get orb from my #{UserVars.lootsack}", "rub orb", "put orb in my #{UserVars.lootsack}"
- end
- if !Spell[1712].active
- multifput "get statue from my #{UserVars.lootsack}", "rub my statue", "put my statue in my #{UserVars.lootsack}"
- end
- elsif Char.name =~ /Arakus/
- if !Spell[1711].active
- multifput "get orb from my #{UserVars.lootsack}", "rub orb", "put orb in my #{UserVars.lootsack}"
- end
- if !Spell[1712].active
- multifput "get statue from my #{UserVars.lootsack}", "rub my statue", "put my statue in my #{UserVars.lootsack}"
- end
- end
- end
- while(true)
- target_line = waitfor("gestures at","rubs a small statue in his hand","gives his disk","offers you","is stunned","winks at you","swings a vultite falchion at", /\[Private\]\-/ )
- friendlist.each do |person|
- if(target_line =~ /#{person} winks at you./i)
- if mana?(60)
- fput "send 40 #{person}"
- else
- fput "wave #{person}"
- fput "snicker #{person}"
- end
- #elsif(target_line =~ /gives his disk./i)
- #fput "turn #{Char.name} disk"
- #exit
- elsif(target_line =~ /#{person} rubs a small statue in his hand./i)
- if !Spell[1712].active
- fput "put ##{GameObj.left_hand.id} in my #{UserVars.lootsack}"
- multifput "get my statue","rub my statue","stow my statue"
- waitcastrt?
- end
- elsif(target_line =~ /#{person} is stunned./i)
- if Char.name =~ /Ceba/
- if mana?(10)
- multifput "prep 108", "cast #{person}"
- end
- end
- elsif(target_line =~ /#{person} gestures at./i)
- if Char.name =~ /Issibella/
- stand() if !standing?
- multifput "stance off", "attack",
- waitrt?
- fput "stance defens"
- elsif Char.name =~ /Ceba/
- stand() if !standing?
- change_stance('guarded')
- Spell[702].cast if mana(10)
- waitcastrt?
- elsif Char.name =~ /Arakus/
- stand() if !standing?
- change_stance('guarded')
- Spell[1106].cast if mana(10)
- waitcastrt?
- elsif Char.name =~ /Celebrim/
- if mana?(10)
- stand() if !standing?
- change_stance('offensive')
- Spell[903].cast if mana(10)
- change_stance('guarded')
- waitcastrt?
- elsif
- multifput "stance offens", "put ##{GameObj.left_hand.id} in #{UserVars.lootsack}","get wand from my long", "wave wand at target", "stow wand", "stance defensive"
- waitcastrt?
- end
- elsif Char.name =~ /Sanch/
- stand() if !standing?
- change_stance('guarded')
- Spell[302].cast if mana(10)
- waitcastrt?
- end
- elsif(target_line =~ /#{person} offers you./i)
- fput "put ##{GameObj.left_hand.id} in #{UserVars.lootsack}"
- fput "accept"
- fput "put ##{GameObj.left_hand.id} in #{UserVars.lootsack}"
- if checkleft !=nil
- fput "put ##{GameObj.left_hand.id} in my #{UserVars.lootsack}"
- elsif checkright.nil?
- if Char.name =~ /Celebrim/
- fput "get my runestaff"
- elsif Char.name =~ /Issibella/
- fput "get my falchion"
- elsif Char.name =~ /Arakus/
- fput "get my runestaff"
- elsif Char.name =~ /Ceba/
- fput "get my runestaff"
- elsif Char.name =~ /Sanch/
- fput "get my runestaff"
- end
- end
- elsif(target_line =~ /#{person} swings a vultite falchion at./i)
- if Char.name =~ /Issibella/
- stand() if !standing?
- change_stance('offensive')
- fput "attack"
- waitrt?
- change_stance('guarded')
- elsif Char.name =~ /Ceba/
- stand() if !standing?
- #spellactive
- change_stance('guarded')
- Spell[702].cast if mana(10)
- waitcastrt?
- elsif Char.name =~ /Arakus/
- stand() if !standing?
- #spellactive
- change_stance('guarded')
- Spell[1106].cast if mana(10)
- waitcastrt?
- elsif Char.name =~ /Sanch/
- stand() if !standing?
- #spellactive
- change_stance('guarded')
- Spell[302].cast if mana(10)
- waitcastrt?
- elsif Char.name =~ /Celebrim/
- if mana?(10)
- stand() if !standing?
- #spellactive
- change_stance('offensive')
- Spell[903].cast if mana(10)
- change_stance('guarded')
- waitcastrt?
- elsif
- multifput "stance offens", "put ##{GameObj.left_hand.id} in #{UserVars.lootsack}","get wand from my long", "wave wand at target", "stow wand", "stance defensive"
- waitcastrt?
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement