Skip to content

fix(quest): fix Spike fame points storage key in Player.addFamePoint - #1173

Open
Picxs wants to merge 1 commit into
zimbadev:mainfrom
Picxs:fix/spike-fame-points-and-spiritual-outburst
Open

Picxs wants to merge 1 commit into
zimbadev:mainfrom
Picxs:fix/spike-fame-points-and-spiritual-outburst

Conversation

@Picxs

@Picxs Picxs commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #1061

Problem

Player.addFamePoint in data/libs/functions/player.lua reads and writes Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points, but Storage.Quest.U10_20.SpikeTaskQuest has no Constants sub-table (the key is defined directly as SpikeTaskQuest.Spike_Fame_Points, already used by getFamePoints and removeFamePoints right below it). Indexing Constants evaluates to nil and raises a Lua error on every Spike task report (Gnomilly, Gnombold, Gnomargery), aborting the NPC handler before granting fame points/XP or resetting the task and daily cooldown.

Solution

  • Replaced Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points with Storage.Quest.U10_20.SpikeTaskQuest.Spike_Fame_Points in Player.addFamePoint, matching Player.getFamePoints and Player.removeFamePoints.

Changes

  • data/libs/functions/player.lua: Fix the Spike_Fame_Points storage key path in Player.addFamePoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Quest] Player.addFamePoint indexes a non-existent SpikeTaskQuest.Constants table, Spike task rewards never complete

1 participant