summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-05-20 16:28:24 +0000
committerJesusaves <cpntb1@ymail.com>2018-05-20 16:28:24 +0000
commit7e6889b02cfe1b44636ca423284e77bcca573006 (patch)
tree95e2eb04fcc172b7db8aedcb5ef9679d55284df7
parent41eb368792adeec2f6ee3feb6416ddd212b8ddef (diff)
downloadserverdata-7e6889b02cfe1b44636ca423284e77bcca573006.tar.gz
serverdata-7e6889b02cfe1b44636ca423284e77bcca573006.tar.bz2
serverdata-7e6889b02cfe1b44636ca423284e77bcca573006.tar.xz
serverdata-7e6889b02cfe1b44636ca423284e77bcca573006.zip
Candor quest liana
-rw-r--r--db/quest_db.conf5
-rw-r--r--npc/005-1/liana.txt91
2 files changed, 75 insertions, 21 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf
index 851f5c313..02c969a21 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -126,7 +126,10 @@ quest_db: (
Id: 40
Name: "CandorQuest_Nurse"
},
-
+{
+ Id: 41
+ Name: "CandorQuest_Liana"
+},
// ID 51 to 70: Tulimshar quests
{
diff --git a/npc/005-1/liana.txt b/npc/005-1/liana.txt
index fc06cf41b..4f2179228 100644
--- a/npc/005-1/liana.txt
+++ b/npc/005-1/liana.txt
@@ -1,50 +1,101 @@
// TMW2 Script
-// Author: Jesusalva
-// Author: TMW-Org. Script Writers
+// Author:
+// Jesusalva
+// Saulc
+// Description:
+// Candor girl ask for maggot sliem every 6 hours
+// Variable:
+// CandorQuest_Liana
// PS. Liana could (should) explain too the small cave north of there. It can be
// a place to run, or maybe monsters there are natural and protect them from the
// Mana Monsters, etc.
005-1,47,86,0 script Liana NPC_ELVEN_FEMALE,{
+
+ .@q=getq(CandorQuest_Liana);
mesn;
//mesq l("Hurnscald is a large city. I'm sure glad I live in Candor because I know where everything's at.");
mesq l("Monsters do not aim small towns like Candor. This city also comes with the plus that I know where everything's at.");
- if (QL_BEGIN == 10) goto L_Hasan;
+ if (BaseLevel >= 10) goto L_Menu;
close;
-L_Hasan:
+L_Menu:
mes "[Liana]";
mesq l("Are you enjoying yourself in Candor? Do you have any questions?");
menu
- l("A guy named Hasan is bullying people."),L_Next,
+ l("What can i do with Maggot Slime."),L_Slime,
+ l("What can i do with Bug Lag."),L_Bug,
l("No, thanks."),L_Close;
-
-L_Next:
- mesq l("Ah, Hasan. He's causing trouble again?");
+
+L_Slime:
+ mesq l("I collect them.");
next;
- mes l("She shakes her head.");
+ if (BaseLevel < 10) goto L_NoLevel;
+ if (.@q == 0) goto L_Quest;
+ if (.@q == 1 && gettimetick(2) >= LIANA_TIMER + 60 * 60 * 6) setq CandorQuest_Liana, 2;
+ if (.@q == 2) goto L_Repeat;
+ close;
+
+L_Quest:
+ mesq l("With this i make ball of slime for candor childs, they really like to play with them.");
next;
- mesq l("This guy has been a plague ever since he could walk. He's always causing trouble.");
+ mesq l("Maybe you could bring me 5 @@? I will reward you for your effort.", getitemlink(MaggotSlime));
+ menu
+ rif(countitem(MaggotSlime) >= 5, l("Here they are!")), L_Finish,
+ l("I'll get to it."), L_Close;
+ close; // double sure
+
+L_Repeat:
+ mesq l("I am searching again maggot slime to craft more balls.");
next;
- mesq l("And his father... Well, one day his father thought he should teach Hasan a lesson.");
+ mesq l("Maybe you could bring me 10 sticky @@?.", getitemlink(MaggotSlime));
+ menu
+ rif(countitem(MaggotSlime) >= 10, l("Here they are!")), L_Finish2,
+ l("I'll get to it."), L_Close;
+ close;
+
+L_Finish2:
+ delitem MaggotSlime, 10;
+ getexp 20, 0;
+ Zeny = (Zeny + 80); // 10*4 = 40 base
+ setq CandorQuest_Liana, 1;
+ set LIANA_TIMER, gettimetick(2);
+ close;
+
+L_Finish:
+ delitem MaggotSlilme, 5;
+ getexp 55, 10; // 10 Job points! A great reward.
+ Zeny = (Zeny + 30); // 5*4 = 20 base
+ setq CandorQuest_Liana, 2;
+ set LIANA_TIMER, gettimetick(2);
+ close;
+
+L_Bug:
+ mesq l("Ah, personally i didn't use it?");
next;
- mesq l("He took him into the desert and then left him there!");
+ mes l("She shakes her head.");
next;
- mes l("Hasan was only seven years old!");
+ mesq l("You should ask this question at Vincent.");
next;
- mesq l("I never understood how someone could do something like that to a child, even if it's a rascal like Hasan.");
+ mesq l("He is in the process of making a figurine made of bug leg.");
next;
- mesq l("Anyway, Hasan tried to find his way back home, but stumbled into a nest of scorpions!");
+ mesq l("i hope my answer help you in your adventure!");
next;
- mes l("She shakes her head.");
- mesq l("If Lieutenant Dausen hadn't have come along that moment, Hasan would have died that day.");
+ mes l("she's smiling at you.");
+ goto L_Close;
+
+L_NoLevel:
+ mesn;
+ mesq l("Ah, yes... You see, there is just no task I can give to you right now.");
next;
- mesq l("However, the scorpions poison caused a bad fever and once Hasan had recovered from that, he was even more malicious than before.");
+ mesn;
+ mesq l("Come back later.");
next;
- mes l("She sighs.");
- QL_BEGIN = 11;
goto L_Close;
L_Close:
+ closedialog;
+ goodbye;
close;
}
+