View Full Version : Enable spell when X
Whiplash
11-27-2015, 01:03 PM
Hi i need some help with a script i'm currently creating.
I have made a Rune-Maker / Larva hunter which works great but the only annoying thing is that it is always trying to cast the spell to create the rune.
Is there an easy way to enable/disable a particular spell when you reach the hunting area?
The only way i could think of was using a variable called 'inSpawn'. and while thats true cast the spell etc.
Any assistance appreciated, cheers!
shadowart
11-27-2015, 01:22 PM
One way would indeed be to make the runes using lua and then set a flag to disable the rune making when you enter the spawn. Another possibility might be to set the runes to require > 99% mana. Presumably you would never reach that in spawn if you set your potions a bit lower.
Whiplash
11-27-2015, 10:55 PM
One way would indeed be to make the runes using lua and then set a flag to disable the rune making when you enter the spawn. Another possibility might be to set the runes to require > 99% mana. Presumably you would never reach that in spawn if you set your potions a bit lower.
Shame, thought there might be a simple setting for this ;p
I'm hunting with a fire sword so shouldnt waste much mana besides healing occasionaly.
I have my healer setup as follows:
MP < 100 then SMP
HP < 90% then Exura
MP > 80% then make GFB
Ill just create it through lua. I think i have my head around it now...
I'm not 100% fluant with lua so my code may be terrible but;
local inSpawn == false
function onWalkerSelectLabel(labelName)
' other if statements
elseif(labelName == "ContinueHunt")
'other conditions in this if
inSpawn == true
end
while inSpawn do
'If i have more than 1 blank rune and more than 650 mana cast the spell every 10 seconds
if (Self.ItemCount(3147 > 1) and (Self.Mana() >= 650) then
Self.Cast("adori mas flam", 530)
wait(10000)
end
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.