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

How to set action id door in a lua script?

pucus78

Cookie Monster
Joined
Jul 4, 2008
Messages
40
Reaction score
0
Hi,
I want set actionid door in the custom script from 61009 to 0. How do that?
Is that okey?
Code:
local doors = {x=32177, y=32148, z=11, stackpos=1}
local getdoors = getThingfromPos(doors) 

doSetItemActionId(getdoors.uid, 0)

..because it's don't work for me.
doSetItemActionId(getdoors.uid, 0) when done setactionid door on a 100
 
Code:
local dooritemid = XXXX
local doors = {x=32177, y=32148, z=11, stackpos=1}
local getdoors = getThingfromPos(doors) 
doRemoveItem(getdoors.uid)
doCreateItem(dooritemid, 1, doors)

Should get the job done, you obviously have to change the dooritemid at the top.
 
Code:
local dooritemid = XXXX
local doors = {x=32177, y=32148, z=11, stackpos=1}
local getdoors = getThingfromPos(doors) 
doRemoveItem(getdoors.uid)
doCreateItem(dooritemid, 1, doors)

Should get the job done, you obviously have to change the dooritemid at the top.

I thank you for devoted time, but I have advised already. I have written the same code earlier :)
 
Back
Top