function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
player:registerEvent("ModalWindow_Hunter")
if player:getExhaustion(1000) <= 0 then
local title = "Select player kill!"
local message = "ready for hunter!"
local window = ModalWindow(1000, title, message)
window:addButton(100, "Confirm")
window:addButton(101, "Cancel")
window:addChoice(1, "top level")
window:addChoice(2, "top frags")
window:addChoice(3, "top money")
window:addChoice(4, "leader guild")
window:setDefaultEnterButton(100)
window:setDefaultEscapeButton(101)
window:sendToPlayer(player)
player:setExhaustion(1000, 10)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You\'re exhausted for: '..player:getExhaustion(1000)..' seconds.')
end
return true
end