From 1dab71476e7fa493966b8e389e3a8c9f3a3616ee Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 14 Jan 2019 16:00:01 -0200 Subject: Introduce a new helper for main storyline: msObjective(). --- npc/012-2/rakinorf.txt | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'npc/012-2') diff --git a/npc/012-2/rakinorf.txt b/npc/012-2/rakinorf.txt index 23fac1ed3..90aedfde1 100644 --- a/npc/012-2/rakinorf.txt +++ b/npc/012-2/rakinorf.txt @@ -238,25 +238,13 @@ L_MainStory: case 8: mesc b(l(".:: Main Quest 2-2 ::.")), 3; - if (BaseLevel >= 40) - mesc l("* @@/@@ Base Level", BaseLevel, 40), 2; - else - mesc l("* @@/@@ Base Level", BaseLevel, 40), 9; + msObjective(BaseLevel >= 40, l("* @@/@@ Base Level", BaseLevel, 40)); - if (JobLevel >= 15) - mesc l("* @@/@@ Job Level", JobLevel, 15), 2; - else - mesc l("* @@/@@ Job Level", JobLevel, 15), 9; + msObjective(JobLevel >= 15, l("* @@/@@ Job Level", JobLevel, 15)); - if (countitem(Scythe)) - mesc l("* @@/@@ @@", countitem(Scythe), 1, getitemlink(Scythe)), 2; - else - mesc l("* @@/@@ @@", countitem(Scythe), 1, getitemlink(Scythe)), 9; + msObjective(countitem(Scythe), l("* @@/@@ @@", countitem(Scythe), 1, getitemlink(Scythe))); - if (getq(HurnscaldQuest_BloodDonor)) - mesc l("* Donate blood at least once."), 2; - else - mesc l("* Donate blood at least once."), 9; + msObjective(getq(HurnscaldQuest_BloodDonor), l("* Donate blood at least once.")); next; if (BaseLevel >= 40 && -- cgit v1.2.3-70-g09d2