diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-05 14:58:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-05 14:58:31 -0300 |
commit | a26ce2f83463e1a21733b1c6bb68534f1d4ae235 (patch) | |
tree | bcb85426d360b9ca42947c2f5784b32e3a1c3c66 /npc/014-5-1 | |
parent | 8a19043c0e003c571f6f41bc0aa34012435fadcf (diff) | |
download | serverdata-a26ce2f83463e1a21733b1c6bb68534f1d4ae235.tar.gz serverdata-a26ce2f83463e1a21733b1c6bb68534f1d4ae235.tar.bz2 serverdata-a26ce2f83463e1a21733b1c6bb68534f1d4ae235.tar.xz serverdata-a26ce2f83463e1a21733b1c6bb68534f1d4ae235.zip |
Sketch - sagratha's quests
Diffstat (limited to 'npc/014-5-1')
-rw-r--r-- | npc/014-5-1/sagratha.txt | 62 |
1 files changed, 59 insertions, 3 deletions
diff --git a/npc/014-5-1/sagratha.txt b/npc/014-5-1/sagratha.txt index 2bb6850b0..de668fd03 100644 --- a/npc/014-5-1/sagratha.txt +++ b/npc/014-5-1/sagratha.txt @@ -1,6 +1,6 @@ // TMW2 scripts. // Authors: -// Jesusalva +// Jesusalva and TMW Org. // Description: // Sagratha (variables SAGRATHA_SCORE and SAGRATHA_FRIENDSHIP) @@ -51,6 +51,8 @@ function script SaggyMobCount { } 014-5-1,33,37,0 script Sagratha NPC_SAGRATHA,{ + function teachMagic; + function requireHelp; if (array_find(.SaggyHats, getequipid(EQI_HEAD_TOP)) >= 0) goto L_HatAttack; if (SAGRATHA_SCORE < 0) @@ -85,9 +87,13 @@ function script SaggyMobCount { do { + .@x=getq(General_Sagratha); + mesn strcharinfo(0); select l("Can I return to the shrine?"), l("I would like some Mouboo Milk."), + l("Can you teach me magic? Pretty please?"), + l("Can I help you with something?"), l("Good bye."); mes ""; switch (@menu) { @@ -156,13 +162,19 @@ function script SaggyMobCount { mesq l("Here. You know that milking Mouboos won't cause them harm, right? It's a different story with @@.", getitemlink(MoubooSteak)); close; break; + // XXX: Teach magic / etc + case 3: + case 4: + if (.@x % 2 == 0) + teachMagic(); + else + requireHelp(); + break; default: closeclientdialog; goodbye; close; } - // TODO: Learn Magic - // TODO: Request help with stuff (eg. protecting mouboos?) } while (true); close; @@ -285,6 +297,50 @@ L_Unhappy: mesn; mesq l("I am sure that they will come back to haunt you in your dreams!"); close; +// Functions +function teachMagic { + .@x=getarg(0,getq(General_Sagratha)); + switch (.@x) { + case 0: + mesn; + mesc l("@@ nods.", .name$); + mesq l("For now, yes. But you will have to prove that you really care about more than yourself."); + next; + mesn; + mesq l("This is the ..."); + break; + } + /* + skill TMW2_HALHISS, 12; + skill TMW2_KALWULF, 9; + skill TMW2_DRAGOKIN, 5; + skill TMW2_LIMERIZER, 14; + skill TMW2_STONEHEART, 9; + skill TMW2_FROZENHEART, 9; + skill TMW2_FAIRYKINGDOM, 9; + */ + next; + return; +} +function requireHelp { + .@x=getarg(0,getq(General_Sagratha)); + switch (.@x) { + case 1: + mesn; + mesq l("Come back later."); + break; + } + next; + return; +} + +L_Lie: + mesn; + mesq l("Really interesting, how I am NOT seeing the items I asked for..."); + next; + mesn; + mesq l("Say, what do you think if I transmuted your head into the missing materials? I can warrant your soul won't return to the Soul Menhir, either!"); + close; OnInit: setarray .SaggyHats, FluffyHat, MoubooHat, AlphaMoubooHat; |