summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/debug-look.txt31
1 files changed, 16 insertions, 15 deletions
diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt
index c22140bde..fa1a4d0b7 100644
--- a/npc/commands/debug-look.txt
+++ b/npc/commands/debug-look.txt
@@ -1,23 +1,24 @@
function script BarberDebug {
function setGender {
- //clear;
- //setnpcdialogtitle l("Appearance Debug - Sex Change");
- //mes l("Please choose the desired gender:");
- //next;
- //menuint
- // l("Male"), G_MALE,
- // l("Female"), G_FEMALE,
- // l("Other"), G_OTHER;
-
- //Sex = @menuret; // FIXME: make this work like in tmwAthena
- //return;
-
+ clear;
+ setnpcdialogtitle l("Appearance Debug - Sex Change");
+ mes l("Please choose the desired gender:");
+ next;
+ menuint
+ l("Male"), G_MALE,
+ l("Female"), G_FEMALE,
+ l("Legacy"), 99;
- // ^ Future code, Doesn't work yet
- closedialog;
- changecharsex;
+ if (@menuret == 99) {
+ closedialog;
+ changecharsex;
+ } else {
+ setparam(Sex, @menuret);
+ return;
+ }
}
+
function setStyle {
clear;
setnpcdialogtitle l("Appearance Debug - Barber");