diff options
author | Saulc <lucashelaine14@gmail.com> | 2018-01-27 17:09:05 +0100 |
---|---|---|
committer | Saulc <lucashelaine14@gmail.com> | 2018-01-27 17:09:05 +0100 |
commit | 5d50a19e244a557980a2e6db69595d767cd1bc8f (patch) | |
tree | bb351eb29ff4e0f5b7ed87adc2ab782a432505ed /npc/005-3 | |
parent | d35035ce81bbcfb788b4d11865269b1fb1726843 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/005-3/_import.txt | 1 | ||||
-rw-r--r-- | npc/005-3/barrel.txt | 135 |
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 |