function onStepIn(cid, item, frompos, itemEx, topos)
if item.itemid == XXXX then
doPlayerSendTextMessage(cid,21,"Argh!",
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return true
end
doCreatureSay(cid, "Argh!", TALKTYPE_SAY)
return true
end
I am new to lua scripting. I wanna learn so im gonna try help you out
Correct me if im wrongLUA:function onStepIn(cid, item, frompos, itemEx, topos) if item.itemid == XXXX then doPlayerSendTextMessage(cid,21,"Argh!", return TRUE end
wrong function missing bracket and badly made.