summaryrefslogtreecommitdiff
path: root/npc/commands/debug-look.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/debug-look.txt')
-rw-r--r--npc/commands/debug-look.txt38
1 files changed, 20 insertions, 18 deletions
diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt
index 869616e2f..38261f60f 100644
--- a/npc/commands/debug-look.txt
+++ b/npc/commands/debug-look.txt
@@ -1,23 +1,28 @@
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");
+ @menuret=99;
+ /*
+ 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);
+ //query_sql("UPDATE `char` SET `Sex`="+@menuret+" WHERE `char_id`="+getcharid(0));
+ return;
+ }
}
+
function setStyle {
clear;
setnpcdialogtitle l("Appearance Debug - Barber");
@@ -96,7 +101,4 @@ OnCall:
BarberDebug;
closedialog;
end;
-
-OnInit:
- bindatcmd "look", "@look::OnCall", 99, 99, 0;
}