summaryrefslogtreecommitdiff
path: root/npc/functions/permissions.txt
blob: 8af2cc292ba6ffacce35d6059606081f76c22ba4 (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
33
34
35
36
// Evol scripts.
// Author:
//    gumi
// Description:
//    checks player permissions
//    ** admins are implicitly everything

// administrator
function	script	is_admin	{
    return has_permission(PERM_USE_ALL_COMMANDS,
                          getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}

// any staff member
function	script	is_trusted	{
    return has_permission("show_client_version",
                          getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}

// developer
function	script	is_dev	{
    return has_permission(PERM_RECEIVE_REQUESTS,
                          getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}

// event coordinator
function	script	is_evtc	{
    return can_use_command("@monster",
                           getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}

// game master
function	script	is_gm	{
    return can_use_command("@jail",
                           getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}