• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

quest revscript 1.3

maper1

New Member
Joined
Aug 17, 2012
Messages
38
Reaction score
0
hello i need help for this:

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
 

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,244
Solutions
71
Reaction score
547
Location
Hell
Battleships!

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
I don't understand. What exactly is the problem? What do you want to achieve?
 

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,524
Solutions
379
Reaction score
3,642
I managed to solve, I wanted a quest like the inquisitor quest without sotrage. ex: 5 chests but you can choose only one
It's impossible to create a chest like that, and only allow one item, without using a storage value to confirm the chest has not been used before.
 
Top