• 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!

Lua unique id to created teleport

LuisPro

World War <3
Joined
May 10, 2009
Messages
425
Solutions
1
Reaction score
53
code:
addEvent(function() doTransformItem(getTileItemById({x = 33104, y = 31908, z = 10, stackpos=1}, 17999).uid, 1387) end, 120 * 1000)

how to add unique id to this created (transformed) teleport?


Thx for any help! :D
 
this is "create item with action id"
idk how to use this/include to my code to get tp with unique id :/

i need to keep dotransformitem and event with delay ;s
 
Code:
local function transformCrystal(pos, old, new)
     doTransformItem(getTileItemById(pos, old).uid, new)
     doSetItemActionId(getTileItemById(pos, new).uid, 2001)
     doSendMagicEffect(pos, CONST_ME_POFF)
     return true
end

addEvent(transformCrystal, 120 * 1000, {x = 97, y = 126, z = 7}, 17999, 1387)
 
Last edited:
Code:
local function transformCrystal(pos, old, new)
     doTransformItem(getTileItemById(pos, old).uid, new)
     doSendMagicEffect(pos, CONST_ME_POFF)
     return true
end

addEvent(transformCrystal, 120 * 1000, {x = 33104, y = 31908, z = 10}, 17999, 1387)
where is pleace for unique id ? :/
 
Back
Top