summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-17 10:45:34 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-17 10:45:34 -0300
commit12f81ab4483724f8a363864196a484bf3089be8b (patch)
treeed2f9643f3662c57df3f75494cab3e23fcc93798 /npc
parent0802e8476a5ab5a9630192393e736386500926d4 (diff)
downloadserverdata-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')
-rw-r--r--npc/003-3/malindou.txt5
-rw-r--r--npc/009-2/ryan.txt14
2 files changed, 17 insertions, 2 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt
index 726d10398..564524f83 100644
--- a/npc/003-3/malindou.txt
+++ b/npc/003-3/malindou.txt
@@ -111,10 +111,13 @@ OnInit:
debugmes "";
debugmes "* My Money quest state modified";
debugmes "* Foxhound Famine quest state modified";
+ debugmes "* Life Delight quest state modified"; // Aka. A True Chef
debugmes "";
query_sql("UPDATE `quest` SET `count1` = '1' WHERE `quest`.`quest_id`="+ShipQuests_ArpanMoney+" AND `count1` = '2'");
- query_sql("UPDATE `quest` SET `count2` = '6' WHERE `quest`.`quest_id`="+HalinarzoQuest_Foxhound+" AND `count1` >= '6'");
+ query_sql("UPDATE `quest` SET `count2` = `count1` WHERE `quest`.`quest_id`="+HalinarzoQuest_Foxhound+" AND `count1` >= '6'");
query_sql("UPDATE `quest` SET `count1` = '6' WHERE `quest`.`quest_id`="+HalinarzoQuest_Foxhound+" AND `count1` > '6'");
+ query_sql("UPDATE `quest` SET `count2` = `count1` WHERE `quest`.`quest_id`="+HalinarzoQuest_LifeDelight);
+ query_sql("UPDATE `quest` SET `count1` = '1' WHERE `quest`.`quest_id`="+HalinarzoQuest_LifeDelight+" AND `count1` > '1'");
}
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);