Coca Cola
New Member
- Joined
- Apr 10, 2010
- Messages
- 164
- Reaction score
- 0
can somebody to fix this script?
ty,cya
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: