Sizaro
Advanced OT User
1.
= Server crash
2.
=
Warning: [Event::checkScript] Can not load script. /scripts/levers/lever_bluelegsq.lua
data/actions/scripts/levers/lever_bluelegsq.lua:19: '<eof>' expected near 'end'
Lua:
local wall = {x=9872, y=10216, z=9, stackpos=1}
local wall2 = {x=9873, y=10216, z=9, stackpos=1}
local getwall = getThingfromPos(wall)
local getwall2 = getThingfromPos(wall2)
function onUse(cid, item, frompos, item2, topos)
if item.uid == 45002 and item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
doCreateItem(7524, 1, wall)
doCreateItem(1745, 1, wall2)
elseif item.uid == 45002 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
doRemoveItem(getwall.uid)
doRemoveItem(getwall2.uid)
end
return 1
end
= Server crash
2.
Lua:
local wall = {x=9872, y=10216, z=9, stackpos=1}
local wall2 = {x=9873, y=10216, z=9, stackpos=1}
local getwall = getThingfromPos(wall)
local getwall2 = getThingfromPos(wall2)
function onUse(cid, item, frompos, item2, topos)
if item.uid == 45002 and item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
doCreateItem(7524, 1, wall)
doCreateItem(1745, 1, wall2)
elseif item.uid == 45002 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
doRemoveItem(getwall.uid)
doRemoveItem(getwall2.uid)
end
end
return 1
end
=
Warning: [Event::checkScript] Can not load script. /scripts/levers/lever_bluelegsq.lua
data/actions/scripts/levers/lever_bluelegsq.lua:19: '<eof>' expected near 'end'
Last edited: