Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto(200)
- if getsetting('Targeting/Creatures/Dragon Lord/Setting1/OnlyIfTrapped') == "yes" and ($wptsection == "LeaveSpawn" or $wptsection == "Hunt" or $wptsection == "HuntFloor8" or $wptsection == "Hunt2") then
- if($wptsection == "LeaveSpawn") then
- foreach creature m 'mf' do
- local minfo = creatureinfo(m.name)
- if m.dist <= 8 and m.isshootable and itemcount("sudden death rune") > 0 and getarearunetile(false, unpack(Monsters)).amount < 4 then
- attack(m)
- useoncreature(itemid("sudden death rune"), m)
- end
- end
- else
- foreach creature m 'mf' do
- local minfo = creatureinfo(m.name)
- if m.dist <= 8 and m.isshootable and itemcount("sudden death rune") > 0 and getarearunetile(false, unpack(Monsters)).amount < 2 and (math.ceil(minfo.hp * math.min(m.hppc + 0.5, 100) / 100)) < (runeinfo("sudden death rune").avgdmg/50*minfo.deathmod) then
- attack(m)
- useoncreature(itemid("sudden death rune"), m)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement