summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/005-3/_import.txt1
-rw-r--r--npc/005-3/barrel.txt135
2 files changed, 136 insertions, 0 deletions
diff --git a/npc/005-3/_import.txt b/npc/005-3/_import.txt
index 4704827ee..5465ca016 100644
--- a/npc/005-3/_import.txt
+++ b/npc/005-3/_import.txt
@@ -2,3 +2,4 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/005-3/_mobs.txt",
"npc/005-3/_warps.txt",
+"npc/005-3/barrel.txt",
diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt
new file mode 100644
index 000000000..bc93085a6
--- /dev/null
+++ b/npc/005-3/barrel.txt
@@ -0,0 +1,135 @@
+// Evol scripts.
+// Author:
+// Crazyfefe
+// Description:
+// Blacksmith's assistant of Artis
+// Variables:
+// ArtisQuests_Enora
+// Values:
+// 0 Default.
+// 1 BlackSmith quest delivered.
+// 2 Chelios Quest given.
+// 3 Chelios Quest done.
+// 4 BlackSmith gave the sword.
+
+function script CheckBarrel {
+ .questCheck = .questCheck + 1;
+ areamonster "005-3", 24, 34, 45, 42, "Cave Maggot", 1027, 1;
+ if (.questCheck == 8)
+ {
+ setq CandorQuest_Barrel, 1;
+ }
+ .@rand = rand(6);
+ if (.@rand == 0)
+ getitem Coal,1;
+ else if (.@rand == 1)
+ getitem PinkAntenna,1;
+ else if (.@rand == 2)
+ getitem CoinBag,1;
+ else if (.@rand == 3)
+ getitem Croconut,1;
+ else if (.@rand == 4)
+ getitem Bread,1;
+ else if (.@rand == 5)
+ getitem TolchiArrow,6;
+
+}
+
+005-3,24,36,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+005-3,24,39,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+
+005-3,29,37,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+005-3,35,34,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+005-3,38,34,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+005-3,44,40,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+005-3,38,41,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
+005-3,29,41,0 script Barrel NPC_NO_SPRITE,{
+ if (.questState == 0)
+ {
+ .questState = 1;
+ CheckBarrel();
+ }
+ end;
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+} \ No newline at end of file