Hello!
I have this function in my script
And i got this error, whats wrong?
I have this function in my script
Lua:
local function Potwory4()
-- Not sure which one it will detect, so let's remove both ;) However we only need it looking for the first one if that monster exists.
if getCreatureName("Azerus Immortal") == TRUE then
doRemoveCreature(monster)
elseif monster = getCreatureName("Azerus") == TRUE then
doRemoveCreature(monster)
end
And i got this error, whats wrong?
Code:
[Error - LuaInterface::loadFile] data/actions/scripts/quests/yalahar_azerus_ques
t.lua:56: 'then' expected near '='
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/ya
lahar_azerus_quest.lua)
data/actions/scripts/quests/yalahar_azerus_quest.lua:56: 'then' expected near '=
'
Last edited: