Need an action to cast enchant party(utori mas sio) when magic level is decreased
Need an action to cast enchant party(utori mas sio) when magic level is decreased
One year without writing a single lua code, so tell me if it works or not.
init start
local MAGIC_LEVEL = 90
local SPELL = 'utori mas sio'
-- DO NOT EDIT BELOW THIS LINE
local SPELL_INFO = spellinfo(SPELL)
init end
auto(100,200)
if ( ($mlevel < MAGIC_LEVEL) and (SPELL_INFO.cancast) ) then
cast(SPELL_INFO.words) waitping()
end