summaryrefslogtreecommitdiff
path: root/npc/005-3/barrel.txt
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-01-27 17:09:05 +0100
committerSaulc <lucashelaine14@gmail.com>2018-01-27 17:09:05 +0100
commit5d50a19e244a557980a2e6db69595d767cd1bc8f (patch)
treebb351eb29ff4e0f5b7ed87adc2ab782a432505ed /npc/005-3/barrel.txt
parentd35035ce81bbcfb788b4d11865269b1fb1726843 (diff)
downloadserverdata-5d50a19e244a557980a2e6db69595d767cd1bc8f.tar.gz
serverdata-5d50a19e244a557980a2e6db69595d767cd1bc8f.tar.bz2
serverdata-5d50a19e244a557980a2e6db69595d767cd1bc8f.tar.xz
serverdata-5d50a19e244a557980a2e6db69595d767cd1bc8f.zip
add barrel npc in 005-3
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