enriquegomezha9
Member
- Joined
- Mar 29, 2023
- Messages
- 11
- Reaction score
- 9
Hey guys so I'm using the inquisition script as a Reference to create a new quest that will give jungle items (jungle bow, wand rod etc) and also it will give the outfit rascoohan + addons 1&2.
The problem is that the script worked good in one of my attempts but i was not able to save it so i lost the good script.
I don't know how to add the "Storage" value. This is the script I'm using.
and the error is the following.
any idea what i might be doing wrong?
The problem is that the script worked good in one of my attempts but i was not able to save it so i lost the good script.
I don't know how to add the "Storage" value. This is the script I'm using.
Lua:
local rewardsa = {
[1310] = 35522,
[1311] = 35516,
[1312] = 35518,
[1313] = 35521,
}
local inquisitionRewardsa = Action()
function inquisitionRewardsa.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(Storage.TheInquisition.Rewarda) < 1 then
player:setStorageValue(Storage.TheInquisition.Rewarda, 1)
player:addItem(rewarda[item.uid], 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found " .. ItemType(rewards[item.uid]):getName() .. ".")
player:addAchievement('Master of the Nexus')
player:addOutfit(1371)
player:addOutfit(1372)
player:addOutfitAddon(1371, 2)
player:addOutfitAddon(1371, 1)
player:addOutfitAddon(1372, 1)
player:addOutfitAddon(1372, 2)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
end
return true
end
for uniqueId, info in pairs(rewardsa) do
inquisitionRewardsa:uid(uniqueId)
end
inquisitionRewardsa:register()
and the error is the following.
any idea what i might be doing wrong?