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

[REQUEST] Lever that creates a statue with an unique id

fexark

New Member
Joined
May 3, 2009
Messages
89
Reaction score
0
Hello guys, i need a lever that creates a statue with a unique id so i can edit it, i dont know the code, please someone can tell me it ?

Thanks
 
Lua:
local gatepos = {x=33314, y=31592, z=15, stackpos=1} -- write here statue position only 3 places to change.

function onUse(cid, item, frompos, item2, topos)
local getgate = getThingfromPos(gatepos)
	if item.itemid == 1945 and getgate.itemid == 1355 then -- 1355 replace to statue id
         doSetItemActionId(getgate.uid, actionid) -- dont know about unique but action and unique id is same shit just in other hand. replace action id to 8484
doTransformItem(item.uid, item.itemid+1)
end
return true
end
edited dhq :D

sorry writed in browser.
 
Back
Top