I'm using [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 from here.
Hello guys, I have no idea why this script is not working.
There is no errors in engine, when I click on switch, there is no errors but stones are not
disappear Anyone knows how why?
Hello guys, I have no idea why this script is not working.
Lua:
function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=1623, y=1408, z=6, stackpos=1}
gate1pos = {x=1624, y=1404, z=6, stackpos=1}
gate2pos = {x=1625, y=1404, z=6, stackpos=1}
gate3pos = {x=1626, y=1404, z=6, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
getgate1 = getThingfromPos(gate1pos)
getgate2 = getThingfromPos(gate2pos)
getgate3 = getThingfromPos(gate3pos)
if item.uid == 10339 and item.itemid == 1945 and getpiece1.itemid == 2366 and getgate1.itemid == 1304 and getgate2.itemid == 1304 and getgate3.itemid == 1304 then
doRemoveItem(getpiece1.uid,1)
doRemoveItem(getgate1.uid,1)
doRemoveItem(getgate2.uid,1)
doRemoveItem(getgate3.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 10339 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end
There is no errors in engine, when I click on switch, there is no errors but stones are not
disappear Anyone knows how why?
Last edited by a moderator: