Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. auto(200)
  2. if getsetting('Targeting/Creatures/Dragon Lord/Setting1/OnlyIfTrapped') == "yes" and ($wptsection == "LeaveSpawn" or $wptsection == "Hunt" or $wptsection == "HuntFloor8" or $wptsection == "Hunt2") then
  3. if($wptsection == "LeaveSpawn") then
  4. foreach creature m 'mf' do
  5. local minfo = creatureinfo(m.name)
  6. if m.dist <= 8 and m.isshootable and itemcount("sudden death rune") > 0 and getarearunetile(false, unpack(Monsters)).amount < 4 then
  7. attack(m)
  8. useoncreature(itemid("sudden death rune"), m)
  9. end
  10. end
  11. else
  12. foreach creature m 'mf' do
  13. local minfo = creatureinfo(m.name)
  14. 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
  15. attack(m)
  16. useoncreature(itemid("sudden death rune"), m)
  17. end
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement