Hi guys, i recently made a post that i would like deleted since i found the script i was looking for.
BUT now i got this error.. so annoying.
BUT now i got this error.. so annoying.
Code:
[Error - LuaScriptInterface::loadFile] data/actions/scripts/addedbyme/bridgelever.lua:1: ')' expected near '('[Warning - Event::loadScript] Cannot load script (data/actions/scripts/addedbyme/bridgelever.lua)
Code:
function eventual(cid, getThingPos(item.uid), wallpos)
doCreateItem(1284,1,wallpos[1])
doCreateItem(1284,1,wallpos[2])
doCreateItem(1284,1,wallpos[3])
doTransformItem(getThingPos(item.uid),item.itemid-1)
end
function onUse(cid, item, frompos, item2, topos)
wallpos = {
{x=1007, y=989, z=8, stackpos=1},
{x=1008, y=989, z=8, stackpos=1},
{x=1009, y=989, z=8, stackpos=1}
}
getwalls = {
getThingfromPos(wall1),
getThingfromPos(wall2),
getThingfromPos(wall3)
}
if item.uid == 7002 and item.itemid == 1945 then
doRemoveItem(getwalls[1].uid,1)
doRemoveItem(getwalls[2].uid,1)
doRemoveItem(getwalls[3].uid,1)
doTransformItem(item.uid,item.itemid+1)
doCreatureSay(cid, "You just opened a secret passage!", TALKTYPE_ORANGE_1)
addEvent(eventual, 10000, cid, getThingPos(item.uid), wallpos)
elseif item.uid == 7002 and item.itemid == 1946 then
doPlayerSendCancel(cid,"You can't use this yet.")
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end