summaryrefslogtreecommitdiff
path: root/npc/005-3/barrel.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/005-3/barrel.txt')
-rw-r--r--npc/005-3/barrel.txt135
1 files changed, 135 insertions, 0 deletions
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