Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
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.
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
The plan is to make the NPC say its own name, so I need its uid.
As far as I have read out there, the getThingfromPos funcion is bugged. Anyway I don't need it anymore, I finally found the function that gives NPC uid.