summaryrefslogtreecommitdiff
path: root/npc/003-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 16:00:01 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 16:00:01 -0200
commit1dab71476e7fa493966b8e389e3a8c9f3a3616ee (patch)
tree13520d64685e39060563eccdbe336d39644ddf40 /npc/003-2
parentd7b6cf2e133e1bf2ed70368df929dd53bcf04fe5 (diff)
downloadserverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.tar.gz
serverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.tar.bz2
serverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.tar.xz
serverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.zip
Introduce a new helper for main storyline: msObjective().
Diffstat (limited to 'npc/003-2')
-rw-r--r--npc/003-2/lua.txt30
1 files changed, 6 insertions, 24 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index 86185c17b..10657b5b6 100644
--- a/npc/003-2/lua.txt
+++ b/npc/003-2/lua.txt
@@ -173,35 +173,17 @@ L_Info:
L_Task:
mesc b(l(".:: Main Quest 2-1 ::.")), 3;
- if (BaseLevel >= 20)
- mesc l("* @@/@@ Base Level", BaseLevel, 20), 2;
- else
- mesc l("* @@/@@ Base Level", BaseLevel, 20), 9;
+ msObjective(BaseLevel >= 20, l("* @@/@@ Base Level", BaseLevel, 20));
- if (JobLevel >= 6)
- mesc l("* @@/@@ Job Level", JobLevel, 6), 2;
- else
- mesc l("* @@/@@ Job Level", JobLevel, 6), 9;
+ msObjective(JobLevel >= 6, l("* @@/@@ Job Level", JobLevel, 6));
- if (Zeny >= 1000)
- mesc l("* @@/@@ GP", Zeny, 1000), 2;
- else
- mesc l("* @@/@@ GP", Zeny, 1000), 9;
+ msObjective(Zeny >= 1000, l("* @@/@@ GP", Zeny, 1000));
- if (countitem(TulimsharGuardCard))
- mesc l("* @@/@@ @@", countitem(TulimsharGuardCard), 1, getitemlink(TulimsharGuardCard)), 2;
- else
- mesc l("* @@/@@ @@", countitem(TulimsharGuardCard), 1, getitemlink(TulimsharGuardCard)), 9;
+ msObjective(countitem(TulimsharGuardCard), l("* @@/@@ @@", countitem(TulimsharGuardCard), 1, getitemlink(TulimsharGuardCard)));
- if (countitem(FishingRod))
- mesc l("* @@/@@ @@", countitem(FishingRod), 1, getitemlink(FishingRod)), 2;
- else
- mesc l("* @@/@@ @@", countitem(FishingRod), 1, getitemlink(FishingRod)), 9;
+ msObjective(countitem(FishingRod), l("* @@/@@ @@", countitem(FishingRod), 1, getitemlink(FishingRod)));
- if (countitem(LifestonePendant))
- mesc l("* @@/@@ @@", countitem(LifestonePendant), 1, getitemlink(LifestonePendant)), 2;
- else
- mesc l("* @@/@@ @@", countitem(LifestonePendant), 1, getitemlink(LifestonePendant)), 9;
+ msObjective(countitem(LifestonePendant), l("* @@/@@ @@", countitem(LifestonePendant), 1, getitemlink(LifestonePendant)));
next;
if (BaseLevel >= 20 &&