Code:
function eventual(cid, getThingPos(item.uid), wallpos)
doCreateItem(1116,1,wallpos[1])
doCreateItem(1116,1,wallpos[2])
doTransformItem(getThingPos(item.uid),item.itemid-1)
end
function onUse(cid, item, frompos, item2, topos)
wallpos = {
{x=1187, y=1235, z=7, stackpos=1},
{x=1187, y=1236, z=7, stackpos=1}
}
getwalls = {
getThingfromPos(wall1),
getThingfromPos(wall2)
}
if item.uid == 9017 and item.itemid == 1945 then
doRemoveItem(getwalls[1].uid,1)
doRemoveItem(getwalls[2].uid,1)
doTransformItem(item.uid,item.itemid+1)
doCreatureSay(cid, "You just opened a secret passage!", TALKTYPE_ORANGE_1)
addEvent(eventual, 40000, cid, getThingPos(item.uid), wallpos)
elseif item.uid == 9017 and item.itemid == 1946 then
doPlayerSendCancel(cid,"You can't use this yet.")
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Is missing `)" expected near `("
And I don't find it, can someone fix this script and re-paste it?
Thanks,