You can guide me on how to define a doCreateMonster that was used in the onKill function so that I can define this function in onLogout?
local variable doesn't work, global variable is a problem when 2 players run the script
Lua:
function onKill(player, target)
a = doCreateMonster(xxxx)
return true
end
function onLogout(player)
doRemoveCreature(a)
return true
end
local variable doesn't work, global variable is a problem when 2 players run the script