function onUse(cid, item, frompos, item2, topos)
if item.uid ==5007 then
queststatus = getPlayerStorageValue(cid,5007)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"This quest is empty.")
else
doPlayerSendTextMessage(cid,22,"You found a complete citizen addons.")
doSendMagicEffect(topos,12)
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 128, 3)
doPlayerAddOutfit(cid, 136, 3)
setPlayerStorageValue(cid,8002,2)
else
doPlayerAddOutfit(cid, 128, 3)
doPlayerAddOutfit(cid, 136, 3)
talk_state = 1
end
end
return 0
end
return 1
end
local config = {
storage = 12345,
text = "first hunter"
outfitMale = 129
outfitFemale = 137
addon = 1
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, config.storage) == -1 then
doPlayerSendTextMessage(cid, 25, "You found the " .. config.text .. " addon.")
doPlayerAddOutfit(cid, config.outfitMale, config.addon)
doPlayerAddOutfit(cid, config.outfitFemale, config.addon)
setPlayerStorageValue(cid, config.storage, 1)
else
doPlayerSendTextMessage(cid, 25, "It is empty.")
end
return TRUE
end