Dankoo
Active Member
- Joined
- Sep 4, 2010
- Messages
- 1,007
- Reaction score
- 27
Hello
I've managed to an NPC create an teleport, by adding this code:
The teleport is created normally, but it's UniqueID isn't set
What should I change so UniqueID 5301 is set on it?
thanks a lot ;] :thumbup:
I've managed to an NPC create an teleport, by adding this code:
Lua:
elseif msgcontains(msg, 'task') then
if getStorage == tasks[i].finish_storage_value then
if tasks[i].boss == "yes" then
selfSay("Good job, go kill boss.", cid)
setPlayerStorageValue(cid, main_storage, tasks[i].before_kill_boss)
local teleportId = 1387
local portal_in_pos = {x = 32345, y = 31799, z = 7}
local position = portal_in_pos
local teleport = doCreateItem(teleportId,255,position)
doSetItemUniqueId(teleport, 5301)
The teleport is created normally, but it's UniqueID isn't set
What should I change so UniqueID 5301 is set on it?
thanks a lot ;] :thumbup: