summaryrefslogtreecommitdiff
path: root/npc/004-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-02-04 15:06:20 -0300
committerJesusaves <cpntb1@ymail.com>2022-02-04 15:06:20 -0300
commit94a5f33d0d97652e9bcd75948a713c0f114c92e5 (patch)
treea86b75a5c8ac3e53811850960f6ad30a8e831d01 /npc/004-2
parent0f5fc81dd7658ee9b638d321fbe75561449ded17 (diff)
downloadserverdata-94a5f33d0d97652e9bcd75948a713c0f114c92e5.tar.gz
serverdata-94a5f33d0d97652e9bcd75948a713c0f114c92e5.tar.bz2
serverdata-94a5f33d0d97652e9bcd75948a713c0f114c92e5.tar.xz
serverdata-94a5f33d0d97652e9bcd75948a713c0f114c92e5.zip
First part of Mirio's Quest
Diffstat (limited to 'npc/004-2')
-rw-r--r--npc/004-2/mirio.txt96
1 files changed, 96 insertions, 0 deletions
diff --git a/npc/004-2/mirio.txt b/npc/004-2/mirio.txt
index e9f9411b1..672919f45 100644
--- a/npc/004-2/mirio.txt
+++ b/npc/004-2/mirio.txt
@@ -3,15 +3,111 @@
// Jesusalva
// Description:
// Part of Speed Run Quest
+// Structure:
+// HalinarzoQuest_Speed( state, time, bonus )
004-2,146,115,0 script Mirio NPC_INDIGENOUS_YOUNG,{
+ function neutral;
+ function naked;
+ function disarmed;
+ function hungry;
+ function speed;
+ function slow;
+ .@q = getq(HalinarzoQuest_Speed);
+ .@t = getq2(HalinarzoQuest_Speed);
+ .@b = getq3(HalinarzoQuest_Speed);
+ if (BaseLevel < 40) neutral();
+ if (getequipid(EQI_HEAD_MID) < 1) naked();
+ if (getequipid(EQI_HEAD_TOP) < 1) naked();
+ if (getequipid(EQI_HAND_R) < 1) disarmed();
+ if (getequipid(EQI_HAND_L) < 1) disarmed();
+ if (.@q <= 0) hungry();
+ if (.@q == 1) speed();
+ neutral();
+ close;
+
+function neutral {
mesn;
mesq l("Howdy! Pachua and I scout this canyon to protect our clan. I acknowledge only those whom are fast like the wind! I would love to challenge you for a race... But not today.");
close;
+}
+
+function naked {
+ mesn;
+ mesq l("...I know it is hot in this desert, but if you don't wear some armor and a hat, monsters will get to you. Really harsh, nowadays.");
+ close;
+}
+
+function disarmed {
+ .@pn$ = lg("girl", "dude");
+ mesn;
+ mesq l("...%s, as far as you should be concerned, this is an hostile land and I'm not your friend. You should use a weapon and a shield if possible. Never trust strangers, specially if they look like an assassin... exactly like me.", .@pn$);
+ close;
+}
+
+function slow {
+ mesn;
+ mesq l("...Try allocating some points in agility before we continue. I think %d should be suffice.", 40);
+ close;
+}
+
+function hungry {
+ .@pn$ = lg("gal", "pal");
+ mesn;
+ mesq l("Howdy, partner! Man, you have no idea how I'm hungry. Been scouting this canyon for weeks, under the scorching sun, and there's only snake meat to eat... I'm get tired of this repulsive stuff.");
+ next;
+ mesn;
+ mesq l("So let's strike a deal, bring me %d %s, %d %s, %d %s, and a %s. I'll reward you, promise.",
+ 10, getitemlink(LettuceLeaf),
+ 5, getitemlink(Cheese),
+ 2, getitemlink(TonoriDelight),
+ getitemlink(HalfCroconut));
+ next;
+ select
+ l("Sure, I'll be back."),
+ l("I have everything you asked me.");
+ mes "";
+ if (@menu == 1) closeclientdialog;
+ if (@menu == 2) {
+ if (countitem(LettuceLeaf) < 10 ||
+ countitem(Cheese) < 5 ||
+ countitem(TonoriDelight) < 2 ||
+ countitem(HalfCroconut) < 1) {
+ mesc l("A dagger is stuck to your heart."), 1;
+ mesn;
+ mesq l("Told ya, %s, should know better than to mess with an... assassin!", .@pn$);
+ percentheal -100, 0;
+ close;
+ }
+ inventoryplace CaveSnakeSkin, 1, SnakeSkin, 1;
+ delitem LettuceLeaf, 10;
+ delitem Cheese, 5;
+ delitem TonoriDelight, 2;
+ delitem HalfCroconut, 1;
+ getitem SnakeSkin, 1;
+ getitem CaveSnakeSkin, 1;
+ setq HalinarzoQuest_Speed, 1;
+ mesn;
+ mesq l("Ah, good. You didn't even bother poisoning it? Hahah, that's great, %s! Here is a couple skins I had lying around, may be useful.", .@pn$);
+ next;
+ mesn;
+ mesq l("How about this, I can teach you how to be a tiny bit faster, so you can use heavier armor. I'll even give you a discount. Give it some thought, come back to me after you make up your mind.");
+ }
+ close;
+}
+
+function speed {
+ if (readparam2(bAgi) < 40) speed();
+ mesn;
+ mesq l("Have you thought on my proposal? I'll only charge you %d GP or a %s for each attempt made.", .price, getitemlink(.alt));
+ close;
+}
OnInit:
.distance = 4;
.sex = G_MALE;
+ .price = 320;
+ .alt = TonoriDelight;
end;
}