Added admin command ::expression <id> for previewing facial expressions

This commit is contained in:
bushtail 2023-07-14 10:14:23 +00:00 committed by Ryan
parent ab552ce387
commit 0372937353

View file

@ -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")
}
}
}