diff --git a/data-otservbr-global/npc/jeronimo.lua b/data-otservbr-global/npc/jeronimo.lua index 16c4c0c791b..8a76261496c 100644 --- a/data-otservbr-global/npc/jeronimo.lua +++ b/data-otservbr-global/npc/jeronimo.lua @@ -65,7 +65,7 @@ local OfferType = { House = 3, Utils = 4, Outfit = 5, - Mount = 6 + Mount = 6, } --local listShopItems = { @@ -179,7 +179,6 @@ local function creatureSayCallback(npc, creature, type, message) end if (npcHandler:getTopic(playerId) == 2 or npcHandler:getTopic(playerId) == 0) and listShopItems[message] ~= nil then - local selected = listShopItems[message] if amountTournamentCoins < selected.value then npcHandler:say(string.format("You don't have %i {%s}!", selected.value, tournamentCoinName), npc, creature) @@ -260,7 +259,6 @@ local function creatureSayCallback(npc, creature, type, message) local itemT = ItemType(selected.id) if amountTournamentCoins >= selected.value then if inbox and inbox:getEmptySlots() > 0 and player:getFreeCapacity() >= itemT:getCapacity() then - player:updateTournamentCoins(selected.value, "remove") if selected.charges > 0 then diff --git a/data/modules/scripts/gamestore/gamestore.lua b/data/modules/scripts/gamestore/gamestore.lua index e426712c91a..0e72d43fb44 100644 --- a/data/modules/scripts/gamestore/gamestore.lua +++ b/data/modules/scripts/gamestore/gamestore.lua @@ -6725,7 +6725,7 @@ GameStore.Categories = { type = GameStore.OfferTypes.OFFER_TYPE_HOUSE, coinType = GameStore.CoinType.Tournament, }, - } + }, }, -- Tournament Shop ~ House Furniture {