lua code:
hastespell = 'utani gran hur'
-------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onLabel")
function onLabel(label)
if label == 'togglehaste' then
toggleHaste()
elseif label == 'hasteoff' then
toggleHaste(false)
elseif label == 'hasteon' then
toggleHaste(true)
end
end
function toggleHaste(state)
state = state or 'x'
if state then
haste:Stop()
elseif not state then
haste:Start()
elseif state == 'x' then
if haste:IsActive() then
haste:Stop()
elseif not haste:IsActive() then
haste:Start()
end
end
end
haste = Module.New('haste', function(haste)
if not Self.isHasted() and not Self.isInPz() then
if Self.GetSpellCooldown(hastespell) == 0 and Self.Mana() > 100 then
repeat
Self.Say(hastespell)
wait(500)
until Self.GetSpellCooldown(hastespell) > 0
end
end
end, false)
It will be turned off when you load it, when you hit the label "togglehaste" or "hasteon" it will turn haste on, then if you hit "hasteoff" it will turn off, so just put "hasteon" like 2-3 nodes outside of DP "hasteoff" wherever you want.