hello i need help for this:
I have more quests with +3 chests and the player can choose only one, I am not able to remove the storage from the inquisitor quest
can someone help me remove the storage from this quest to use in other quests
tanks
Lua:
local rewards = {
[1300] = 8890,
[1301] = 8918,
[1302] = 8881,
[1303] = 8888,
[1304] = 8851,
[1305] = 8924,
[1306] = 8928,
[1307] = 8930,
[1308] = 8854
}
local inquisitionRewards = Action()
function inquisitionRewards.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(Storage.TheInquisition.Reward) < 1 then
player:setStorageValue(Storage.TheInquisition.Reward, 1)
player:setStorageValue(Storage.TheInquisition.Questline, 25)
player:setStorageValue(Storage.TheInquisition.Mission07, 5) -- The Inquisition Questlog- "Mission 7: The Shadow Nexus"
player:addItem(rewards[item.uid], 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found " .. ItemType(rewards[item.uid]):getName() .. ".")
player:addAchievement('Master of the Nexus')
player:addOutfitAddon(288, 2)
player:addOutfitAddon(288, 1)
player:addOutfitAddon(289, 1)
player:addOutfitAddon(289, 2)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
end
return true
end
for value = 1300, 1308 do
inquisitionRewards:uid(value)
end
inquisitionRewards:register()
I have more quests with +3 chests and the player can choose only one, I am not able to remove the storage from the inquisitor quest
can someone help me remove the storage from this quest to use in other quests
tanks