Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init start
- local monsters = {'Dragon Lord', 'Dragon'}
- local monsterscount = 2
- local safelist = {}
- local checkplayers = true
- local consideronlyfloor = false
- local runeorspell = 'avalanche rune' -- Change this to 'avalanche', or 'stone shower', or 'thunderstorm', or 'great fireball'
- local spellmp = 0 -- mana that the spell waste -- Script By Derrek
- for i=1, #safelist do safelist[i] = safelist[i]:lower() end
- for i=1, #monsters do monsters[i] = monsters[i]:lower() end
- init end
- auto(100)
- local monstersaround,foundplayer,m,searchtype,i = 2, false
- foreach creature m '' do
- if m ~= $target and isonspellarea(m,'3x3') then
- local cname = m.name:lower()
- if m.ismonster then
- i = 1
- while (i <= #monsters) and (monsters[i] ~= cname) do
- i = i+1
- end
- if (i <= #monsters) or #monsters == 0 then
- monstersaround = monstersaround+1
- end
- elseif not foundplayer and (not consideronlyfloor or m.posz == $posz) then
- i = 1
- while (i <= #safelist) and (safelist[i] ~= cname) do
- i = i+1
- end
- if (i > #monsters) or #monsters == 0 then
- foundplayer = true
- end
- end
- end
- end
- if (monstersaround >= monsterscount) and (runeorspell ~= 'exori con' or $mp >= spellmp) and (not foundplayer) then
- if runeorspell == 'exori con' then
- cast(runeorspell)
- else
- useoncreature(runeorspell,$target)
- end
- wait(900,1200)
- end
Add Comment
Please, Sign In to add comment