• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Quest Problem =/

Wolfsong

A Black Hat
Joined
Mar 20, 2010
Messages
174
Reaction score
3
Location
TDA
Hey!
I have a tfs 0.3.6 and i have fixed all quests on the map but when i should get them i get the item but it says like this in the server log:
[20/03/2011 09:39:18] [Error - Action Interface]
[20/03/2011 09:39:18] data/actions/scripts/quests/dragon hammer.lua:eek:nUse
[20/03/2011 09:39:18] Description:
[20/03/2011 09:39:18] (luaDoAddContainerItem) Container not found

?

The problem is that it does lag a little bit cause this error spams in the log 4 times.
Please help! :)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 1000) < 1 then
local bp = doPlayerAddItem(cid, 2392, 1)
doAddContainerItem(bp, 2152, 100)
doAddContainerItem(bp, 2273, 10)
doAddContainerItem(bp, 2268, 10)
doAddContainerItem(bp, 2313, 30)
doAddContainerItem(bp, 2311, 50)
setPlayerStorageValue(cid, 1000, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a fire sword.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
return TRUE
end
 
oh xD i have just copied and so from other scripts xD
Well could someone fix it up for me or tell me how it should be? :)
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 1000) < 1 then
doPlayerAddItem(cid, 2392)
setPlayerStorageValue(cid, 1000, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a fire sword.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
return TRUE
end
 
Back
Top