mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-12 09:30:19 -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.NPCDefinition
|
||||||
import core.cache.def.impl.VarbitDefinition
|
import core.cache.def.impl.VarbitDefinition
|
||||||
import core.cache.def.impl.Struct
|
import core.cache.def.impl.Struct
|
||||||
|
import core.game.dialogue.DialogueFile
|
||||||
import core.game.node.entity.combat.ImpactHandler.HitsplatType
|
import core.game.node.entity.combat.ImpactHandler.HitsplatType
|
||||||
import core.game.node.entity.player.Player
|
import core.game.node.entity.player.Player
|
||||||
import core.game.node.entity.player.link.SpellBookManager
|
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, _ ->
|
define("drawintersect", Privilege.ADMIN, "", "Visualizes the predicted intersection point with an NPC") {player, _ ->
|
||||||
setAttribute(player, "draw-intersect", !getAttribute(player, "draw-intersect", false))
|
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