summaryrefslogtreecommitdiff
path: root/world/map/npc/commands/gm.txt
blob: 823019bfd4cd3202ae4cf8c4d4befbe60c46fcf4 (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
31
32
-|script|@group|32767
{
    end;

OnHide:
    if (GM < 10 && GM < G_SYSOP) end;

    if (GM == 99) set GM, 98;
    else set GM, (GM - (GM % 10)) + 1;

    message strcharinfo(0), "hidelevel : Your GM level is now hidden.";
    end;

OnShow:
    if (GM < 10 && GM < G_SYSOP) end;

    if (GM == 98) set GM, 99;
    else set GM, GM - (GM % 10);

    message strcharinfo(0), "showlevel : Your GM level is now visible.";
    end;

OnInit:
    registercmd chr(ATCMD_SYMBOL) + "showgroup", strnpcinfo(0) + "::OnShow";
    registercmd chr(ATCMD_SYMBOL) + "showgm", strnpcinfo(0) + "::OnShow";
    registercmd chr(ATCMD_SYMBOL) + "showlevel", strnpcinfo(0) + "::OnShow";

    registercmd chr(ATCMD_SYMBOL) + "hidegroup", strnpcinfo(0) + "::OnHide";
    registercmd chr(ATCMD_SYMBOL) + "hidegm", strnpcinfo(0) + "::OnHide";
    registercmd chr(ATCMD_SYMBOL) + "hidelevel", strnpcinfo(0) + "::OnHide";
    end;
}