Command improvements#679
Open
ipkpjersi wants to merge 1 commit into
Open
Conversation
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.
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.
::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).::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 1000is unchanged.::npc <name>(npc case, developer group) - resolves an NPC name to an id, then spawns using the existing stat lookup. Numeric::npc <id>unchanged.::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.::spellbook [modern|ancient|swap]- modern/normal and ancient/ancients set a specific book; swap/toggle or bare::spellbooktoggles. Same sidebar/autocast behavior as before, plus an "already on X" message when no change is needed.