From 05a2538114972de94352e66586f6f2a5affea9c6 Mon Sep 17 00:00:00 2001 From: Emistry Date: Mon, 25 Jan 2016 23:00:26 +0800 Subject: Replaced the SEX_FEMALE/SEX_MALE constants to scripts, where appropriate --- npc/events/christmas_2005.txt | 2 +- npc/events/christmas_2008.txt | 8 ++++---- npc/events/valentinesday_2009.txt | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'npc/events') diff --git a/npc/events/christmas_2005.txt b/npc/events/christmas_2005.txt index a39fe5851..db2423e8f 100644 --- a/npc/events/christmas_2005.txt +++ b/npc/events/christmas_2005.txt @@ -953,7 +953,7 @@ prontera,156,242,0 script Oholy#pron::OholyDup 1_F_PRIEST,{ mes "The Lord has come."; specialeffect EF_GLORIA; next; - if (Sex) { + if (Sex == SEX_MALE) { mes "[Oholy]"; mes "Merry Christmas!"; mes "Dear brother, what comes in"; diff --git a/npc/events/christmas_2008.txt b/npc/events/christmas_2008.txt index c575cb9c6..64f3efa93 100644 --- a/npc/events/christmas_2008.txt +++ b/npc/events/christmas_2008.txt @@ -65,7 +65,7 @@ prontera,226,306,4 script Caroller#iROxmas08 1_F_PRIEST,{ next; mes "[Caroller]"; mes "Merry Christmas!"; - if (Sex) { + if (Sex == SEX_MALE) { mes "Hey, boy! What comes to mind when"; } else { mes "Hey, girl! What comes to mind when"; @@ -476,7 +476,7 @@ prontera,226,306,4 script Caroller#iROxmas08 1_F_PRIEST,{ case 2: mes "[Santa Claus]"; - if (Sex) { + if (Sex == SEX_MALE) { mes "Ho ho ho! What a good boy!"; } else { mes "Ho ho ho! What a good girl!"; @@ -709,7 +709,7 @@ prontera,226,306,4 script Caroller#iROxmas08 1_F_PRIEST,{ next; mes "[Santa Claus]"; mes "........................"; - if (Sex) { + if (Sex == SEX_MALE) { mes "Oh! Poor boy..."; } else { mes "Oh! Poor girl..."; @@ -717,7 +717,7 @@ prontera,226,306,4 script Caroller#iROxmas08 1_F_PRIEST,{ next; mes "[Santa Claus]"; mes "........................"; - if (Sex) { + if (Sex == SEX_MALE) { mes "Oh! Poor boy..."; } else { mes "Oh! Poor girl..."; diff --git a/npc/events/valentinesday_2009.txt b/npc/events/valentinesday_2009.txt index 690ab6697..6b964d42c 100644 --- a/npc/events/valentinesday_2009.txt +++ b/npc/events/valentinesday_2009.txt @@ -396,7 +396,7 @@ prontera,154,185,5 script Event Ring Maker#Val09 4_F_KAFRA7,{ delitem 7948,1; Zeny -= 1000; iROval09ring = 1; - if (Sex) { + if (Sex == SEX_MALE) { getnameditem 12742,strcharinfo(0); } else { getnameditem 12743,strcharinfo(0); @@ -453,7 +453,7 @@ prontera,157,185,4 script Valentine Vote Manager#v 4_F_KAFRA5,{ break; } - if (Sex) { + if (Sex == SEX_MALE) { if (countitem(Valentine_Silver_Ring) > .@input) { mes "[Valentine Vote Manager]"; mes "Seems like the value you entered is too small."; @@ -536,7 +536,7 @@ prontera,157,185,4 script Valentine Vote Manager#v 4_F_KAFRA5,{ //== Charles Orleans (Makes Home-Made Chocolates) ========== prt_castle,42,35,3 script Dessert Manager#Val09 1_M_01,{ - if (Sex) { + if (Sex == SEX_MALE) { mes "[Charles Orleans]"; mes "Monsieur~! What brings you to my beautiful atelier?"; mes "What is it that you want?"; -- cgit v1.2.3-70-g09d2