• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Create a NPC

pasibun

New Member
Joined
Nov 7, 2011
Messages
147
Reaction score
1
Hello there,

I got a question..

Is it possible so have a item/talkaction what ever.. if you use the item it will summon a NPC next to you.
You can sell or buy your items at the NPC.
but the npc need to go away in about 5min..

Is this possible?
can some one help me with this?


thanks,
Pasibun
 
Moved this thread to Requests

- - - Updated - - -

yes, its possible


LUA:
function onSay(cid, words, param, channel)
    local npc = doCreateNpc(NPC_NAME, getCreaturePosition(cid))
    addEvent(doRemoveCreature, 5 * 60 * 1000, npc)
    return true
end
 
Back
Top