Code:
function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerStorageValue(cid, 9940)
if queststatus < 1 then
co_daje = doPlayerAddItem(cid, 1988, 1)
doContainerAddItem(co_daje, 2492, 1)
doPlayerSendTextMessage(cid, 22, "You have found a backpack and items in it.")
doPlayerSetStorageValue(cid, 9940, 1)
else
doPlayerSendTextMessage(cid, 22, "It is empty.")
end
return 1
end
When i you at skeleton i recieve a Bp but its empty. I have bug in console:
Code:
[05/09/2008 23:05:36] data/actions/scripts/poiskelet.lua:7: attempt to call global 'doContainerAddItem' (a nil value)
[05/09/2008 23:05:36] stack traceback:
[05/09/2008 23:05:36] data/actions/scripts/poiskelet.lua:7: in function <data/actions/scripts/poiskelet.lua:1>
Thx for helping me again P
Tarjei