summaryrefslogtreecommitdiff
path: root/npc/commands/gender.txt
blob: 9ba2c9a4bb8879a0d7b292b31d188010a453e267 (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
// @gender atcommand
// changes or returns the gender

-	script	@gender	32767,{
    end;

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

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

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

OnInit:
    bindatcmd("gender", "@gender::OnCall", 99, 99, false);
    add_group_command("gender", 40, true, false);
    add_group_command("gender", 50, true, true);
    add_group_command("gender", 60, true, true);
    add_group_command("gender", 80, true, true);

    bindatcmd("changesex", "@gender::OnCall", 99, 99, false);
    add_group_command("changesex", 40, true, false);
    add_group_command("changesex", 50, true, true);
    add_group_command("changesex", 60, true, true);
    add_group_command("changesex", 80, true, true);
}