• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [TFS 1.0] if Param == is monster problem

TheChaos

Member
Joined
Sep 10, 2014
Messages
17
Reaction score
19
Hey I'm using TFS 1.0 the lastest compile,

I can't seem to get this check to work anyone got any ideas? :)

if isMonster(Param) == false then
doPlayerSendCancel(cid, "There isn't any monster named "..param..".")
doSendMagicEffect(pos, CONST_ME_POFF)
return false
end
 
Last edited:
Oh, I didn't spot it at first - the isMonster(...) function is used to determine whether an existing creature is a monster.
 
1. You could check for the existence of the monster's *.xml file.
2. Spawn it in a hidden location, if it gets spawned, kill it :D.
3. Write a C++ function to do it.
 
Back
Top