Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HealthStoneList = {"Major HealthStone", "Greater Healthstone", "HealthStone", "Lesser HealthStone", "Minor HealthStone"} -- ordered from highest to lowest
- local HealthStoneSpells = {"Create Healthstone (Major)", "Create Healthstone (Greater)", "Create Healthstone", "Create Healthstone (Lesser)", "Create Healthstone (Minor)"} -- same order as the list before
- local HasHealthstone
- for j=1, table.getn(HealthStoneList),1 do
- if HasItem(HealthStoneList[j]) == 1 then
- HasHealthstone = true
- break
- end
- end
- if not HasHealthStone then
- for i=1, table.getn(HealthStoneList),1 do
- if HasItem(HealthStoneList[i]) == 0
- and IsInCombat() == 0
- and LocalMana > 25
- and HasSpell(HealtStoneSpells[i]) then
- CastSpellByName(HealthStoneSpells[i])
- return
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement