local config = {
questStorage = 2000,
storageValue = 1,
finnishValue = 2,
questName = "Pits of Inferno"
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(config.questStorage) > config.storageValue then
player:sendTextMessage(MESSAGE_INFO_DESCR, "You completed the ".. config.questName .." quest.")
player:setStorageValue(config.questStorage, config.finnishValue)
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "You already completed the ".. config.questName .." quest.")
end
end