• 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!

[8.2] doContainerAddItem

tarjei

Necronian Engineer
Joined
May 25, 2008
Messages
505
Reaction score
126
Location
Poland
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 :pP
Tarjei
 
Back
Top