• 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!

monster spell

theduck

Member
Joined
Dec 6, 2018
Messages
246
Reaction score
20
Code:
 function onCastSpell(cid, var)
 
local pos = getCreaturePosition(cid)

            
if  getTileItemById(pos,2725) == 1 then
   doCreatureSay(cid, "ok", TALKTYPE_ORANGE_1)
else
---doCreatureAddHealth(cid,-100)
 
doCreatureSay(cid, "no ok", TALKTYPE_ORANGE_1)
end


end

I'm trying to spell a monster
if you have the item id is next to the monster say 'ok' if not 'no ok'
 
Back
Top