017-4,216,36,0 script Waric NPC153,{
@mouboo_status = ((QUEST_MAGIC & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT) & 3;
@killed_mouboo = 0;
if ((@mouboo_status == 1) || (@mouboo_status == 2))
@killed_mouboo = 1;
@mouboo_status = 0;
if (MAGIC_FLAGS & MFLAG_DID_CUTTREE)
@cut_tree = 1;
@sagatha_follower = (QUEST_MAGIC & (NIBBLE_4_MASK | NIBBLE_5_MASK)) >> NIBBLE_4_SHIFT;
if (OrumQuest > 40) goto L_MoreMagic;
if (OrumQuest > 39) goto L_SnakesSpell;
if (OrumQuest > 38) goto L_SnakesIngredients;
if (OrumQuest > 37) goto L_Snakes;
if (OrumQuest > 36) goto L_ToxicDart;
if (OrumQuest > 35) goto L_Mushroom;
if (OrumQuest > 34) goto L_Banished;
if (OrumQuest > 33) goto L_LastChance;
if (OrumQuest > 32) goto L_BackforOath;
if (OrumQuest > 31) goto L_DarkMagic;
if (OrumQuest > 30) goto L_Flower5;
if (OrumQuest > 26) goto L_Flower4;
if (OrumQuest > 23) goto L_Flower3;
if (OrumQuest > 20) goto L_Flower2;
if (OrumQuest > 17) goto L_Flower1;
if (OrumQuest > 15) goto L_Mistrust;
mesn;
mes "\"You! You really are far too persistent to know what is good for you!\"";
mes "He turns towards Orum.";
next;
mesn;
mes "\"It seems your ridiculous Guarding Spirit has failed at his task.";
mes "Deal with this. We cannot afford any more of these distractions.\"";
goto L_close;
L_Mistrust:
mesn;
mes "\"So, you say you want to help us? You do not look very competent.";
mes "Also, I do not see what motivation you have to help.\"";
next;
mes "\"Demonstrate your worth and I might take you seriously.\"";
goto L_close;
L_Flower1:
mesn;
mes "\"You placed the first flower. Why, I am surprised! I did not expect you to actually stay and become useful.\"";
if (!(getskilllv(SKILL_MAGIC)))
goto L_close;
menu
"Can you teach me some magic?", L_Next,
"Of course!", L_close;
L_Next:
if (@sagatha_follower)
goto L_Sagatha;
if (!@killed_mouboo && !@cut_tree)
goto L_Undecided;
mesn;
mes "\"Hmm. I suppose I could do that. You seem to have some potential.";
mes "First, proceed with the task given by Orum.\"";
goto L_close;
L_Flower2:
mesn;
mes "\"You placed the second flower? It seems Orum's choice of tools is better than expected.\"";
goto L_close;
L_Flower3:
mesn;
mes "\"I saw that you helped to create and place the third flower. Good.\"";
goto L_close;
L_Flower4:
mesn;
mes "\"Now that you have placed the fourth flower, we are very close to reaching our goal. Keep it up.\"";
goto L_close;
L_Flower5:
mesn;
mes "\"Hahaha, excellent. You handled the creation of our pentagram very well. I will be keeping that in mind.";
mes "I have advised Orum to give you a reward. Go now and speak with him.\"";
goto L_close;
L_DarkMagic:
mesn;
mes "\"So, you have gotten your reward and finished the task Orum had for you. Very good.\"";
menu
"Can you teach me some magic?", L_Next1,
"I'm great or what!", L_close;
L_Next1:
if (@sagatha_follower)
goto L_Sagatha;
if (!@killed_mouboo && !@cut_tree)
goto L_Undecided;
mesn;
mes "\"You appear to be trustworthy. I will allow you to become my apprentice.\"";
mes "\"I will teach you the basics of the branch of magic I practice. It is called Dark Magic. Very few people know of its existence these days, and hardly anyone is capable of teaching it.\"";
mes "\"You are very lucky that fate has brought us together.\"";
next;
mesn;
mes "\"You cut the tree to please the Earth Spirit. You chose the Dark Side of magic, and this cannot be undone.\"";
mes "\"Dark Magic draws its power from hate and anger. Your magic will be stronger against good creatures, and weaker against the undead and the corrupt.\"";
next;
mes "\"Once you start practicing Dark Magic, using certain spells will be painful. Everything comes with a price.\"";
next;
mesn;
mes "\"So, now that you know more about Dark Magic, are you still willing to become my apprentice?\"";
mes "\"Once you cross this line, there is no going back. Keep this in mind!\"";
OrumQuest = 33;
menu
"I'll have to think about it.", L_ComeBackLater,
"Yes.", L_Oath;
L_DarkTalkAgain:
mes "The old wizard seems to be annoyed.";
mesn;
mes "\"Very well. Once you start practicing Dark Magic, certain spells will be painful to cast. Your magic will be stronger against good creatures, and weaker against the undead and the corrupt.\"";
next;
mes "\"When you cross this line, there is no going back. Remember that!\"";
mes "\"So, are you ready to become my apprentice?\"";
next;
menu
"No.", L_ComeBackLater,
"Yes. I want to be your apprentice.", L_Oath;
L_BackforOath:
mesn;
mes "\"Ah, you're back. Have you decided yet if you want to become my apprentice?\"";
menu
"No." , L_ComeBackLater,
"Please, tell me about Dark Magic again.", L_DarkTalkAgain,
"Yes. I want to be your apprentice.", L_Oath;
L_LastChance:
mes "Waric looks at you, with despise evident on his face.";
next;
mesn;
mes "\"I knew you were a coward.\"";
mes "\"I will give you one last chance to take the oath. If you refuse this time as well, I will no longer teach you.\"";
next;
mes "\"If you are still not sure, I will give you some time to reconsider, but if you start the ritual and run away, you are dead to me!\"";
next;
menu
"I am ready to take the oath. [last chance!]", L_Next2,
"I have to reconsider.", L_ComeBackLater;
L_Next2:
mesn;
mes "\"If you stop during the oath again, I will not teach you anything. If you are not sure whether you want to become my apprentice or not, take more time to reconsider. However, this is your last chance to do so.\"";
next;
menu
"I have to reconsider.", L_ComeBackLater,
"I am ready to take the oath. [last chance!]", L_Oath;
L_Oath:
mesn;
mes "\"Now say the oath of the Dark.\"";
next;
mes "Suddenly the room turns darker and writing penned in flames appears in front of you. You feel yourself shaking and shivering.";
next;
mes "As Waric yells, the walls tremble.";
mesn;
mes "\"Read it!\"";
mes "The sound of his voice echoes in the cave.";
next;
mes "You start to read the letters, but your throat closes up and you have a hard time speaking the words out loud.";
next;
mes "I swear to darkness and hate.";
mes "Destruction shall be my guide.";
mes "I shall not be the cure to poison,";
mes "but the salt to an open wound.";
mes "Sickness and death I shall spread,";
mes "take the food from those unfed.";
mes "Nothing is to be loved, everything has to end.";
mes "I shall prevail, other shall perish.";
next;
mes "Warric screams at your silence.";
mesn;
mes "\"Say it! Say it now!\"";
next;
menu
"[Say the oath]", L_Next3,
"I can't say this, it's too much for me!", L_NoOath;
L_Next3:
mes "As you speak the words written in flames, you feel all of your positive feelings drain away. You no longer love, you're no longer happy. You feel indifferent to the world. But there is also a newfound feeling of power in you. You feel capable of doing anything.";
@SUP_id = SKILL_MAGIC_DARK;
@SUP_name$ = "Dark Magic";
@SUP_xp = 150000;
@SUP_lvl = 2;
callfunc "SkillUp";
next;
heal MaxHp, 0;
heal ((MaxHp/100) * -99), 0;
mes "You feel completely exhausted.";
OrumQuest = 36;
goto L_close;
L_NoOath:
mes "Waric mumbles something. You guess it's a magic spell.";
warp "005-3", 86 , 33;
heal MaxHp, 0;
heal ((MaxHp/100) * -50), 0;
OrumQuest = OrumQuest + 1;
goto L_close;
L_Mushroom:
mesn;
mesq l("Now that you are a student of mine, I will teach you some spells.");
next;
mesq l("We will start with an easy one. I will teach you how to summon a wicked mushroom.");
mesq l("The spell consumes a Small Mushroom and a Dark Crystal. Shove the Dark Crystal into the Small Mushroom and yell %s.");
next;
mesq l("A wicked mushroom will appear to fight for you. Usually.");
OrumQuest = 37;
learnskill SKILL_HELORP;
goto L_close;
L_ToxicDart:
mesn;
mesq l("Welcome back, apprentice.");
mesq l("Are you read for another spell?");
menu
"No, I still have to practice the first one.", L_close,
"Yes. Show me some more!", L_Next4;
L_Next4:
mesn;
mes "\"Very well. This spell is more complex than the last one. It is called toxic dart. Only your peers are susceptible to the dart's poison. If you hit an animal the dart will injure it, but the poison will not work.\"";
next;
mes "\"You have to use two roots for this spell. First you have to take one root and break off all the root hair. Shape it into a stick, if you will. Then put it on top of the other root and form an arrow-like structure.\"";
next;
mesq l("Once this is done you have to throw it in the air and scream %s and the two roots will turn into toxic darts, a projectile you can throw.", b("Phlex"));
learnskill SKILL_PHLEX;
next;
mes "\"If you want to learn more, come back later.\"";
OrumQuest = 38;
goto L_close;
L_Snakes:
mesc l("Waric nods at you.");
mesn;
mesq l("Have you practiced enough?");
menu
"Yes, I'm an outstanding Dark Mage!", L_Next5,
"No. I'm too lazy.", L_ComeBackLater;
L_Next5:
mesn;
mes "\"Very well. I shall teach you another spell.\"";
mes "\"This one is so complex that I have to show it to you before explaining it further. Bring me a snake egg and a root.\"";
next;
mes "\"Off you go now. Bring me the ingredients.\"";
OrumQuest = 39;
goto L_close;
L_SnakesIngredients:
OrumQuest = 39;
mesn;
mes "\"Did you bring one Dark Crystal and a Snake Egg?\"";
menu
"Yes, I have what you want.", L_Next6,
"No, I need more time.", L_NoItem;
L_Next6:
if ((countitem(DarkCrystal) < 0)
|| (countitem(SnakeEgg) < 0))
goto L_NoItem;
mesn;
mesq l("Observe!");
next;
mesc l("The wizard takes the crystal and the egg, mumbling something you don't understand. Suddenly, he throws the egg into the air and throws the crystal right through it midair.");
next;
mesc l("The Egg cracks open and a living snake comes out of the egg.");
next;
delitem DarkCrystal, 1;
delitem SnakeEgg, 1;
OrumQuest = 40;
monster "017-4", 217,36, "Evil", Snake, 1;
mesc l("The wizard looks at you, his eyes flashing, and laughs diabolically.");
goto L_close;
L_SnakesSpell:
mesn;
mesq l("Did you see how this spell is cast?");
menu
"Yes. What did you mumble?", L_Next7,
"No. Could you show me again?", L_SnakesAgain;
L_Next7:
mesn;
mesq l("I said %s.", b("Halhiss"));
mesq l("Have fun with those spells and use them to cause hate, anger and death.");
OrumQuest = 41;
learnskill SKILL_HALHISS;
goto L_close;
L_SnakesAgain:
mesn;
mesq l("Do you really want me to show you the spell again? You will have to bring new ingredients.");
menu
"No.", L_SnakesSpell,
"Yes.", L_SnakesIngredients;
L_ComeBackLater:
mesn;
mesq l("Then come back later.");
goto L_close;
L_MoreMagic:
mesn;
mes "\"Hello, apprentice.\"";
mes "\"You must practice more! I will teach you more spells once you have mastered the ones I have already demonstrated.\"";
next;
menu
"Can you tell me the invocations for the spells you taught me again?", L_Next8,
rif(get_nibble(##03_TMWQUEST, 0), l("Actually, have you ever heard of Yeti's kidnapping little girls?")), L_VaultQuest,
"Thanks, master. I will come back later", L_close;
L_VaultQuest:
mes "";
mesn;
mesq l("Sounds cool, but no. Besides, kidnapping is not my style.");
close;
L_Next8:
mesn;
mesq l("Yes, of course.");
mesq l("To summon the snakes use %s.", b("Halhiss"));
mesq l("Say %s to make your roots into toxic darts.", b("Phlex"));
mesq l("And the first spell, to summon wicked mushrooms, is %s.", b("Helorp"));
next;
mesq l("Now leave. Spread chaos with the spells I have taught you!");
goto L_close;
L_Undecided:
mesn;
mesq l("Well, I could. However, I am not sure you are trustworthy.");
next;
mesq l("How do I know you will not run off to Sagatha with what I would be teaching you?");
goto L_close;
L_Sagatha:
mesn;
mesq l("You are already a student of Sagatha. I will not teach you anything!");
goto L_close;
L_Banished:
mesc l("The wizard looks at you with despise.");
mesn;
mesq l("How did you...");
heal -Hp, 0;
goto L_close;
L_NoItem:
mesn;
mesq l("Why are you wasting my time? Come back when you got everything I need.");
goto L_close;
L_close:
@killed_mouboo = 0;
@cut_tree = 0;
@sagatha_follower = 0;
@SUP_id = 0;
@SUP_name$ = "";
@SUP_lvl = 0;
@SUP_xp = 0;
close;
}
017-1,74,32,0 script DebugFlowerP NPC153,{
mes "Debug options for Orum's quest:";
menu
"Candle Helmet done.", L_CandleHelmet,
"Input quest variable.", L_Var,
"Show current quest state.", L_CurrentState,
"Reset quest.", L_Reset,
"Nevermind.", L_close;
L_CandleHelmet:
OrumQuest = 14;
goto L_close;
L_Var:
input OrumQuest;
goto L_close;
L_CurrentState:
mes "The value of the quest variable OrumQuest is currently " + OrumQuest + ".";
goto L_close;
L_Reset:
OrumQuest = 0;
goto L_close;
L_close:
close;
OnInit:
if (!debug)
disablenpc "DebugFlowerP";
end;
}