Yes, I need to know the ID of an NPC for an NPC script, but I don't know how. I tried using something like "Self", "Self.id" and that stuff, but do not work.
ty
function creatureSayCallback(cid, type, msg)
msg = string.lower(msg)
if(npcHandler.focus ~= cid) then
return FALSE
end
if (msg == 'name') then
selfSay(getCreatureName(NPCid))
end
return TRUE
end
npcpos = {x.....
getnpc = getThingfromPos(npcpos)