mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Added admin command ::expression <id> for previewing facial expressions
This commit is contained in:
parent
ab552ce387
commit
0372937353
1 changed files with 8 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import core.cache.def.impl.DataMap
|
|||
import core.cache.def.impl.NPCDefinition
|
||||
import core.cache.def.impl.VarbitDefinition
|
||||
import core.cache.def.impl.Struct
|
||||
import core.game.dialogue.DialogueFile
|
||||
import core.game.node.entity.combat.ImpactHandler.HitsplatType
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.node.entity.player.link.SpellBookManager
|
||||
|
|
@ -276,5 +277,12 @@ class DevelopmentCommandSet : CommandSet(Privilege.ADMIN) {
|
|||
define("drawintersect", Privilege.ADMIN, "", "Visualizes the predicted intersection point with an NPC") {player, _ ->
|
||||
setAttribute(player, "draw-intersect", !getAttribute(player, "draw-intersect", false))
|
||||
}
|
||||
|
||||
define("expression", Privilege.ADMIN, "::expression id", "Visualizes chathead animations from ID.") { player, args ->
|
||||
if(args.size != 2)
|
||||
reject(player, "Usage: ::expression id")
|
||||
val id = args[1].toIntOrNull() ?: 9804
|
||||
player.dialogueInterpreter.sendDialogues(player, id, "Expression ID: $id")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue