yolfran
Mapper-Chibcha
Aff the changes in crying damson.....many of my scripts doesnt woork's now and I dont know how to repair them.
Like this one ,I use in poi to remove a stone,the removestone and the event work's OK,but create the stone again... not work's now.
Plix tell me how to repàir them ,here is my code:
and this ir the error in console:
[11/11/2009 12:58:43] Lua Script Error: [Action Interface]
[11/11/2009 12:58:43] in a timer event called from:
[11/11/2009 12:58:43] data/actions/scripts/quests/poi/poione.luanUse
[11/11/2009 12:58:43] luaDoRemoveItem(). Item not found
I try to repair it, but i can't
thx ;P
Like this one ,I use in poi to remove a stone,the removestone and the event work's OK,but create the stone again... not work's now.
Plix tell me how to repàir them ,here is my code:
PHP:
function onUse(cid, item, pos)
local stonePos = {x=653, y=883, z=9, stackpos=1} ----> initial positon stone
local getStone = getThingfromPos(stonePos)
if item.itemid == 1945 and getStone.itemid == 1304 then
doRemoveItem(getStone.uid,1)
addEvent(eventAdd,70000,a)--->time to remove stone
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end
function eventAdd(a)
local stone = {x=653, y=883, z=9}-----> position to create stone again
doCreateItem(1304, 1, stone)
return TRUE
end
and this ir the error in console:
[11/11/2009 12:58:43] Lua Script Error: [Action Interface]
[11/11/2009 12:58:43] in a timer event called from:
[11/11/2009 12:58:43] data/actions/scripts/quests/poi/poione.luanUse
[11/11/2009 12:58:43] luaDoRemoveItem(). Item not found
I try to repair it, but i can't
thx ;P
Last edited: