local female = 0
local male = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerSex(cid) == female then
if getPlayerStorageValue(cid, 16344) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but you already have this outfit.")
elseif getPlayerStorageValue(cid, 16344) == FALSE then
doPlayerAddOutfit(cid, 288, 0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you received the demon hunter outfit.")
doRemoveItem(item.uid)
setPlayerStorageValue(cid, 16344, TRUE)
elseif getPlayerSex(cid) == male then
if getPlayerStorageValue(cid, 16344) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but you already have this outfit.")
elseif getPlayerStorageValue(cid, 16344) == FALSE then
doPlayerAddOutfit(cid, 289, 0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you received the demon hunter outfit.")
doRemoveItem(item.uid)
setPlayerStorageValue(cid, 16344, TRUE)
end
end
return TRUE
end