From 3cd3c27ee4bb6becc8ee6445f1dc7d04b9cf9832 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Sun, 18 Feb 2018 18:22:39 -0300 Subject: Make /gm work by adding a binding to @wgm. Edit bgmaster to understand properly how it works - Needs to right-click, clever. --- npc/commands/wgm.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 npc/commands/wgm.txt (limited to 'npc/commands') diff --git a/npc/commands/wgm.txt b/npc/commands/wgm.txt new file mode 100644 index 000000000..f356305f4 --- /dev/null +++ b/npc/commands/wgm.txt @@ -0,0 +1,30 @@ +// @wgm atcommand +// Request help +// +// group lv: 0 +// group char lv: 0 +// log: True +// +// usage: +// @wgm Help +// + +- script @wgm 32767,{ + end; + +OnCall: + .@request$ = strtoupper(strip(.@atcmd_parameters$[0])); // sanitize + .@map$ = ""; + .@x = 0; + .@y = 0; + + if (.@map$ == "") + { + .@map$ = .@atcmd_parameters$[0]; + } + + atcommand("@request "+.@map$); + +OnInit: + bindatcmd "wgm", "@wgm::OnCall", 0, 0, 1; +} -- cgit v1.2.3-70-g09d2