Zonet
Web Developer
This is a script i get error when peoples do it, it's also used for quest and errors makes lag.
Here is the error i get:
Here is the first script
and here's the other.
I hope you could fix it.
Thanks
Here is the error i get:
[11/11/2008 17:34:19] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:19] data/movements/scripts/power wall.luanStepOut
[11/11/2008 17:34:19] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:19] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:19] data/movements/scripts/power wall.luanStepOut
[11/11/2008 17:34:19] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:22] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:22] data/movements/scripts/power wall.luanStepOut
[11/11/2008 17:34:22] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:22] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:22] data/movements/scripts/power wall.luanStepOut
[11/11/2008 17:34:22] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:24] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:24] data/movements/scripts/power wall.luanStepOut
[11/11/2008 17:34:24] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:24] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:24] data/movements/scripts/power wall.luanStepOut
[11/11/2008 17:34:24] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:25] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:25] data/movements/scripts/power room.luanStepIn
[11/11/2008 17:34:25] luaGetPlayerStorageValue(). Player not found
[11/11/2008 17:34:25] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:25] data/movements/scripts/power room.luanStepIn
[11/11/2008 17:34:25] luaSetPlayerStorageValue(). Player not found
[11/11/2008 17:34:26] Lua Script Error: [MoveEvents Interface]
[11/11/2008 17:34:26] data/movements/scripts/power room.luanStepIn
[11/11/2008 17:34:26] luaDoPlayerSendTextMessage(). Player not found
Here is the first script
Code:
function onStepIn(cid, item, pos)
if item.uid == 29001 and getPlayerStorageValue(cid,290003) == 3 then
doPlayerSendTextMessage(cid, 20, 'Why are you comming back? You already got the power!')
else
setPlayerStorageValue(cid,29003,1)
doPlayerSendTextMessage(cid, 20, 'The power room is totally ruined! Hope the reaction stil works!')
end
end
and here's the other.
Code:
function onStepOut(cid, item, pos)
wall00 = {x=1000, y=544, z=9, stackpos=1}
wall01 = {x=1001, y=544, z=9, stackpos=1}
wall02 = {x=1002, y=544, z=9, stackpos=1}
wall03 = {x=1003, y=544, z=9, stackpos=1}
wall04 = {x=1004, y=544, z=9, stackpos=1}
wall05 = {x=1005, y=544, z=9, stackpos=1}
wall06 = {x=1006, y=544, z=9, stackpos=1}
wall07 = {x=1007, y=544, z=9, stackpos=1}
wall08 = {x=1008, y=544, z=9, stackpos=1}
wall09 = {x=1009, y=544, z=9, stackpos=1}
wall010 = {x=1010, y=544, z=9, stackpos=1}
wall011 = {x=1011, y=544, z=9, stackpos=1}
wall012 = {x=1012, y=544, z=9, stackpos=1}
function removewall ( )
getwall00 = getThingfromPos ( wall00 )
getwall01 = getThingfromPos ( wall01 )
getwall02 = getThingfromPos ( wall02 )
getwall03 = getThingfromPos ( wall03 )
getwall04 = getThingfromPos ( wall04 )
getwall05 = getThingfromPos ( wall05 )
getwall06 = getThingfromPos ( wall06 )
getwall07 = getThingfromPos ( wall07 )
getwall08 = getThingfromPos ( wall08 )
getwall09 = getThingfromPos ( wall09 )
getwall010 = getThingfromPos ( wall010 )
getwall011 = getThingfromPos ( wall011 )
getwall012 = getThingfromPos ( wall012 )
doRemoveItem ( getwall00.uid, 1 )
doRemoveItem ( getwall01.uid, 1 )
doRemoveItem ( getwall02.uid, 1 )
doRemoveItem ( getwall03.uid, 1 )
doRemoveItem ( getwall04.uid, 1 )
doRemoveItem ( getwall05.uid, 1 )
doRemoveItem ( getwall06.uid, 1 )
doRemoveItem ( getwall07.uid, 1 )
doRemoveItem ( getwall08.uid, 1 )
doRemoveItem ( getwall09.uid, 1 )
doRemoveItem ( getwall010.uid, 1 )
doRemoveItem ( getwall011.uid, 1 )
doRemoveItem ( getwall012.uid, 1 )
end
getwal00 = getThingfromPos ( wall00 )
getwal0l = getThingfromPos ( wall01 )
getwal02 = getThingfromPos ( wall02 )
getwal03 = getThingfromPos ( wall03 )
getwal04 = getThingfromPos ( wall04 )
getwal05 = getThingfromPos ( wall05 )
getwal06 = getThingfromPos ( wall06 )
getwal07 = getThingfromPos ( wall07 )
getwal08 = getThingfromPos ( wall08 )
getwal09 = getThingfromPos ( wall09 )
getwal010 = getThingfromPos ( wall010 )
getwall011 = getThingfromPos ( wall011 )
getwall012 = getThingfromPos ( wall012 )
delay = 165*20*20
if getPlayerStorageValue(cid,19394) == 1 then
doCreatureSay(cid, "Damn what a powerful mage! He even made walls!!.", TALKTYPE_ORANGE_1)
else if item.uid == 19394 and getPlayerStorageValue(cid,29003) == 2 then
addEvent ( removewall, delay )
doCreateItem ( 1544, 1, wall00 )
doCreateItem ( 1544, 1, wall01 )
doCreateItem ( 1544, 1, wall02 )
doCreateItem ( 1544, 1, wall03 )
doCreateItem ( 1544, 1, wall04 )
doCreateItem ( 1544, 1, wall05 )
doCreateItem ( 1544, 1, wall06 )
doCreateItem ( 1544, 1, wall07 )
doCreateItem ( 1544, 1, wall08 )
doCreateItem ( 1544, 1, wall09 )
doCreateItem ( 1544, 1, wall010 )
doCreateItem ( 1544, 1, wall011 )
doCreateItem ( 1544, 1, wall012 )
setPlayerStorageValue(cid,19394,1)
end
end
end
I hope you could fix it.
Thanks
Last edited: