habiba
New Member
why dose the switch not work?
I added UniqueID 4008 on the switch and no UniqueID on the framework wall = id 1037
the problem is that the switch not working.
I added UniqueID 4008 on the switch and no UniqueID on the framework wall = id 1037
the problem is that the switch not working.
PHP:
function onUse(cid, item, frompos, item2, topos)
rockpos = {x=32094, y=32149, z=10, stackpos=1}
getpiece = getThingfromPos(rockpos)
if item.uid == 4008 and item.itemid == 1945 and getpiece.itemid == 1037 then
doRemoveItem(getpiece.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 4008 and item.itemid == 1946 then
doCreateItem(1037,1,rockpos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end
end
PHP:
<action uniqueid="4008" script="Rookgaard quests/Rookgaard Quests.lua"/>
Last edited: