• 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

Coca Cola

New Member
Joined
Apr 10, 2010
Messages
164
Reaction score
0
can somebody to fix this script?
Lua:
function onUse(cid, item, frompos, item2, topos)

    if item.uid == 25000 then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a rainbow shield.')
		local uid = doPlayerAddItem(cid, 8905, 1)
		local p = getItemName(item)
		doItemSetAttribute(uid, 'description', 'refinado(def+27). Este item foi obtido por ' .. getCreatureName(cid) .. '.')
		doItemSetAttribute(uid, 'defense', 57)
		doItemSetAttribute(uid, 'name', p..' (ref power +10)') 
		setPlayerStorageValue(cid, 8905, 1)
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'The chest is empty.')
	end
	return true
end

ty,cya
 
Last edited:
Back
Top