X
Xikini
Guest
0.3.6 Crying Damson
When I use the below script the lever will not move, and there is no error's in console.
I have tried for about 3 hours to create and fix this script to no avail. I am simply stumped.
The grey stone - itemid 1304 is on the square stonepos.
The lever has the uniqueid of 11200.
Please help
behemothlever.lua
When I use the below script the lever will not move, and there is no error's in console.
I have tried for about 3 hours to create and fix this script to no avail. I am simply stumped.
The grey stone - itemid 1304 is on the square stonepos.
The lever has the uniqueid of 11200.
Please help
behemothlever.lua
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
stonepos = {x=2162, y=2849, z=8, stackpos=1}
getpos = getThingfromPos(stonepos)
if item.uid == 11200 and item.itemid == 1945 and getpos.itemid == 1304 then
doRemoveItem(getpos.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 11200 and item.itemid == 1946 and getpos.itemid == 0 then
doCreateItem(1304,1,stonepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end
LUA:
<action uniqueid="11200" event="script" value="levers/behemothlever.lua"/>
Last edited by a moderator: