summaryrefslogtreecommitdiff
path: root/npc/commands/wgm.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/wgm.txt')
-rw-r--r--npc/commands/wgm.txt30
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;
+}