diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 11:00:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 11:00:49 -0300 |
commit | 8a4bf716002a017de77fe7df301ef8e4aaf00a2e (patch) | |
tree | 4947d0b015baad639fa07133369e9a09c8a468bc /npc/commands/bodytype.txt | |
download | serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.gz serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.bz2 serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.tar.xz serverdata-8a4bf716002a017de77fe7df301ef8e4aaf00a2e.zip |
Initial commit
Diffstat (limited to 'npc/commands/bodytype.txt')
-rw-r--r-- | npc/commands/bodytype.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/npc/commands/bodytype.txt b/npc/commands/bodytype.txt new file mode 100644 index 00000000..290c6fd6 --- /dev/null +++ b/npc/commands/bodytype.txt @@ -0,0 +1,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); +} |