From 01a5aea68556e8f720cec37668510d458ac869a8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 10:34:39 -0300 Subject: Test nÂș 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/commands/debug-look.txt | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'npc') 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"); -- cgit v1.2.3-60-g2f50