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

Chest Problem!!

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
132
Location
Unknown
LUA:
 function onUse(cid, item, frompos, item2, topos)

local config = {
        storage = 11190, -- change to your own storage value :)
        item = 2528, 
		

}

        if getPlayerStorageValue(cid, config.storage) == -1 then
                setPlayerStorageValue(cid, config.storage, 1)
				doPlayerSendTextMessage(cid,25,"You have found a tower shield.")
                key = doPlayerAddItem(cid, config.item, 1) ~= -1
        else
                doPlayerSendTextMessage(cid,25,"The pile of bones is empty.")
                end
        return TRUE
end

i click on the chest and giveme a DEBUG

0.4_Rev 3887

please help
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, 11190) == -1 then
		setPlayerStorageValue(cid, 11190, 1)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a tower shield.')
		doPlayerAddItem(cid, 2528, 1)
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'The pile of bones is empty.')
	end
	return TRUE
end
 
Back
Top