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/re/jobs/1-1/mage.txt | 2 +- npc/re/jobs/1-1/thief.txt | 10 ++++---- npc/re/jobs/2e/kagerou_oboro.txt | 14 +++++------ npc/re/jobs/3-1/archbishop.txt | 18 +++++++------- npc/re/jobs/3-1/guillotine_cross.txt | 16 +++++++------ npc/re/jobs/3-1/mechanic.txt | 2 +- npc/re/jobs/novice/academy.txt | 44 +++++++++++++++++------------------ npc/re/jobs/novice/supernovice_ex.txt | 6 +++-- 8 files changed, 58 insertions(+), 54 deletions(-) (limited to 'npc/re/jobs') diff --git a/npc/re/jobs/1-1/mage.txt b/npc/re/jobs/1-1/mage.txt index 28bf9e3c3..55107fd00 100644 --- a/npc/re/jobs/1-1/mage.txt +++ b/npc/re/jobs/1-1/mage.txt @@ -93,7 +93,7 @@ geffen_in,164,124,4 script Mage Guildsman#mage 2_F_MAGICMASTER,{ mes "Wanna be a Mage? Eh..."; next; mes "[Mage Guildsman]"; - if (Sex) { + if (Sex == SEX_MALE) { mes "Hey, look at you! You're kinda cute~! Not my type though..."; }else{ mes "Oooh, you're such a hot babe~!"; diff --git a/npc/re/jobs/1-1/thief.txt b/npc/re/jobs/1-1/thief.txt index 61533f380..5e2da345c 100644 --- a/npc/re/jobs/1-1/thief.txt +++ b/npc/re/jobs/1-1/thief.txt @@ -63,7 +63,7 @@ moc_prydb1,39,129,2 script Thief Guide#thief 1_F_04,{ close; }else{ mes "[Thief Guide]"; - if (Sex) + if (Sex == SEX_MALE) mes "Hey, dude."; else mes "Hey, baby~"; @@ -71,7 +71,7 @@ moc_prydb1,39,129,2 script Thief Guide#thief 1_F_04,{ } }else{ mes "[Thief Guide]"; - if (Sex) + if (Sex == SEX_MALE) mes "Hey, dude."; else mes "Hey, baby."; @@ -81,7 +81,7 @@ moc_prydb1,39,129,2 script Thief Guide#thief 1_F_04,{ } if(q_job_thief == 1) { mes "[Thief Guildsman]"; - mes "Ehh... Seems like a beloved "+(Sex?"son":"daughter")+" of a rich family, but why are you here in this dirty place?"; + mes "Ehh... Seems like a beloved "+ (Sex == SEX_MALE ? "son" : "daughter") +" of a rich family, but why are you here in this dirty place?"; next; mes "[Thief Guildsman]"; mes "Well, I'm not in charge of making you a Thief. I just accept applications, get it?"; @@ -96,7 +96,7 @@ moc_prydb1,39,129,2 script Thief Guide#thief 1_F_04,{ }else{ mes "[Thief Guildsman]"; mes "What the heck...?"; - if(Sex) { + if (Sex == SEX_MALE) { mes "Huh.. you are a "+jobname(Class)+" you blockhead...!"; next; mes "[Thief Guildsman]"; @@ -111,7 +111,7 @@ moc_prydb1,39,129,2 script Thief Guide#thief 1_F_04,{ } } mes "[Thief Guildsman]"; - mes "Ehh... Seems like a beloved "+(Sex?"son":"daughter")+" of a rich family, but why are you here in this dirty place?"; + mes "Ehh... Seems like a beloved "+ (Sex == SEX_MALE ? "son" : "daughter") +" of a rich family, but why are you here in this dirty place?"; next; if(select("I want to be a Thief.", "Nothing.") == 2) { mes "[Thief Guildsman]"; diff --git a/npc/re/jobs/2e/kagerou_oboro.txt b/npc/re/jobs/2e/kagerou_oboro.txt index f8b7803e5..7d166b75a 100644 --- a/npc/re/jobs/2e/kagerou_oboro.txt +++ b/npc/re/jobs/2e/kagerou_oboro.txt @@ -279,7 +279,7 @@ job_ko,25,115,4 script Old Man#ko 4_M_KAGE_OLD,{ mes "Sorry I am not a teacher. But!"; next; mes "[Guide Gion]"; - mes "I can help you on the path you've chosen, the ^33CC71"+((Sex)?"Kagerou":"Oboro")+"^000000 path."; + mes "I can help you on the path you've chosen, the ^33CC71"+ (Sex == SEX_MALE ? "Kagerou" : "Oboro") +"^000000 path."; next; mes "^1A95E6You hear Guide Gion's voice faintly as you slip away.^1A95E6"; next; @@ -287,14 +287,14 @@ job_ko,25,115,4 script Old Man#ko 4_M_KAGE_OLD,{ setquest 5134; set job_kagero,4; mes "[Guide Gion]"; - mes "If you are prepared to follow me, Guide Gion, on the "+((Sex)?"Kagerou":"Oboro")+" path, we will meet again."; + mes "If you are prepared to follow me, Guide Gion, on the "+ (Sex == SEX_MALE ? "Kagerou" : "Oboro") +" path, we will meet again."; close2; warp "amatsu",147,136; end; } else if (job_kagero == 4) { cutin "job_ko02",2; mes "[Guide Gion]"; - mes "I thought you were afraid of the ^33CC71path of the "+((Sex)?"Kagerou":"Oboro")+"^33CC71 and wouldn't come back."; + mes "I thought you were afraid of the ^33CC71path of the "+ (Sex == SEX_MALE ? "Kagerou" : "Oboro") +"^33CC71 and wouldn't come back."; next; mes "[Guide Gion]"; mes "But from the look of your eyes, I guess I misjudged you."; @@ -684,7 +684,7 @@ job_ko,25,115,4 script Old Man#ko 4_M_KAGE_OLD,{ mes "And if you are lucky, there will be others targeting the monster."; next; mes "[Guide Gion]"; - mes "May the blessings of '" + ((Sex)?"Kagerou, dancing sun":"Oboro, misty moonlight") + "' be with you."; + mes "May the blessings of '" + (Sex == SEX_MALE ? "Kagerou, dancing sun" : "Oboro, misty moonlight") + "' be with you."; next; setquest 5146; set job_kagero,7; @@ -2555,9 +2555,9 @@ job_ko,148,46,4 script Guide Gion#ko2 4_M_KAGE_OLD,{ mes "[Guide Gion]"; mes "The Test of Battle will be put off for a while. Don't worry because this does not have affect to other tests."; next; - mapannounce "job_ko","[Gion] My Friend " + strcharinfo(0) + " made it to " + ((Sex)?"Kagerou":"Oboro") + " Path. Congratulations!!",bc_map; + mapannounce "job_ko","[Gion] My Friend " + strcharinfo(0) + " made it to " + (Sex == SEX_MALE ? "Kagerou" : "Oboro") + " Path. Congratulations!!",bc_map; mes "[Guide Gion]"; - mes "My friend " + strcharinfo(0) + " made it to " + ((Sex)?"Kagerou":"Oboro") + " Path. Congratulations!!"; + mes "My friend " + strcharinfo(0) + " made it to " + (Sex == SEX_MALE ? "Kagerou" : "Oboro") + " Path. Congratulations!!"; next; cutin "job_ko02",2; mes "[Guide Gion]"; @@ -2621,7 +2621,7 @@ job_ko,148,46,4 script Guide Gion#ko2 4_M_KAGE_OLD,{ if (questprogress(.@i)) erasequest .@i; set job_kagero,9; getnameditem .@item,strcharinfo(0); - jobchange (Sex)?Job_Kagerou:Job_Oboro; + jobchange(Sex == SEX_MALE ? Job_Kagerou : Job_Oboro); donpcevent "Summon Target#ko::OnEnable"; mes "[Guide Gion]"; mes "I hope the blessings of Kagerou, dancing sun and Oboro, misty moonlight will be with you on your journey ahead."; diff --git a/npc/re/jobs/3-1/archbishop.txt b/npc/re/jobs/3-1/archbishop.txt index 03dc40319..addcc0346 100644 --- a/npc/re/jobs/3-1/archbishop.txt +++ b/npc/re/jobs/3-1/archbishop.txt @@ -79,7 +79,7 @@ prt_church,103,88,3 script Praying Minister#arch 1_M_PASTOR,{ mes "All ministers of Odin should be diligent. They should never be too lazy to serve Odin."; next; mes "[Praying Minister]"; - mes (Sex?"Brother":"Sister")+", how has your life been? Have you lived it to its fullest?"; + mes (Sex == SEX_MALE ? "Brother" : "Sister") +", how has your life been? Have you lived it to its fullest?"; mes "Have you served your life in the light of Odin?"; next; mes "[Praying Minister]"; @@ -91,7 +91,7 @@ prt_church,103,88,3 script Praying Minister#arch 1_M_PASTOR,{ mes "We should not fall prey to lies and deceit."; next; mes "[Praying Minister]"; - mes (Sex?"Brother":"Sister")+"..."; + mes (Sex == SEX_MALE ? "Brother" : "Sister") +"..."; mes "Even though we serve Odin, we are normal people."; mes "We can be degraded in spite of ourselves and we must realize that."; next; @@ -232,7 +232,7 @@ umbala,139,227,3 script Priest#arch 1_M_PASTOR,{ mes "[Priest Dayan]"; mes "Ah~, yes."; mes "Yes, I am."; - mes "I'm Dayan. Nice to meet you "+(Sex?"Brother.":"Sister."); + mes "I'm Dayan. Nice to meet you "+ (Sex == SEX_MALE ? "Brother." : "Sister."); next; mes "The old priest gives you an ear to ear grin. "; next; @@ -269,7 +269,7 @@ umbala,139,227,3 script Priest#arch 1_M_PASTOR,{ mes "Eh... are you?"; mes "A pilgrimage to the Holy Land..."; mes "It has been a long time since I've seen such a devout minister."; - mes "Welcome. "+(Sex?"Brother.":"Sister."); + mes "Welcome. "+ (Sex == SEX_MALE ? "Brother." : "Sister."); next; mes "The old priest gives you a gracious smile."; next; @@ -293,7 +293,7 @@ umbala,139,227,3 script Priest#arch 1_M_PASTOR,{ mes "Mimir's spring wells with intelligence, myth says that if Odin lets you have his eye that you will gain all of the knowledge within that spring."; next; mes "[Priest Dayan]"; - mes Sex?"Brother.":"Sister."; + mes Sex == SEX_MALE ? "Brother." : "Sister."; mes "Through the Holy Pilgrimage, we can make ourselves pious by cleansing our bodies and souls."; next; mes "[Priest Dayan]"; @@ -395,7 +395,7 @@ umbala,139,227,3 script Priest#arch 1_M_PASTOR,{ mes "Thanks for your kind words."; next; mes "[Priest Dayan]"; - mes Sex?"Brother.":"Sister."; + mes Sex == SEX_MALE ? "Brother." : "Sister."; mes "Now, there is a place you should go to."; next; mes "[Priest Dayan]"; @@ -415,7 +415,7 @@ umbala,139,227,3 script Priest#arch 1_M_PASTOR,{ next; mes "[Priest Dayan]"; mes "Thank you very much."; - mes "Feel free to visit here when you want to pray, "+(Sex?"brother.":"sister."); + mes "Feel free to visit here when you want to pray, "+ (Sex == SEX_MALE ? "brother." : "sister."); mes "A visit from a friend always makes me happy."; job_arch = 4; changequest 2188,2189; @@ -599,7 +599,7 @@ hu_in01,205,204,7 script Praying Nun#benew 1_F_PRIEST,{ mes "[Vinue]"; mes "Ah, Welcome."; mes "It's not time to have a service yet..."; - mes "Are you here to pray, "+(Sex?"brother":"sister")+"?"; + mes "Are you here to pray, "+ (Sex == SEX_MALE ? "brother" : "sister") +"?"; next; mes "[" + strcharinfo(0) + "]"; mes "I came here to say hello from Priest Dayan from Prontera."; @@ -618,7 +618,7 @@ hu_in01,205,204,7 script Praying Nun#benew 1_F_PRIEST,{ next; mes "[Vinue]"; mes "Ah..."; - mes "He's very kind. As are you "+(Sex?"brother":"sister")+"."; + mes "He's very kind. As are you "+ (Sex == SEX_MALE ? "brother" : "sister") +"."; next; mes "[Vinue]"; mes "But don't worry."; diff --git a/npc/re/jobs/3-1/guillotine_cross.txt b/npc/re/jobs/3-1/guillotine_cross.txt index c2796526b..a29961eca 100644 --- a/npc/re/jobs/3-1/guillotine_cross.txt +++ b/npc/re/jobs/3-1/guillotine_cross.txt @@ -257,7 +257,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{ mes "[Daora]"; if (Class == Job_Assassin || Class == Job_Assassin_Cross || Class == Job_Baby_Assassin) { if (job_3rd_gc < 4) { - if (Sex) { + if (Sex == SEX_MALE) { mes "Oh~ you're good-looking!"; mes "So, what do you want?"; } else { @@ -755,7 +755,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{ close; } } else if (Class == Job_Guillotine_Cross || Class == Job_Guillotine_Cross_T || Class == Job_Baby_Cross) { - if (Sex) { + if (Sex == SEX_MALE) { mes "Oh~ you're good-looking~!"; mes "It's worthwhile to open a pub~"; mes "I can feel fruitful labors whenever I see a guy like you~"; @@ -788,7 +788,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{ close; case 3: mes "[Daora]"; - if (Sex) { + if (Sex == SEX_MALE) { mes "Uh... Umm..."; mes "It's complicated order. but I don't have any choice since you want it."; next; @@ -813,7 +813,7 @@ job3_guil01,82,95,3 script Daora#3rdgc02 4_F_DESERT,{ } } } else { - if (Sex == 1) { + if (Sex == SEX_MALE) { mes "Oh~ you're good-looking!"; mes "So, what do you want?"; } @@ -1218,8 +1218,10 @@ ve_in,228,108,3 script Waitress#3rdgc04 1_F_PUBGIRL,{ mes "What? My name?"; mes "Are you hitting on me?"; mes "Don't do that."; - if (Sex) mes "You are not my type."; - else mes "I don't swing that way."; + if (Sex == SEX_MALE) + mes "You are not my type."; + else + mes "I don't swing that way."; close; case 3: mes "[Waitress]"; @@ -2025,7 +2027,7 @@ veins,223,180,3 script Girl#3rdgc09 4_F_DST_CHILD,{ } next; mes "[Melissa]"; - mes "Hi, "+((Sex)?"brother":"sister")+"~ Let me collect all of the information you've provided..."; + mes "Hi, "+ (Sex == SEX_MALE ? "brother" : "sister")+ "~ Let me collect all of the information you've provided..."; next; mes "- She begins to murmur and gestures toward the sky. Her hair springs up as she says... -"; next; diff --git a/npc/re/jobs/3-1/mechanic.txt b/npc/re/jobs/3-1/mechanic.txt index 10495572e..4dcc98448 100644 --- a/npc/re/jobs/3-1/mechanic.txt +++ b/npc/re/jobs/3-1/mechanic.txt @@ -95,7 +95,7 @@ yuno,129,156,3 script Chainheart 4_M_DOCTOR,{ next; job__mechanic = 12; completequest 10101; - if (Sex) + if (Sex == SEX_MALE) getitem Driver_Band,1; else getitem Driver_Band_,1; diff --git a/npc/re/jobs/novice/academy.txt b/npc/re/jobs/novice/academy.txt index 758eeb110..949e6973d 100644 --- a/npc/re/jobs/novice/academy.txt +++ b/npc/re/jobs/novice/academy.txt @@ -5751,7 +5751,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ mes "[Otter Samssoon]"; switch(.@style) { case 1: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Play Dead' cut?"; mes "This looks neat and relaxed.. So popular style."; } else { @@ -5761,7 +5761,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 2: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Two Handed Sword Mastery' cut?"; mes "You... You know the famous D..? He has exactly the same style!"; } else { @@ -5770,7 +5770,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 3: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Napalm Beat' cut?"; mes "It has well arranges hair line that makes feel charisma."; } else { @@ -5779,7 +5779,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 4: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Double Strafe' cut?"; mes "Natural hair is shaking by wind.. Clean and good feeling."; } else { @@ -5788,7 +5788,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 5: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Angelus' cut?"; mes "Calm and piety feeling.. Not boring style."; } else { @@ -5797,7 +5797,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 6: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Push Cart' cut?"; mes "Big Kar is motivated for this style with a romance of a man."; } else { @@ -5806,7 +5806,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 7: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Envenom' cut?"; mes "Tough style makes addicted."; } else { @@ -5816,7 +5816,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 8: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Bowling Bash' cut?"; mes "This style makes a nice guy to challenge."; mes "Just a giving a glance can steal the heart."; @@ -5826,7 +5826,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 9: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Venom Dust' cut?"; mes "This style has special ending line that looks fatal."; } else { @@ -5835,7 +5835,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 10: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Turn Undead' cut?"; mes "This style is like a cold city man who is strong enough to kill a monster."; } else { @@ -5844,7 +5844,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 11: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Dragonology' cut?"; mes "This style is intelligent style of mysterious dragon."; } else { @@ -5853,7 +5853,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 12: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Mace Mastery' cut?"; mes "Look fresh and look neat with wax treatment."; } else { @@ -5862,7 +5862,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 13: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Thunder Storm' cut?"; mes "This style has natural attractive perm which is like hitting by thunder storm."; } else { @@ -5871,7 +5871,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 14: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Encore' cut?"; mes "Rocker's favorite style.. Even the name itself.."; } else { @@ -5880,7 +5880,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 15: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Grimtooth' cut?"; mes "The style with edge."; } else { @@ -5890,7 +5890,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 16: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Blitz Beat' cut?"; mes "It is the style my senior invented after he broke up with his girlfriends 5 times."; } else { @@ -5899,7 +5899,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 17: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Find Ore' cut?"; mes "This style seems to bring encounter or find unexpected things while walking on the street."; } else { @@ -5908,7 +5908,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 18: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Fire Pillar' cut?"; mes "Everyone used to have this hair style.. Which means that was a trend of an era."; } else { @@ -5917,7 +5917,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } break; case 19: - if(Sex) { + if (Sex == SEX_MALE) { mes "Oh my!!? 'Guillotine Fist'"; mes "It is like one-shot style.. Like a real man. Right?"; } else { @@ -6056,7 +6056,7 @@ iz_ac01,69,36,3 script Otter Samssoon#ac 4W_SAILOR,{ } L_cutin: - if(Sex) { + if (Sex == SEX_MALE) { if(getarg(0) < 10) cutin "hair_m_0"+getarg(0),4; else @@ -7144,7 +7144,7 @@ iz_ac02,142,85,6 script Lusa#ac 4_F_GUNSLINGER,{ mes "You're so cute! A ^ff0000Gunslinger^000000 who has true grit wield his weapons bringing justice in these wild times."; next; mes "[Lusa]"; - if (Sex == 1) + if (Sex == SEX_MALE) mes "Ya, know you remind me of my little brother, that varmint couldn't shoot the broadside of a barn.. at least not until I taught him."; else mes "Ya, know you remind me of my little sister, that scamp couldn't shoot the broadside of barn.. At least not until I taught her."; @@ -8186,7 +8186,7 @@ iz_ac02,70,85,5 script Arang#ac 4_F_TAEKWON,{ if (JobLevel >= 10) { cutin "arang01.bmp", 0; mes "[Arang]"; - mes "It's time to choose your job? How about Taekwon "+(Sex ? "boy" : "girl")+"? You may be a nice adult like me."; + mes "It's time to choose your job? How about Taekwon "+ (Sex == SEX_MALE ? "boy" : "girl") +"? You may be a nice adult like me."; next; } while (1) { diff --git a/npc/re/jobs/novice/supernovice_ex.txt b/npc/re/jobs/novice/supernovice_ex.txt index 5ee7cb695..56d70a140 100644 --- a/npc/re/jobs/novice/supernovice_ex.txt +++ b/npc/re/jobs/novice/supernovice_ex.txt @@ -681,8 +681,10 @@ airplane,33,47,5 script Nudor#sp2 4_F_NOVICE,{ } next; mes "[Nudor]"; - if (Sex) mes "Did you know? You're really handsome~"; - else mes "I need to tell you, you are really... really~ beautiful."; + if (Sex == SEX_MALE) + mes "Did you know? You're really handsome~"; + else + mes "I need to tell you, you are really... really~ beautiful."; next; mes "[Nudor]"; mes "- You feel like you're being -"; -- cgit v1.2.3-60-g2f50