diff --git a/game/src/plugins/run/meta.toml b/game/src/plugins/run/meta.toml new file mode 100644 index 00000000..fd05752f --- /dev/null +++ b/game/src/plugins/run/meta.toml @@ -0,0 +1 @@ +name = "run" \ No newline at end of file diff --git a/game/src/plugins/run/src/run.plugin.kts b/game/src/plugins/run/src/run.plugin.kts new file mode 100644 index 00000000..00c6a470 --- /dev/null +++ b/game/src/plugins/run/src/run.plugin.kts @@ -0,0 +1,10 @@ +import org.apollo.game.message.impl.ButtonMessage + +val WALK_BUTTON_ID = 152 +val RUN_BUTTON_ID = 153 + +on { ButtonMessage::class } + .where { widgetId == WALK_BUTTON_ID || widgetId == RUN_BUTTON_ID } + .then { + it.toggleRunning() + } \ No newline at end of file