diff options
author | AnnieRuru <jeankof@ymail.com> | 2016-01-06 16:38:43 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-16 19:57:34 +0100 |
commit | a1310e2d8c098fcbeb485314a4bafa5d6659be7e (patch) | |
tree | 7ebba2392df11cbf008b24e4bb9402cc89c2433e /npc/merchants | |
parent | e3c680b76bf2d13de6286f3b486d946b25b7bdb1 (diff) | |
download | hercules-a1310e2d8c098fcbeb485314a4bafa5d6659be7e.tar.gz hercules-a1310e2d8c098fcbeb485314a4bafa5d6659be7e.tar.bz2 hercules-a1310e2d8c098fcbeb485314a4bafa5d6659be7e.tar.xz hercules-a1310e2d8c098fcbeb485314a4bafa5d6659be7e.zip |
Remove VAR_ constants
- there are 2 same constants for setlook script command, remove the wrong one
- VAR_ constant added by lone_wolf is invalid https://github.com/HerculesWS/Hercules/commit/f4278f36db32f35e535a0ea8feb1cf83ca95019e, so use the LOOK_ constant
Diffstat (limited to 'npc/merchants')
-rw-r--r-- | npc/merchants/hair_dyer.txt | 8 | ||||
-rw-r--r-- | npc/merchants/hair_style.txt | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/npc/merchants/hair_dyer.txt b/npc/merchants/hair_dyer.txt index db261c215..1a786b415 100644 --- a/npc/merchants/hair_dyer.txt +++ b/npc/merchants/hair_dyer.txt @@ -97,7 +97,7 @@ prt_in,243,168,4 script Jovovich 4_F_02,{ close; } - if (.@headpalette == getlook(VAR_HEADPALETTE)) { + if (.@headpalette == getlook(LOOK_HAIR_COLOR)) { mes "[Hairdresser Jovovich]"; mes "Eh? But that's the hair color you already have. Please choose a different color."; next; @@ -130,7 +130,7 @@ prt_in,243,168,4 script Jovovich 4_F_02,{ case 8: delitem Scarlet_Dyestuffs,1; break; } Zeny -= 1000; - setlook VAR_HEADPALETTE,.@headpalette; + setlook LOOK_HAIR_COLOR,.@headpalette; .@choose_success = 1; break; } @@ -275,7 +275,7 @@ lhz_in02,100,134,3 script Hair Dyer#lich 4_F_EINWOMAN,{ } break; } - if (getlook(VAR_HEADPALETTE) == .@headpalette) { + if (getlook(LOOK_HAIR_COLOR) == .@headpalette) { mes "[Rossa]"; mes "Hmm, your hair color"; mes "is still fine, so there's"; @@ -388,7 +388,7 @@ lhz_in02,100,134,3 script Hair Dyer#lich 4_F_EINWOMAN,{ else if (.@headpalette == 6) delitem White_Dyestuffs,1; else if (.@headpalette == 7) delitem Black_Dyestuffs,1; Zeny -= 1000; - setlook VAR_HEADPALETTE,.@headpalette; + setlook LOOK_HAIR_COLOR,.@headpalette; .@choose_success = 1; break; } diff --git a/npc/merchants/hair_style.txt b/npc/merchants/hair_style.txt index 7bfefadf4..2d61d02db 100644 --- a/npc/merchants/hair_style.txt +++ b/npc/merchants/hair_style.txt @@ -995,7 +995,7 @@ lhz_in02,100,143,3 script Hair Dresser#li 2_M_DYEINGER,{ mes "you soooooooo beautiful!"; close; } - else if (getlook(VAR_HEAD) == .@input) { + else if (getlook(LOOK_HAIR) == .@input) { mes "[Prince Shammi]"; mes "Oh dear me, you're not"; mes "going to waste money for"; @@ -1017,7 +1017,7 @@ lhz_in02,100,143,3 script Hair Dresser#li 2_M_DYEINGER,{ next; switch(select("Yes.:No.")) { case 1: - if (getlook(VAR_HEADPALETTE) == 0) { + if (getlook(LOOK_HAIR_COLOR) == 0) { mes "[Prince Shammi]"; mes "Oh, Sweet Christmas,"; mes "I almost forgot! Would"; @@ -1072,8 +1072,8 @@ lhz_in02,100,143,3 script Hair Dresser#li 2_M_DYEINGER,{ delitem Long_Hair,100; delitem Golden_Hair,100; delitem Glossy_Hair,100; - setlook VAR_HEAD,.@input; - setlook VAR_HEADPALETTE,.@headpalette; + setlook LOOK_HAIR,.@input; + setlook LOOK_HAIR_COLOR,.@headpalette; mes "[Prince Shammi]"; mes "Well, we're all finished!"; mes "And my, oh my, you look even"; @@ -1272,8 +1272,8 @@ lhz_in02,91,155,5 script Assistant Beautician#li 4_F_LGTGIRL,{ mes "^333333*Pant Pant Pant*^000000"; next; Zeny -= 250000; - setlook VAR_HEAD,.@style_r; - setlook VAR_HEADPALETTE,.@color_r; + setlook LOOK_HAIR,.@style_r; + setlook LOOK_HAIR_COLOR,.@color_r; mes "[Assistant Beautician]"; mes "Bwahahaha! Success!"; if (.@input == .@style_r) { |