local inServiceYalaharReward = Action()
function inServiceYalaharReward.onUse(player, item, fromPosition, target, toPosition, isHotkey)
	if(item.uid == 3088) then
		if(player:getStorageValue(Storage.InServiceofYalahar.Questline) == 53) then
			player:setStorageValue(Storage.InServiceofYalahar.Questline, 54)
			player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
			player:addItem(8862, 1)
			player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a yalahari armor.")
			player:addOutfitAddon(324, 2)
			player:addOutfitAddon(324, 1)
			player:addOutfitAddon(325, 1)
			player:addOutfitAddon(325, 2)

		else
			player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
		end
	elseif(item.uid == 3089) then
		if(player:getStorageValue(Storage.InServiceofYalahar.Questline) == 53) then
			player:setStorageValue(Storage.InServiceofYalahar.Questline, 54)
			player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
			player:addItem(8864, 1)
			player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a yalahari mask.")
			player:addOutfitAddon(324, 2)
			player:addOutfitAddon(324, 1)
			player:addOutfitAddon(325, 1)
			player:addOutfitAddon(325, 2)
		else
			player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
		end
	elseif(item.uid == 3090) then
		if(player:getStorageValue(Storage.InServiceofYalahar.Questline) == 53) then
			player:setStorageValue(Storage.InServiceofYalahar.Questline, 54)
			player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
			player:addItem(8863, 1)
			player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a yalahari leg piece.")
			player:addOutfitAddon(324, 2)
			player:addOutfitAddon(324, 1)
			player:addOutfitAddon(325, 1)
			player:addOutfitAddon(325, 2)
		else
			player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
		end
	end

	return true
end

inServiceYalaharReward:uid(3088,3089,3090)
inServiceYalaharReward:register()