forked from BrenoHenrike/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDjinnGate.cs
186 lines (153 loc) · 6.77 KB
/
DjinnGate.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
name: Djinn Gate Story
description: This will finish the Djinn Gate story.
tags: story, quest, djinn-gate
*/
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreStory.cs
using Skua.Core.Interfaces;
public class DjinnGateStory
{
public IScriptInterface Bot => IScriptInterface.Instance;
public CoreBots Core => CoreBots.Instance;
public CoreStory Story = new CoreStory();
private string[] drops =
{
"Armor of Zular", "Djinn's Essence", "Unseen Essence", "Fangs of the Lion", "Claws of the Daeva", "Light of the Serpent", "Pike of the Shimmering Sands", "Reavers of the Gilded Sun"
};
public void ScriptMain(IScriptInterface bot)
{
Core.SetOptions();
DjinnGate();
Core.SetOptions(false);
}
public void DjinnGate()
{
if (Core.isCompletedBefore(7312) && Core.isCompletedBefore(6161))
return;
Story.PreLoad(this);
Core.AddDrop(drops);
//Recovering the Fangs of the Lion 6153
if (!Story.QuestProgression(6153))
{
Core.EnsureAccept(6153);
if (!Core.CheckInventory("Fragment 1") || !Core.CheckInventory("Fragment 4"))
{
Core.JoinSWF("mobius", "ChiralValley/town-Mobius-21Feb14.swf");
Core.KillMonster("mobius", "Slugfit", "Bottom", "Slugfit", "Fragment 1", log: false);
Core.KillMonster("mobius", "Slugfit", "Bottom", "Cyclops Warlord", "Fragment 4", log: false);
}
Core.KillMonster("faerie", "TopRock", "Left", "*", "Fragment 2");
Core.KillMonster("faerie", "Side4", "Right", "*", "Fragment 3");
Core.KillMonster("cornelis", "Side1", "Left", "*", "Fragment 5");
Core.EnsureComplete(6153);
Core.ToBank(drops);
}
//Recovering the Claws of the Daeva 6154
if (!Story.QuestProgression(6154))
{
Core.EnsureAccept(6154);
Core.KillMonster("arcangrove", "Left", "Left", "*", "Fragment 6");
Core.KillMonster("cloister", "r8", "Left", "*", "Fragment 7");
Core.KillMonster("gilead", "r5", "Right", "Bubblin", "Fragment 8");
Core.KillMonster("natatorium", "r2", "Left", "Merdraconian", "Fragment 9");
Core.KillMonster("mafic", "r6", "Left", "*", "Fragment 10");
Core.EnsureComplete(6154);
Core.ToBank(drops);
}
//Recovering the Light of the Serpent 6155
if (!Story.QuestProgression(6155))
{
Core.EnsureAccept(6155);
Core.KillMonster("mythsong", "Hill", "Right", "*", "Fragment 11");
Core.HuntMonster("palooza", "Rock Lobster", "Fragment 12");
Core.HuntMonster("palooza", "Stinger", "Fragment 13");
Core.HuntMonster("beehive", "Killer Queen Bee", "Fragment 14");
Core.HuntMonster("palooza", "Mozard", "Fragment 15");
Core.EnsureComplete(6155);
Core.ToBank(drops);
}
//Recovering the Pike of the Shimmering Sands 6156
if (!Story.QuestProgression(6156))
{
Core.EnsureAccept(6156);
Core.KillMonster("forestchaos", "Boss", "Left", "*", "Fragment 16");
Core.KillMonster("guru", "Field2", "Left", "*", "Fragment 17");
Core.KillMonster("marsh", "Forest3", "Left", "Dark Witch", "Fragment 18");
Core.KillMonster("marsh", "Forest3", "Left", "Spider", "Fragment 19");
Core.KillMonster("marsh2", "End", "Left", "Soulseeker", "Fragment 20");
Core.EnsureComplete(6156);
Core.ToBank(drops);
}
//Recovering the Reavers of the Gilded Sun 6157
if (!Story.QuestProgression(6157))
{
Core.EnsureAccept(6157);
Core.KillMonster("pirates", "End", "Left", "Shark Bait", "Fragment 21");
Core.KillMonster("pirates", "End", "Left", "Fishwing", "Fragment 25");
Core.KillMonster("yokairiver", "r2", "Left", "Kappa Ninja", "Fragment 22");
Core.KillMonster("bamboo", "Enter", "Spawn", "*", "Fragment 23");
Core.KillMonster("yokaiwar", "War2", "Left", "Samurai Nopperabo", "Fragment 24");
Core.EnsureComplete(6157);
Core.ToBank(drops);
}
//Potent Mana 6158
if (!Story.QuestProgression(6158))
{
Core.EnsureAccept(6158);
Core.EquipClass(ClassType.Solo);
Core.KillDoomKitten("Potent DoomKitten Mana", isTemp: true);
Core.KillMonster("bloodtitan", "Ultra", "Left", "*", "Potent Blood Titan Mana");
Core.KillTrigoras("Potent Trigoras Mana", isTemp: true);
Core.KillMonster("phoenixrise", "r8", "Left", "*", "Potent CinderClaw Mana");
Core.KillMonster("thevoid", "r16", "Left", "*", "Potent Reaper Mana");
Core.EnsureComplete(6158);
}
//Break the Seal 6159
Story.MapItemQuest(6159, "djinngate", 5571, 5, false);
if (!Story.QuestProgression(6160))
{
Core.EquipClass(ClassType.Farm);
Core.EnsureAccept(6160);
Core.HuntMonster("djinngate", "Harpy", "Djinn's Essence", 100, isTemp: false);
Core.EnsureComplete(6160);
}
//Armor of Zular 6160
if (!Story.QuestProgression(6160))
{
Core.EquipClass(ClassType.Solo);
Core.EnsureAccept(6161);
Core.HuntMonster("djinngate", "Gedoz", "Gedoz the Malignant Defeated");
Core.EnsureComplete(6161);
}
//Gedoz, Geddout! 6161
Story.KillQuest(6161, "DjinnGate", "Gedoz");
//Quest for Resources 6162
Story.KillQuest(6162, "DjinnGate", new[] { "Harpy", "Lamia" });
//The Key of Smoke 7301
Story.KillQuest(7301, "AshfallCamp", "Smoldur");
//The Key of Flame 7302
Story.KillQuest(7302, "LavaRun", "Phedra");
//The Key of Mist 7303
Story.KillQuest(7303, "Marsh", "Dark Witch");
//The Key of Air 7304
Story.KillQuest(7304, "AirStorm", "Energy Tornado");
//The Key of Earth 7305
Story.KillQuest(7305, "DragonPlane", "Moganth");
//The Key of Stone 7306
Story.KillQuest(7306, "MountainPath", "Balboa");
//The Key of Water 7307
Story.KillQuest(7307, "Natatorium", "Marianus");
//The Key of Ice 7308
Story.KillQuest(7308, "IcePlane", "Frostblade");
//The Key of Sand 7309
Story.KillQuest(7309, "Pyramid", "Mummy");
//The Key of Metal 7310
Story.KillQuest(7310, "DreadSpace", "Dread Space");
//The Key of Shadow 7311
Story.KillQuest(7311, "ShadowVault", "Ancient Doomknight");
//The Key of Light 7312
Story.KillQuest(7312, "CelestialArenaD", "Queen of Hope");
Core.ToBank(drops);
}
}