summaryrefslogtreecommitdiff
path: root/npc/commands/bodytype.txt
blob: 290c6fd62a9768c9fa4d7792b107040aea96d0e0 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// @bodytype atcommand
// changes or returns the body type

-	script	@bodytype	32767,{
    end;

OnCall:
    if (.@atcmd_parameters$[0] == "") {
        dispbottom("Your current body type is " + bodytypeToString());
        end;
    }

    .@desired = stringToBodytype(.@atcmd_parameters$[0]);

    if (.@desired == BodyType) {
        dispbottom("Your body type is already " + bodytypeToString());
    } else {
        BodyType = .@desired;
        dispbottom("Body type changed to " + bodytypeToString());
    }
    end;

OnInit:
    bindatcmd("gender", "@bodytype::OnCall", 99, 99, false);
    bindatcmd("bodytype", "@bodytype::OnCall", 99, 99, false);
    bindatcmd("body", "@bodytype::OnCall", 99, 99, false);
    bindatcmd("type", "@bodytype::OnCall", 99, 99, false);
    bindatcmd("changesex", "@bodytype::OnCall", 99, 99, false);

    add_group_command("gender", 40, true, false);
    add_group_command("bodytype", 40, true, false);
    add_group_command("body", 40, true, false);
    add_group_command("type", 40, true, false);
    add_group_command("changesex", 40, true, false);

    add_group_command("gender", 50, true, false);
    add_group_command("bodytype", 50, true, false);
    add_group_command("body", 50, true, false);
    add_group_command("type", 50, true, false);
    add_group_command("changesex", 50, true, false);

    add_group_command("gender", 60, true, false);
    add_group_command("bodytype", 60, true, false);
    add_group_command("body", 60, true, false);
    add_group_command("type", 60, true, false);
    add_group_command("changesex", 60, true, false);

    add_group_command("gender", 80, true, false);
    add_group_command("bodytype", 80, true, false);
    add_group_command("body", 80, true, false);
    add_group_command("type", 80, true, false);
    add_group_command("changesex", 80, true, false);
}