PDA

View Full Version : StrongHaste if not Warlock on screen



slawek170
04-24-2016, 11:39 AM
Hello all, I need a script that will use strong haste without Warlock on the screen, will help anyone? Thanks

Adrax 13
06-07-2016, 02:21 PM
Older post but someone else may be a bit interested !
If you've seen any of my other posts you'll know I <3 modules

The way you can do this is like so:



hasteSpell = "Utani Gran Hur"
spellTime = 30000 --Every 30 seconds it'll cast the spell if a warlocks not on the screen
Module.New('Run Warlocks!', function(Mod)
if Creature("Warlock"):isOnScreen() == false then
Self.Say(hasteSpell)
end
Mod:Delay(spellTime)
end)

Fatality
06-09-2016, 12:08 AM
Older post but someone else may be a bit interested !
If you've seen any of my other posts you'll know I <3 modules

The way you can do this is like so:



hasteSpell = "Utani Gran Hur"
spellTime = 30000 --Every 30 seconds it'll cast the spell if a warlocks not on the screen
Module.New('Run Warlocks!', function(Mod)
if Creature("Warlock"):isOnScreen() == false then
Self.Say(hasteSpell)
end
Mod:Delay(spellTime)
end)


It'll work in theory, but if for some reason the haste spell is interrupted, you're left for 30 seconds without being hasted, this is a better alternative:

Edit: Why'd you respond to a dead thread.

hasteSpell = "Utani Gran Hur"
Module.New('Run Warlocks!', function(Mod)
if Creature("Warlock"):isOnScreen() == false and not Self.isHasted() then
Self.Say(hasteSpell)
end
Mod:Delay(1000)
end)

Adrax 13
06-09-2016, 06:06 AM
It'll work in theory, but if for some reason the haste spell is interrupted, you're left for 30 seconds without being hasted, this is a better alternative:

Edit: Why'd you respond to a dead thread.

hasteSpell = "Utani Gran Hur"
Module.New('Run Warlocks!', function(Mod)
if Creature("Warlock"):isOnScreen() == false and not Self.isHasted() then
Self.Say(hasteSpell)
end
Mod:Delay(1000)
end)


I forgot about the ishasted, thanks for the tip!
I didn't think it was dead? Its only a little over a month old. I figured I'd try to help if anyone else (or original poster) was curious about the answer

EDIT:
I was also just looking in the Lua scripts section seeing if people needed help in general (posted on a few to help out) I didn't realize that the first page dates back to march. Not many postings anymore..