• 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 level ;/

tibiek

Banned User
Joined
Jun 3, 2009
Messages
320
Reaction score
0
Location
Poland
i can;t work chest only use 100 level and in chest 15cc plx work for me ;):p i give reput
 
or just use this script

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local chest = {
		storage = 43418,
        level = 100
	}
	if getPlayerStorageValue(cid, chest.storage) == -1 then
		if getPlayerLevel(cid) >= chest.level then
			doPlayerAddItem(cid, 2136, 1)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have claimed your prize!")
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORKS)
            setPlayerStorageValue(cid, chest.storage, 1)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may open this chest.")
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
	end
	return true
end
 
Back
Top