xLosT
Member
need to add two more gates
The script removes only a wall, need to put 3 to remove wall
The script removes only a wall, need to put 3 to remove wall
PHP:
local gatepos = {x=313, y=592, z=7, stackpos=1}
function onUse(cid, item, frompos, item2, topos)
local getgate = getThingfromPos(gatepos)
if item.itemid == 1945 and getgate.itemid == 8538 then
doRemoveItem(getgate.uid, 1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(8538, 1, gatepos)
doTransformItem(item.uid, item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Last edited: