summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/005-1/_import.txt1
-rw-r--r--npc/005-1/zegas.txt95
-rw-r--r--npc/005-3/barrel.txt41
3 files changed, 121 insertions, 16 deletions
diff --git a/npc/005-1/_import.txt b/npc/005-1/_import.txt
index 5c79c44df..155081ff5 100644
--- a/npc/005-1/_import.txt
+++ b/npc/005-1/_import.txt
@@ -5,3 +5,4 @@
"npc/005-1/ayasha.txt",
"npc/005-1/maya.txt",
"npc/005-1/warpcandorbattle.txt",
+"npc/005-1/zegas.txt",
diff --git a/npc/005-1/zegas.txt b/npc/005-1/zegas.txt
new file mode 100644
index 000000000..5639cb420
--- /dev/null
+++ b/npc/005-1/zegas.txt
@@ -0,0 +1,95 @@
+005-1,35,77,0 script Zegas NPC_MONA,{
+ .@q = getq(CandorQuest_Barrel);
+ if (.@q == 1)
+ goto L_Find;
+ if (.@q == 2)
+ goto L_Looking;
+ if (.@q == 3)
+ goto L_QuestEnd;
+ if (.@q == 4)
+ goto L_Thanks;
+ goto L_Meet;
+
+L_Meet:
+ mesn;
+ mesq l("Hey do you have a second?");
+ next;
+ mesq l("The storehouse here is over run with house maggots.");
+ next;
+ mesq l("Wouldn't you know it, the bug bomb Eomie gave us is in one of the store room barrels.");
+ next;
+ mesq l("Can you search the barrels for the bug bomb and set it off when you find it?");
+ setq CandorQuest_Barrel, 1;
+ menu
+ l("Sure."),L_Start,
+ l("Maybe some other time."),L_close;
+
+L_Find:
+ mesn;
+ mesq l("The storehouse is still over run with house maggots.");
+ next;
+ mesq l("Please help me find the bug bomb Eomie gave us is in one of the store room barrels?");
+ menu
+ l("Sure."),L_Start,
+ l("Maybe some other time."),L_close;
+
+L_Start:
+ mesn;
+ mesq l("Thanks, come back and see me once you found the bug bomb and set it off.");
+ setq CandorQuest_Barrel, 2;
+ goto L_close;
+
+L_Looking:
+ mesn;
+ mesq l("Still haven't found it? Well keep looking I know it's in there some where.");
+ goto L_close;
+
+L_QuestEnd:
+ mesn;
+ mesq l("From the smell I can see you found the bug bomb!");
+ mesq l("Thanks once again, I know it's not much but here is 50 GP for your troubles.");
+ getexp 50, 0;
+ Zeny = (Zeny + 50);
+ setq CandorQuest_Barrel, 4;
+ goto L_close;
+
+L_Thanks:
+ mesn;
+ mesq l("Thanks for Helping with clear out the store room!");
+ goto L_close;
+
+L_close:
+ close;
+
+OnInit:
+ .sex = G_FEMALE;
+ .distance = 2;
+ end;
+}
+
+005-1,32,73,0 script ZegasDebug NPC_MONA,{
+ mesn;
+ mesq l("Reset?");
+ menu
+ l("Yes."), L_Reset,
+ l("Barrel"),L_Cheat,
+ l("No."), L_close;
+
+L_Reset:
+ setq CandorQuest_Barrel, 0;
+ mes l("Reset!");
+ goto L_close;
+
+L_Cheat:
+ setq CandorQuest_Barrel, 3;
+ mes l("Quest Complete!");
+ goto L_close;
+
+L_close:
+ close;
+
+//OnInit:
+ //if (!debug)
+ // disablenpc "ZegasDebug";
+ //end;
+}
diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt
index ec7f06b4f..721ec6f97 100644
--- a/npc/005-3/barrel.txt
+++ b/npc/005-3/barrel.txt
@@ -1,23 +1,24 @@
-// Evol scripts.
+// TMW-2 script.
// Author:
// Crazyfefe
+// Jesusalva
// Description:
-// Blacksmith's assistant of Artis
+// Barrels
// Variables:
-// ArtisQuests_Enora
+// CandorQuest_Barrel
// Values:
// 0 Default.
-// 1 BlackSmith quest delivered.
-// 2 Chelios Quest given.
-// 3 Chelios Quest done.
-// 4 BlackSmith gave the sword.
+// 1 Quest Found.
+// 2 Quest Accepted.
+// 3 Bomb Defused.
+// 4 Quest Completed.
function script CheckBarrel {
.questCheck = .questCheck + 1;
areamonster "005-3", 24, 34, 45, 42, "Cave Maggot", 1027, 1;
if (.questCheck == 8)
{
- setq CandorQuest_Barrel, 1;
+ setq CandorQuest_Barrel, 3;
}
.@rand = rand(6);
if (.@rand == 0)
@@ -36,7 +37,8 @@ function script CheckBarrel {
}
005-3,24,36,0 script Barrel#1 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -49,7 +51,8 @@ OnInit:
}
005-3,24,39,0 script Barrel#2 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -62,7 +65,8 @@ OnInit:
}
005-3,29,37,0 script Barrel#3 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -74,7 +78,8 @@ OnInit:
end;
}
005-3,35,34,0 script Barrel#4 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -86,7 +91,8 @@ OnInit:
end;
}
005-3,38,34,0 script Barrel#5 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -98,7 +104,8 @@ OnInit:
end;
}
005-3,44,40,0 script Barrel#6 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -110,7 +117,8 @@ OnInit:
end;
}
005-3,38,41,0 script Barrel#7 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();
@@ -122,7 +130,8 @@ OnInit:
end;
}
005-3,29,41,0 script Barrel#8 NPC_NO_SPRITE,{
- if (.questState == 0)
+ .@q = getq(CandorQuest_Barrel);
+ if (.questState == 0 && .@q == 2)
{
.questState = 1;
CheckBarrel();