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/quests/first_class/tu_archer.txt | 4 ++-- npc/quests/first_class/tu_merchant.txt | 5 ++--- npc/quests/first_class/tu_sword.txt | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'npc/quests/first_class') diff --git a/npc/quests/first_class/tu_archer.txt b/npc/quests/first_class/tu_archer.txt index be6f177d1..79dc4ebbe 100644 --- a/npc/quests/first_class/tu_archer.txt +++ b/npc/quests/first_class/tu_archer.txt @@ -76,7 +76,7 @@ payon_in02,67,65,3 script Bard Jet#tu 1_M_BARD,{ mes "up a joke~!"; emotion e_gg; next; - if (Sex == 1) { + if (Sex == SEX_MALE) { select("A joke, eh?"); specialeffect2 EF_TALK_FROSTJOKE; mes "[Jet]"; @@ -1455,7 +1455,7 @@ pay_arche,76,135,3 script #Target HIDDEN_NPC,{ end; } mes "he already has a girlfriend..."; next; mes "[Acolyte]"; - if(Sex){ + if (Sex == SEX_MALE) { mes "W-wait!"; mes "Y-you're a man!"; mes "D-d-d-don't tease me"; diff --git a/npc/quests/first_class/tu_merchant.txt b/npc/quests/first_class/tu_merchant.txt index 5b2054193..56bfb7390 100644 --- a/npc/quests/first_class/tu_merchant.txt +++ b/npc/quests/first_class/tu_merchant.txt @@ -602,11 +602,10 @@ alberta_in,70,51,5 script Guarnien 4W_M_02,{ if(getskilllv(MC_INCCARRY) < 4){ setquest 8229; mes "[Guarnien]"; - if(Sex == 1){ + if (Sex == SEX_MALE) mes "Atta boy~!"; - } else { + else mes "Atta girl~!"; - } mes "But first things first!"; mes "You better learn the"; mes "^871F78Increase Weight Limit^000000 skill!"; diff --git a/npc/quests/first_class/tu_sword.txt b/npc/quests/first_class/tu_sword.txt index 4fd5f79ab..59e64fb89 100644 --- a/npc/quests/first_class/tu_sword.txt +++ b/npc/quests/first_class/tu_sword.txt @@ -63,7 +63,7 @@ izlude_in,82,163,3 script Shurank 4_M_JOB_KNIGHT1,{ if(BaseClass == Job_Swordman && eaclass()&(EAJL_2|EAJL_UPPER|EAJL_THIRD)){ mes "From your raiment,"; mes "I see that you are"; - if(Sex) + if (Sex == SEX_MALE) mes "a man of the sword."; else mes "a woman of the sword."; -- cgit v1.2.3-70-g09d2