From 26683ee92173fb3d19c727d7c6ea6a9e61fb2e2f Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Sun, 18 Nov 2018 18:04:08 -0200
Subject: Some from requeriments for Call Of Dusty Event (Quest).

---
 db/quest_db.conf        |   4 ++
 db/re/item_db.conf      |  35 ++++++++++++-
 db/re/mob_db.conf       | 131 +++++++++++++++++++++++++++++++++++++++++++++++-
 npc/018-2-1/dustman.txt |  19 +++++++
 4 files changed, 186 insertions(+), 3 deletions(-)

diff --git a/db/quest_db.conf b/db/quest_db.conf
index fccb372a7..14a2cfd6b 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -298,6 +298,10 @@ quest_db: (
 	Id: 274
 	Name: "LoFQuest_Pets"
 },
+{
+	Id: 275
+	Name: "LoFQuest_COD"
+},
 
 // ID 300 to 320: Seasonal/Annual/Monthly quests
 {
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 2c10f3995..bb9b41bd8 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -4463,8 +4463,15 @@ item_db: (
 	Buy: 2000
 	Sell: 1000
 	Weight: 1
-	Refine: false
-	ViewSprite: 885
+},
+{
+	Id: 886
+	AegisName: "BottledDust"
+	Name: "Dust In A Bottle"
+	Type: "IT_ETC"
+	Buy: 180
+	Sell: 60
+	Weight: 25
 },
 //	 <!-- Necklaces -->
 {
@@ -10598,6 +10605,30 @@ item_db: (
 		bonus bHitRate,-40;
 	">
 },
+{
+	Id: 6050
+	AegisName: "Dustynator"
+	Name: "Dustynator 2000"
+	Type: "IT_WEAPON"
+	Buy: 550000
+	Sell: 10200
+	Weight: 970
+	Atk: 100
+	Range: 9
+	Loc: ["EQP_HAND_R", "EQP_HAND_L"]
+	WeaponLv: 1
+	EquipLv: 70
+	Subtype: "W_REVOLVER"
+	Refine: true
+	AllowAmmo: {
+		Id6510: 1
+		Id6511: 1
+	}
+	Script: <"
+		bonus bCriticalRate,-100;
+		bonus bHitRate,20;
+	">
+},
 {
 	Id: 6500
 	AegisName: "TrainingArrow"
diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf
index 207d41337..c751dd26c 100644
--- a/db/re/mob_db.conf
+++ b/db/re/mob_db.conf
@@ -7608,8 +7608,8 @@ mob_db: (
 	AttackMotion: 672
 	DamageMotion: 480
 	Drops: {
+		Mashmallow: 250
 		Lawncandy: 200
-		Mashmallow: 200
 		Candy: 50
 	}
 },
@@ -7658,4 +7658,133 @@ mob_db: (
 		GoldenApple: 100
 	}
 },
+{
+	Id: 1206
+	SpriteName: "DustGatling"
+	Name: "Gatling Shooter"
+	Lv: 50
+	Hp: 3500
+	Sp: 0
+	Exp: 450
+	JExp: 60
+	AttackRange: 15
+	Attack: [10, 20]
+	Def: 80
+	Mdef: 40
+	Stats: {
+		Str: 11
+		Agi: 22
+		Vit: 16
+		Int: 21
+		Dex: 55
+		Luk: 34
+	}
+	ViewRange: 28
+	ChaseRange: 32
+	Size: 0
+	Race: 2
+	Element: (0, 2)
+	Mode: {
+		Aggressive: true
+		CanMove: true
+		CanAttack: true
+		CastSensorChase: true
+		ChangeChase: true
+	}
+	MoveSpeed: 420
+	AttackDelay: 320
+	AttackMotion: 272
+	DamageMotion: 900
+	Drops: {
+		CoinBag: 500
+		RedApple: 300
+		Lockpicks: 50
+	}
+},
+{
+	Id: 1207
+	SpriteName: "DustRifle"
+	Name: "Rifle Shooter"
+	Lv: 50
+	Hp: 3500
+	Sp: 0
+	Exp: 450
+	JExp: 60
+	AttackRange: 15
+	Attack: [300, 300]
+	Def: 80
+	Mdef: 40
+	Stats: {
+		Str: 11
+		Agi: 22
+		Vit: 16
+		Int: 21
+		Dex: 45
+		Luk: 34
+	}
+	ViewRange: 28
+	ChaseRange: 32
+	Size: 0
+	Race: 2
+	Element: (0, 2)
+	Mode: {
+		Aggressive: true
+		CanMove: true
+		CanAttack: true
+		CastSensorChase: true
+		ChangeChase: true
+	}
+	MoveSpeed: 420
+	AttackDelay: 2500
+	AttackMotion: 272
+	DamageMotion: 900
+	Drops: {
+		CoinBag: 500
+		RedApple: 300
+		Lockpicks: 50
+	}
+},
+{
+	Id: 1208
+	SpriteName: "DustRevolver"
+	Name: "Revolver Shooter"
+	Lv: 50
+	Hp: 3500
+	Sp: 0
+	Exp: 450
+	JExp: 60
+	AttackRange: 15
+	Attack: [100, 200]
+	Def: 80
+	Mdef: 40
+	Stats: {
+		Str: 11
+		Agi: 22
+		Vit: 16
+		Int: 21
+		Dex: 50
+		Luk: 34
+	}
+	ViewRange: 28
+	ChaseRange: 32
+	Size: 0
+	Race: 2
+	Element: (0, 2)
+	Mode: {
+		Aggressive: true
+		CanMove: true
+		CanAttack: true
+		CastSensorChase: true
+		ChangeChase: true
+	}
+	MoveSpeed: 220
+	AttackDelay: 820
+	AttackMotion: 272
+	DamageMotion: 900
+	Drops: {
+		CoinBag: 500
+		RedApple: 300
+		Lockpicks: 50
+	}
+},
 )
diff --git a/npc/018-2-1/dustman.txt b/npc/018-2-1/dustman.txt
index 7a4fcd20f..fe0c96257 100644
--- a/npc/018-2-1/dustman.txt
+++ b/npc/018-2-1/dustman.txt
@@ -6,6 +6,8 @@
 //    Void NPC
 
 018-2-1,22,29,0	script	Colonel DUSTMAN	NPC_CRUSADER,{
+    .@q=getq(LoFQuest_COD);
+    if (.@q == 0 && BaseLevel > 50) goto L_COD;
     mesn;
     mesq l("My man went down and still haven't returned.");
     next;
@@ -19,6 +21,23 @@
     mesq l("Take care, adventurer!");
     close;
 
+L_COD:
+    mesn;
+    mesq l("Hey, do you know the ##BCall Of Dusty##b event?");
+    next;
+    mesn;
+    mesq l("Just @@ ago, thiefs stole Pihro & Pyndragon weapons.", FuzzyTime(1542570030));
+    next;
+    mesn;
+    mesq l("Pyndragon said he'll do a @@ to however reduces them to dust. Interested?", getitemlink(Dustynator)); // BottledDust, Dustynator
+    next;
+    if (askyesno() == ASK_YES) {
+        mes "";
+        mesn;
+        mesq l("Too bad, because that wasn't implemented yet!");
+    }
+    close;
+
 OnInit:
     .sex=G_MALE;
     .distance=5;
-- 
cgit v1.2.3-70-g09d2