function onUse(cid, item, fromPosition, item2, toPosition)
local msg = "Voce ganhou yalaharian outfit!"
if item.actionid == 58267 then
queststatus = getPlayerStorageValue(cid,102504)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found an Yalahari Mask.")
doPlayerAddItem(cid,9778,1)
setPlayerStorageValue(cid,102504,1)
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 324, 0)
else
doPlayerAddOutfit(cid, 325, 0)
doPlayerSendTextMessage(cid,22,msg)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.actionid == 58268 then
queststatus = getPlayerStorageValue(cid,102504)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found an Yalahari Armor.")
doPlayerAddItem(cid,9776,1)
setPlayerStorageValue(cid,102504,1)
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 324, 0)
else
doPlayerAddOutfit(cid, 325, 0)
doPlayerSendTextMessage(cid,22,msg)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.actionid == 58269 then
queststatus = getPlayerStorageValue(cid,102504)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found an Yalahari Leg Piece.")
doPlayerAddItem(cid,9777,1)
setPlayerStorageValue(cid,102504,1)
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 324, 0)
else
doPlayerAddOutfit(cid, 325, 0)
doPlayerSendTextMessage(cid,22,msg)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return false
end
return true
end