Hi guys
I have problems with katana room quest script
closed door's id is 5107 and when you pull lever to the left the door opens and door id is 5109 then when pull lever to the right the door closes and lock so is needed doSetItemActionId(uid, actionid) I think
and I created something like this
but sometimes it's messed up look:
I need your help thanks!
I have problems with katana room quest script
![pNxAIFA.jpg](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FpNxAIFA.jpg&hash=9f103adf0400a9b602bf060db377dc98)
closed door's id is 5107 and when you pull lever to the left the door opens and door id is 5109 then when pull lever to the right the door closes and lock so is needed doSetItemActionId(uid, actionid) I think
and I created something like this
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1946 then
doRemoveItem(getTileItemById({x=32177, y=32148, z=11}, 5107).uid)
doCreateItem(5109, 1, {x=32177, y=32148, z=11})
doTransformItem(item.uid,item.itemid-1)
elseif item.itemid == 1945 then
doRemoveItem(getTileItemById({x=32177, y=32148, z=11}, 5109).uid)
doCreateItem(5107, 1, {x=32177, y=32148, z=11})
doTransformItem(item.uid,item.itemid+1)
![JZB32VF.jpg](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FJZB32VF.jpg&hash=66e17c6d8064d4c50c202f61d83e89e8)
I need your help thanks!