From af88e2bab806cff3987de8f3222b6d1b9b85db45 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 19 Feb 2024 22:22:05 -0300 Subject: [PATCH] fix: minor console errors (#2271) --- .../quests/threatened_dreams/event-raven_herb_bush.lua | 4 ++-- .../scripts/world_changes/spawns_npc_by_time.lua | 2 +- data/libs/core/global_storage.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data-otservbr-global/scripts/quests/threatened_dreams/event-raven_herb_bush.lua b/data-otservbr-global/scripts/quests/threatened_dreams/event-raven_herb_bush.lua index 089935aad41..50d74d060b9 100644 --- a/data-otservbr-global/scripts/quests/threatened_dreams/event-raven_herb_bush.lua +++ b/data-otservbr-global/scripts/quests/threatened_dreams/event-raven_herb_bush.lua @@ -5,7 +5,7 @@ local config = { pos = Position(33497, 32196, 7), herbId = 5953, herbWeight = 1, - storage = ThreatenedDreams.Mission03.RavenHerbTimer, + storage = Storage.Quest.U11_40.ThreatenedDreams.Mission03.RavenHerbTimer, } local createRavenHerb = GlobalEvent("createRavenHerb") @@ -55,5 +55,5 @@ function ravenHerb.onUse(player, item, fromPosition, target, toPosition, isHotke return true end -ravenHerb:aid(ThreatenedDreams.Mission03.RavenHerbTimer) +ravenHerb:id(25783) ravenHerb:register() diff --git a/data-otservbr-global/scripts/world_changes/spawns_npc_by_time.lua b/data-otservbr-global/scripts/world_changes/spawns_npc_by_time.lua index 4679804b6a5..5323f90cc85 100644 --- a/data-otservbr-global/scripts/world_changes/spawns_npc_by_time.lua +++ b/data-otservbr-global/scripts/world_changes/spawns_npc_by_time.lua @@ -6,7 +6,7 @@ local npcSpawns = { local spawnsNpcByTime = GlobalEvent("SpawnsNpcByTime") -function spawnsByTimeEvent.onPeriodChange(period) +function spawnsNpcByTime.onPeriodChange(period) for _, npcSpawn in ipairs(npcSpawns) do if npcSpawn.spawnPeriod == period then local spawnNpc = Game.createNpc(npcSpawn.name, npcSpawn.position) diff --git a/data/libs/core/global_storage.lua b/data/libs/core/global_storage.lua index 686595ae312..cfca535dc4b 100644 --- a/data/libs/core/global_storage.lua +++ b/data/libs/core/global_storage.lua @@ -25,6 +25,6 @@ Global = { Storage = { FamiliarSummonEvent10 = 30054, FamiliarSummonEvent60 = 30055, - CobraFlask = 30055, + CobraFlask = 30056, }, }