summaryrefslogtreecommitdiff
path: root/npc/commands/wgm.txt
blob: f356305f422faa77e6c4cc589dfd40582acb5b65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}