<action uniqueid="1300" event="script" value="quests/inqchests.lua" />
<action uniqueid="1301" event="script" value="quests/inqchests.lua" />
<action uniqueid="1302" event="script" value="quests/inqchests.lua" />
<action uniqueid="1303" event="script" value="quests/inqchests.lua" />
<action uniqueid="1304" event="script" value="quests/inqchests.lua" />
<action uniqueid="1305" event="script" value="quests/inqchests.lua" />
<action uniqueid="1306" event="script" value="quests/inqchests.lua" />
<action uniqueid="1307" event="script" value="quests/inqchests.lua" />
<action uniqueid="1308" event="script" value="quests/inqchests.lua" />
<action uniqueid="1300-1308" event="script" value="quests/inqchests.lua" />
local t = {
[1300] = {8890, 1},
[1301] = {8918, 1},
[1302] = {8881, 1},
[1303] = {8888, 1},
[1304] = {8881, 1},
[1305] = {8924, 1},
[1306] = {8928, 1},
[1307] = {8930, 1},
[1308] = {8854, 1}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v, storage, outfitId = t[item.uid], 6076, 20
if v then
if (getPlayerStorageValue(cid, storage) < 0) then
doPlayerAddOutfitId(cid, outfitId, 3)
doPlayerAddItem(cid, v[1], v[2])
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found " .. getItemDescriptionsById(v[1]).name .. ".")
doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYAREA)
setPlayerStorageValue(cid, storage, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already taken your reward.")
end
end
return true
end