Add the Mage Training Arena - #1282
Open
HarleyGilpin wants to merge 10 commits into
Open
Conversation
Consolidates the arena data under data/minigame/mage_training_arena and adds the objects, overlays, varbits (verified against the 634 cache: 1485 telekinetic, 1489 alchemist, 1488 enchanting, 1486 graveyard), areas and tuning tables the rooms will share. The doorway, room portals, exit portals, room overlays, item confiscation, safe death, teleport veto and a no_trading area tag are handled in MageTrainingArena; PizazzHat covers the Entrance Guardian dialogue and the hat's Talk-to/Destroy options.
Each player gets a private copy of region 13463 with one of ten mazes. Casting Telekinetic Grab on the statue slides it towards whichever side of the maze the player stands on until a wall stops it; reaching the exit square awards two points, spawns the Maze Guardian and every fifth maze in a row adds eight points, ten law runes and Magic experience. The statue's Observe option moves the camera above the maze.
Cupboard contents rotate and item values reshuffle on a world timer while anyone is in the room, with one item periodically free to convert. Alching the arena items produces arena coins that the coin collector turns into points, Magic experience and a banked reward capped at 1000 coins on the way out. Normal alchemy is refused inside the playground.
Shapes taken from the four piles enchant into orbs with any enchant spell at three quarters of the usual experience. Every tenth shape scores the spell's level in points, the bonus shape shouted by the guardian adds one, and the six private dragonstones score double straight away. Twenty orbs in the hole reward a handful of death, blood or cosmic runes.
Bone piles hand out four animals' bones before changing type, Bones to Bananas/Peaches converts each type into one to four fruit inside the room, and sixteen fruit through the food chute earn a point, Magic experience and a rune. Bones fall on everyone in the room every ten ticks and dying there costs up to ten Graveyard points. Bones to Bananas/Peaches tablets gain a Break option, which is refused inside the arena.
The Rewards Guardian's Trade-with option opens interface 197 backed by inventory 347; the client fills the point labels from the varbits and marks wand upgrades itself. Buying deducts the price from all four point pools, wand upgrades consume the previous tier, the arena book costs coins and Bones to Peaches sets the unlock varbit that the spellbook cast now requires.
The hat's equipment option was only registered for the inventory. Observe and Reset on the guardian statue tried to walk to it, which the maze walls prevent; they now run as approach interactions from up to ten tiles away like the Telekinetic Grab cast itself.
The room overlays were typed as full-screen overlays (root child 7 in both display modes), which the resizable layout doesn't show. Use the same game_screen_overlay parent as the fight cave and Barrows overlays.
Pre-quest lines for Wizard Shug, Apprentice Clerval, Wizard Dougal and Wizard Edvin. Rune Mechanics itself is not implemented, so Clerval's conversation stops short of offering the quest.
HarleyGilpin
marked this pull request as ready for review
September 8, 2026 12:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Mage Training Arena: the entrance hall, the progress hat, all four rooms and the rewards shop.
Content
The Entrance Guardian hands out the Pizazz Progress Hat, which upgrades through its three tiers as total points grow and resets all points if destroyed. The four portals check for the hat, the room's Magic level and the usual restrictions (no coins into the playground, no fruit into the graveyard, no familiars). Leaving a room by any route other than its exit portal, including logout and death, drops you at the entrance and removes any arena items. Teleports and trade requests are refused inside.
Telekinetic Theatre – a private instance of the arena map with one of ten mazes. Telekinetic Grab slides the statue towards whichever side of the maze you stand on until it hits a wall. Reaching the exit square gives 2 points and frees the Maze Guardian, who offers the next maze; five in a row adds 8 points, 10 law runes and 1000 Magic xp. Observe/Reset work on the statue.
Alchemists' Playground – cupboard contents rotate and item values reshuffle on a timer while anyone is inside, with one item occasionally free to convert. Alching produces arena coins; the coin collector pays 1 point per 100 coins and 2 xp per coin, and 10% of what you deposit (up to 1000) is banked as real coins when you leave. Depositing 12000 or more ejects you.
Enchanting Chamber – shapes from the four piles enchant into orbs with any enchant spell at 75% xp. Every tenth shape scores the spell's level, the bonus shape the guardian shouts adds one, and the six dragonstones score double straight away and respawn later. Twenty orbs in the hole reward death, blood or cosmic runes.
Creature Graveyard – bone piles give four bones before changing type, each type converts to one to four fruit, and sixteen fruit through the chute earn a point, 50 xp and a rune. Bones fall on everyone in the room and dying there costs up to ten points.
Rewards Guardian – Trade-with opens the rewards interface. Buying deducts the price from all four point pools, wand upgrades consume the previous wand, the arena book costs 200 coins, and Bones to Peaches unlocks the spell.
Notes
TradeRequesthonours a newno_tradingarea tag;Alchemyrefuses non-arena items in the playground;BonesTogains the tablet Break option and the graveyard bone conversion.data/area/.../mage_training_arena/) and the tunables (values, intervals, caps, maze offsets, reward prices) live indata/minigame/mage_training_arena/.Tests
38 WorldTest cases across six files covering the lobby, each room's scoring paths, ejection/payout, death penalty, every shop purchase branch and the Bones to Peaches gate. Full
:game:testpasses.Unverified in client
Observe camera values, cupboard order around the room, overlay visuals. Draft until walked through in-game.