diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:17:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:17:37 -0300 |
commit | 5274879426338b935da6822ab194d0755dc3a40c (patch) | |
tree | ef6ab5cca963c5c45a000aca3e22f58d9ec85c9c /npc/commands | |
parent | 04817d4574b9b11cfc98b9dc6c05e232468dbaf1 (diff) | |
download | serverdata-5274879426338b935da6822ab194d0755dc3a40c.tar.gz serverdata-5274879426338b935da6822ab194d0755dc3a40c.tar.bz2 serverdata-5274879426338b935da6822ab194d0755dc3a40c.tar.xz serverdata-5274879426338b935da6822ab194d0755dc3a40c.zip |
Well, neither setparam() (error unrecognized type 21) nor query_sql (overwriten) worked.
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/debug-look.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt index a3ea32090..38261f60f 100644 --- a/npc/commands/debug-look.txt +++ b/npc/commands/debug-look.txt @@ -3,19 +3,22 @@ function script BarberDebug { function setGender { 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; + */ if (@menuret == 99) { closedialog; changecharsex; } else { //setparam(Sex, @menuret); - query_sql("UPDATE `char` SET `Sex`="+@menuret+" WHERE `char_id`="+getcharid(0)); + //query_sql("UPDATE `char` SET `Sex`="+@menuret+" WHERE `char_id`="+getcharid(0)); return; } } |