Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Auto Seraph's Embrace
- by x7x/Anonymous
- ]]
- local SEslot = nil
- local player = GetMyHero()
- function OnLoad()
- ASEConfig = scriptConfig("Auto Seraphs Embrace","AutoSE")
- ASEConfig:addParam("useSE", "Use Seraph's Embrace", SCRIPT_PARAM_ONOFF, true)
- ASEConfig:permaShow("useSE")
- PrintChat(">> Auto Seraph's Embrace loaded!")
- end
- function OnUnload()
- PrintChat(">> Auto Seraph's Embrace unloaded!")
- end
- function OnTick()
- if GetInventoryHaveItem(3040, player) then
- SEslot = GetInventorySlotItem(3040)
- SEReady = (SEslot ~= nil and myHero:CanUseSpell(SEslot))
- if SEReady then
- if player.health < (player.maxHealth*0.2) then
- if player:CanUseSpell(SEslot) then
- CastSpell(SEslot)
- end
- end
- end
- end
- end
- function OnDraw()
- SC__OnDraw()
- end
- function OnWndMsg(msg,key)
- SC__OnWndMsg(msg,key)
- end
- function OnSendChat(msg)
- TargetSelector__OnSendChat(msg)
- ts:OnSendChat(msg, "pri")
- end
Advertisement
Add Comment
Please, Sign In to add comment