summaryrefslogtreecommitdiff
path: root/npc/008-1/mikhail.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/008-1/mikhail.txt')
-rwxr-xr-x[-rw-r--r--]npc/008-1/mikhail.txt178
1 files changed, 58 insertions, 120 deletions
diff --git a/npc/008-1/mikhail.txt b/npc/008-1/mikhail.txt
index 24806baf..6cbc4881 100644..100755
--- a/npc/008-1/mikhail.txt
+++ b/npc/008-1/mikhail.txt
@@ -1,123 +1,61 @@
-// Evol scripts.
-// Author:
-// gumi
-// Quest states:
-// [1] 0 - cannot do the quest
-// [1] 1 - can do the quest
-// [1] 2 - bernard wants roasted maggot
-// [1] 3 - brought maggot
-// [1] 4 - bernard wants maggot slime
-// [1] 5 - brought maggot slime
-// [1] 6 - mikhail needs maggot slime
-// [1] 7 - brought maggot slime
-// [2] unused
-// [3] unused
-// [t] unused
-// Description:
-// takes part in the slime soup quest (Bernard)
-
-008-1,298,95,0 script Mikhail NPC_MIKHAIL,{
-
- function soup_scared {
- speech 4,
- l("Hello..."),
- l("I'm supposed to be helping Bernard from the Inn but...");
-
- narrator 4,
- l("His eyes grow wide");
-
- speech 4,
- l("Eeekkk another one.");
-
- narrator
- l("It seems that the boy would like to say more, but seems too terrified at the moment."),
- l("Maybe you should help someone else first, so that he sees your intentions are good.");
-
- close;
- }
-
- function soup_intro2 {
- speech 4,
- l("Bernard sent me to get %d %s from the %s in the fields, but they scare me so bad!",
- .third_item_qty, getitemlink(.third_item), getmonsterlink(.third_item_mob)),
- l("You look like a nice person."),
- l("Would you go get them for me?");
-
- selectd
- l("Of course, I'll go get them for you.");
-
- speech
- l("Thank you so much!"),
- l("I'll wait for you here.");
-
- setq .quest, 6;
- close;
- }
-
- function soup_reminder_slime2 {
- speech
- l("Did you bring me the %d %s I need?",
- .third_item_qty, getitemlink(.third_item)),
- l("It doesn't look like you have them all...");
- close;
- }
-
- function soup_reward_slime2 {
- speech
- l("Did you bring me the %d %s I need?",
- .third_item_qty, getitemlink(.third_item)),
- l("Ooh!"),
- l("Thank you so much!"),
- l("I can get back to Bernard now!");
-
- if (countitem(.third_item) < .third_item_qty)
- close; // double-check
-
- delitem .third_item, .third_item_qty;
- setq .quest, 7;
- quest_xp(.maxLevel, .third_reward_exp);
- close;
- }
-
- function soup_thanks_slime2 {
- speech
- l("Thanks again for helping me!") + " %%Q";
-
- close;
- }
-
- switch(getq(.quest))
- {
-
- case 0:
- case 1:
- case 2:
- case 3:
- case 4: soup_scared; break;
- case 5: soup_intro2; break;
- case 6:
- if (countitem(.third_item) < .third_item_qty)
- soup_reminder_slime2;
- else
- soup_reward_slime2;
- break;
- default: soup_thanks_slime2;
- }
-
- closeclientdialog();
+008-1,135,25,0 script Mikhail NPC120,{
+ if (QL_SOUP >= 6) goto L_Done;
+ if (QL_SOUP == 5) goto L_Progress;
+ if (QL_SOUP == 4) goto L_Start;
+ goto L_Con_Mik_First;
+
+L_Con_Mik_First:
+ mes "[Mikhail]";
+ mes "\"Hello... I'm supposed to be helping Bernard from the Inn but...\"";
+ mes "His eyes grow wide";
+ mes "\"Eeekkk another one.\"";
+ mes "";
+ mes "It seems that the boy would like to say more, but seems too terrified at the moment. Maybe you should help someone else first, so that he sees your intentions are good.";
+ goto L_close;
+
+L_Start:
+ mes "[Mikhail]";
+ mes "\"Bernard sent me to get five Maggot Slimes from the maggots in the fields, but they scare me so bad!\"";
+ next;
+ mes "\"You look like a nice person. Would you go get them for me?\"";
+ menu
+ "Of course, I'll go get them for you.", L_Accept,
+ "I've got other things to do right now.", L_close;
+
+L_Accept:
+ mes "[Mikhail]";
+ mes "\"Thank you so much! I'll wait for you here.\"";
+ QL_SOUP = 5;
close;
-OnInit:
- .third_item = MaggotSlime;
- .third_item_qty = 5;
- .third_item_mob = Maggot;
-
- .maxLevel = 30;
- .third_reward_exp = 100;
-
- .quest = HurnscaldQuests_Soup;
- .quest_debug = .quest;
- .distance = 3;
-
- end;
+L_Progress:
+ mes "[Mikhail]";
+ mes "\"Did you bring me the five Maggot Slimes I need?\"";
+ next;
+ menu
+ "Yes, here they are, kiddo!", L_try,
+ "Not yet, but I'll be back soon.", L_close;
+
+L_try:
+ if (countitem("MaggotSlime") >= 5)
+ goto L_Get;
+ mes "[Mikhail]";
+ mes "\"It doesn't look like you have them all...\"";
+ goto L_close;
+
+L_Get:
+ delitem "MaggotSlime", 5;
+ getexp 100, 0;
+ QL_SOUP = 6;
+ mes "[Mikhail]";
+ mes "\"Ooh! Thank you so much! I can get back to Bernard now!\"";
+ goto L_close;
+
+L_Done:
+ mes "[Mikhail]";
+ mes "\"Thanks again for helping me get those Maggot Slimes!\"";
+ goto L_close;
+
+L_close:
+ close;
}