Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- healRules = {
- {action="exura ico", mana=40, health=500},
- {action="health potion", health=400}
- }
- }
- Self.Heal = function ()
- for _, rules in ipairs(config.healRules) do
- if rules.health > Self.Health() then
- local item = Item.GetID(rules.action)
- if item ~= 0 then
- Self.UseItem(item)
- else
- Self.Cast(rules.action, rules.mana)
- end
- wait(400, 600)
- end
- end
- end
- while true do
- Self.Heal()
- wait(50)
- end
Add Comment
Please, Sign In to add comment