endziu2222
Active Member
- Joined
- Nov 2, 2010
- Messages
- 173
- Solutions
- 1
- Reaction score
- 46
I have been trying to fix this and nothing helped.
Don't really know what to do anymore with this, I could delete these 2 codes but this will not solve my problem with not having rewards in chests on the map. Anybody can help?
Lua:
function updateKeysStorage(tablename)
-- It updates old storage keys from quests for all players
local newUpdate = tablename[0].latest
local oldUpdate = getGlobalStorage(GlobalStorage.KeysUpdate)
if newUpdate <= oldUpdate then
return true
end
logger.info("Updating quest keys storages...")
if oldUpdate < 1 then
oldUpdate = 1
end
for u = oldUpdate, newUpdate do
for i = 1, #tablename[u] do
db.query("UPDATE `player_storage` SET `key` = '" .. tablename[u][i].new .. "' WHERE `key` = '" .. tablename[u][i].old .. "';")
end
end
setGlobalStorage(GlobalStorage.KeysUpdate, newUpdate)
logger.info("Storage Keys Updated")
end
Lua:
-- Update old quest storage keys
updateKeysStorage(QuestKeysUpdate)
Don't really know what to do anymore with this, I could delete these 2 codes but this will not solve my problem with not having rewards in chests on the map. Anybody can help?