yolfran
Mapper-Chibcha
I did this script , it was working ok until crying damson 0.3.4 but in 0.3.5 it doesn't works,i think the function DoCreateItem was changed.
The script put a ladder in a specific plece to continue a quest and remove's after a short time,but now nothing happens.
This is the script
And this is the console err
[07/11/2009 16:16:56] Lua Script Error: [Action Interface]
[07/11/2009 16:16:56] in a timer event called from:
[07/11/2009 16:16:56] data/actions/scripts/questladder.luanUse
[07/11/2009 16:16:56] luaDoRemoveItem(). Item not found
Then:
Why not appear the ladder?and if appear
Why not Disappear the ladder?
Plix i need help in the script!!
The script put a ladder in a specific plece to continue a quest and remove's after a short time,but now nothing happens.
This is the script
PHP:
function onUse(cid, item, pos)
local createPos = {x=555, y=457, z=12, stackpos=1}
if item.itemid == 1945 then
doCreateItem(1386,ladder,createPos)
doPlayerSay(cid,"Continue the quest!!!",2)
addEvent(eventAdd,70000,b)
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"The ladder its OK.")
end
return TRUE
end
function eventAdd(b)
local ladderpos = {x=555, y=457, z=12, stackpos=1}
local getladder = getThingfromPos(ladderpos)
doRemoveItem(getladder.uid, 1)
return TRUE
end
And this is the console err
[07/11/2009 16:16:56] Lua Script Error: [Action Interface]
[07/11/2009 16:16:56] in a timer event called from:
[07/11/2009 16:16:56] data/actions/scripts/questladder.luanUse
[07/11/2009 16:16:56] luaDoRemoveItem(). Item not found
Then:
Why not appear the ladder?and if appear
Why not Disappear the ladder?
Plix i need help in the script!!