Skip to content

Fix magic spell indices after recent game updates#180

Open
samlol wants to merge 1 commit intoTonic-Box:mainfrom
samlol:fix-spell-indices
Open

Fix magic spell indices after recent game updates#180
samlol wants to merge 1 commit intoTonic-Box:mainfrom
samlol:fix-spell-indices

Conversation

@samlol
Copy link
Copy Markdown

@samlol samlol commented Mar 15, 2026

This fixes incorrect spell indices in StandardSpell caused by several recent game updates.

New spells were added at different positions in the spellbook (such as the minigame teleport), which shifted the indices of many existing spells. As a result, spell casting through MagicAPI.cast() was failing, and the walker would not use teleport spells even when spell requirements were met.

Changes

  • Updated all StandardSpell indices to match the current standard spellbook
  • Added placeholder entries for the new spells to keep the indexing intact until they are fully implemented

Fixes

  • MagicAPI.cast() failing due to incorrect indices
  • Walker not utilizing teleport spells

Tested

  • Teleport spells (Varrock, Lumbridge, Camelot, etc.)
  • Utility spells (High Alchemy, Telekinetic Grab, Enchantments, etc.)

I didn't explicitly test combat spells, but they should be good to go now that the indices are accurate.

- Updated StandardSpell indices to match the current spellbook
- Added placeholders for newly added spells to preserve correct indices
- Fixes MagicAPI.cast() and walker teleports failing due to incorrect indices

Several game updates introduced new spells which shifted the indices
of existing spells. This caused many spells to be cast incorrectly or
fail entirely. Placeholder entries were added to keep indices aligned
until full implementations are added.
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.

1 participant