[PR #679] Command improvements #12447

Open
opened 2026-06-05 12:22:49 +00:00 by Dark98 · 0 comments
Owner

Original Pull Request: https://github.com/2006-Scape/2006Scape/pull/679

State: open
Merged: No


  1. ::tele <city> (tele case) - accepts the SpellTeleport enum cities (varrock, lumbridge, falador, camelot, ardougne, watchtower, trollheim, ape_atoll) alongside the existing ::tele x y [z]. Multi-word names work via space or underscore (e.g. ::tele ape atoll).

  2. ::item <name> [amount] (item case) - if the first arg isn't numeric, resolves the name to an id (exact match preferred, else first prefix match), with an optional trailing amount. Numeric ::item 995 1000 is unchanged.

  3. ::npc <name> (npc case, developer group) - resolves an NPC name to an id, then spawns using the existing stat lookup. Numeric ::npc <id> unchanged.

  4. ::itemsearch <name> (player group, aliases searchitem/finditem) and ::npcsearch <name> (developer group, aliases searchnpc/findnpc) - list matching "name - ID: n", capped at 25 results with a total count.

  5. ::spellbook [modern|ancient|swap] - modern/normal and ancient/ancients set a specific book; swap/toggle or bare ::spellbook toggles. Same sidebar/autocast behavior as before, plus an "already on X" message when no change is needed.

**Original Pull Request:** https://github.com/2006-Scape/2006Scape/pull/679 **State:** open **Merged:** No --- 1. `::tele <city>` (tele case) - accepts the SpellTeleport enum cities (varrock, lumbridge, falador, camelot, ardougne, watchtower, trollheim, ape_atoll) alongside the existing `::tele x y [z]`. Multi-word names work via space or underscore (e.g. `::tele ape atoll`). 2. `::item <name> [amount]` (item case) - if the first arg isn't numeric, resolves the name to an id (exact match preferred, else first prefix match), with an optional trailing amount. Numeric `::item 995 1000` is unchanged. 3. `::npc <name>` (npc case, developer group) - resolves an NPC name to an id, then spawns using the existing stat lookup. Numeric `::npc <id>` unchanged. 4. `::itemsearch <name>` (player group, aliases searchitem/finditem) and `::npcsearch <name>` (developer group, aliases searchnpc/findnpc) - list matching "name - ID: n", capped at 25 results with a total count. 5. `::spellbook [modern|ancient|swap]` - modern/normal and ancient/ancients set a specific book; swap/toggle or bare `::spellbook` toggles. Same sidebar/autocast behavior as before, plus an "already on X" message when no change is needed.
Dark98 added the pull-request label 2026-06-05 12:22:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#12447