forked from BrenoHenrike/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThirdSpell.cs
142 lines (117 loc) · 5.52 KB
/
ThirdSpell.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
/*
name: Third Spell Story
description: This will finish the Third Spell Story.
tags: story, quest, thirdspell
*/
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreStory.cs
using Skua.Core.Interfaces;
public class ThirdSpell
{
public IScriptInterface Bot => IScriptInterface.Instance;
public CoreBots Core => CoreBots.Instance;
public CoreStory Story = new();
public void ScriptMain(IScriptInterface bot)
{
Core.BankingBlackList.AddRange(new[] {
"Brainz n' Eggs",
"Mana Token I", "Mana Token II", "Mana Token III", "Mana Token IV", "Mana Token V", "Mana Token VI", "Mana Token VI",
"Mana Token VII", "Mana Token VIII", "Mana Token IX", "Mana Token X", "Mana Token XI",
"Sun Token I", "Sun Token II", "Sun Token III", "Sun Token IV", "Sun Token V", "Sun Token VI", "Sun Token VII", "Sun Token VIII",
"Heart of the Sun"});
Core.SetOptions();
StoryLine();
Core.SetOptions(false);
}
public void StoryLine(bool HoTS = false)
{
if (!HoTS)
{
if (Core.CheckInventory("Sun Token VIII", toInv: false))
return;
}
else if (Core.CheckInventory("Heart of the Sun"))
return;
Story.LegacyQuestManager(QuestLogic, 4474, 4475, 4476, 4477, 4478, 4479, 4480, 4481, 4482, 4483, 4484, 4485, 4486, 4487, 4488, 4489, 4490, 4491, 4492, 4493);
void QuestLogic()
{
switch (Story.LegacyQuestID)
{
case 4474: //Breakfast With... Brains?
Core.HuntMonster("doomwood", "Doomwood Treeant", "Braaaainz", 10);
break;
case 4475: //Post-Elemental Apocalypse
Core.HuntMonster("thirdspell", "Mana Phoenix", "Mana Plane Monster Defeated", 12);
break;
case 4476: //Phoenix’s First Birthday
Core.HuntMonster("thirdspell", "Mana Phoenix", "Proxy Eggs", 8);
break;
case 4477: //Elementals Are From the Sun, We Are From Lore
Core.GetMapItem(3668, 10, "thirdspell");
break;
case 4478: //Sssssmoking...
Core.HuntMonster("thirdspell", "Mana Phoenix", "Elemental Pathway Cleared", 20);
break;
case 4479: //Green-Eyed Incantations
Core.HuntMonster("thirdspell", "Mana Phoenix", "Green Eye", 5);
break;
case 4480: //A Lonely Cysero
Core.GetMapItem(3671, map: "thirdspell");
break;
case 4481: //Body & Soul & The Hero
Core.GetMapItem(3675, map: "thirdspell");
break;
case 4482: //Abduction
Core.HuntMonster("thirdspell", "Mana Phoenix", "Abducted Mana Phoenix");
break;
case 4483: //Truth or De-Feathering
Core.GetMapItem(3672, map: "thirdspell");
break;
case 4484: //The Art of Persuasion
Core.HuntMonster("thirdspell", "Great Solar Elemental", "Great Solar Elemental Defeated");
break;
case 4485: //Frozen Mana
Core.HuntMonster("thirdspell", "Mana Phoenix", "Mana Phoenix Egg", 7);
break;
case 4486: //Angry Elements
Core.HuntMonster("thirdspell", "Great Solar Elemental", "Great Solar Elemental Defeated Again");
break;
case 4487: //The Sunspots, They Are Changing!
Core.GetMapItem(3673, 3, "thirdspell");
break;
case 4488: //I Enjoy Being a Soul
Core.KillMonster("thirdspell", "r12", "Left", "Living Fire", "Sun Monster Ember", 15);
break;
case 4489: //Burning Like Me!
Core.HuntMonster("thirdspell", "Sun Flare", "Sun Flare Defeated", 10);
Core.KillMonster("thirdspell", "r12", "Left", "Living Fire", "Living Fire Defeated", 5);
break;
case 4490: //Assault With a Deadly Shadow
Core.GetMapItem(3674, map: "thirdspell");
break;
case 4491: // 4491|Mother Knows The Sun
Core.HuntMonster("thirdspell", "Solar Incarnation", "Heart of the Sun Received");
if (HoTS)
{
Bot.Wait.ForDrop("Heart of the Sun", 40);
Bot.Wait.ForPickup("Heart of the Sun");
Core.ToBank("Sun Token VI");
Story.LegacyQuestStop();
}
break;
case 4492: // 4492|Selfishness
Core.GetMapItem(3676, map: "thirdspell");
break;
case 4493: // 4493|See the Hero Run
Core.GetMapItem(3677, map: "thirdspell");
if (!Core.CheckInventory("Heart of the Sun"))
{
Core.EnsureAccept(4491);
Core.HuntMonster("thirdspell", "Solar Incarnation", "Heart of the Sun Received");
Core.EnsureComplete(4491);
}
break;
}
}
}
}