diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-09-17 10:45:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-09-17 10:45:34 -0300 |
commit | 12f81ab4483724f8a363864196a484bf3089be8b (patch) | |
tree | ed2f9643f3662c57df3f75494cab3e23fcc93798 /npc/009-2 | |
parent | 0802e8476a5ab5a9630192393e736386500926d4 (diff) | |
download | serverdata-12f81ab4483724f8a363864196a484bf3089be8b.tar.gz serverdata-12f81ab4483724f8a363864196a484bf3089be8b.tar.bz2 serverdata-12f81ab4483724f8a363864196a484bf3089be8b.tar.xz serverdata-12f81ab4483724f8a363864196a484bf3089be8b.zip |
Update Ryan to be quest-log compatible
Diffstat (limited to 'npc/009-2')
-rw-r--r-- | npc/009-2/ryan.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/npc/009-2/ryan.txt b/npc/009-2/ryan.txt index ed3c11ab1..4be079e38 100644 --- a/npc/009-2/ryan.txt +++ b/npc/009-2/ryan.txt @@ -7,7 +7,8 @@ 009-2,29,57,0 script Ryan NPC_PLAYER,{ if (BaseLevel < 17) goto L_Weak; - .@q=getq(HalinarzoQuest_LifeDelight); + if (!getq(HalinarzoQuest_LifeDelight)) goto L_Prologue; + .@q=getq2(HalinarzoQuest_LifeDelight); .@a=(.@q**2)+20; // Maximum: 10'020 Delights if (.@q > 100) goto L_Complete; @@ -37,6 +38,7 @@ // Chef hat last stage: 120 Delights - 605 in total .@q=getq(HalinarzoQuest_LifeDelight); if (.@q == 11) { + setq1 HalinarzoQuest_LifeDelight, 2; getitem ChefHat, 1; getexp 13500, 10; next; @@ -56,6 +58,7 @@ getexp rand(.@q,.@a), rand(1, .@q); } if (.@q == 100) { + setq1 HalinarzoQuest_LifeDelight, 3; getitem PlatinumIngot, 1; next; mesn; @@ -74,6 +77,15 @@ L_Weak: mesq l("How did you even got here? There are dangerous swamps north, and dangerous deserts south..."); close; +L_Prologue: + setq HalinarzoQuest_LifeDelight, 1, 0; + mesn; + mesq l("Ah, I just wanted @@... Yummy, lovely @@...", getitemlink(TonoriDelight), getitemlink(TonoriDelight)); + next; + mesn; + mesq l("There's a big prize in the end... Could you bring me some later?"); + close; + OnInit: .@npcId = getnpcid(0, .name$); setunitdata(.@npcId, UDT_HEADTOP, ChefHat); |