diff options
author | jesusalva <cpntb1@ymail.com> | 2018-02-18 18:22:39 -0300 |
---|---|---|
committer | jesusalva <cpntb1@ymail.com> | 2018-02-18 18:22:39 -0300 |
commit | 3cd3c27ee4bb6becc8ee6445f1dc7d04b9cf9832 (patch) | |
tree | 794c642953b5d82f9c62256f198e079fb80f1aed /npc/commands | |
parent | b494d616f267467ead9d28882499d7a9c7a6a7f7 (diff) | |
download | serverdata-3cd3c27ee4bb6becc8ee6445f1dc7d04b9cf9832.tar.gz serverdata-3cd3c27ee4bb6becc8ee6445f1dc7d04b9cf9832.tar.bz2 serverdata-3cd3c27ee4bb6becc8ee6445f1dc7d04b9cf9832.tar.xz serverdata-3cd3c27ee4bb6becc8ee6445f1dc7d04b9cf9832.zip |
Make /gm work by adding a binding to @wgm.
Edit bgmaster to understand properly how it works - Needs to right-click, clever.
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/wgm.txt | 30 |
1 files changed, 30 insertions, 0 deletions
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; +} |