Skip to content

Commit e6d8407

Browse files
committed
Merge branch 'Skua' of https://github.com/auqw/Scripts into Skua
2 parents 45a3ba2 + aa57fc5 commit e6d8407

5 files changed

Lines changed: 206 additions & 92 deletions

File tree

Seasonal/AkibaNewYear/YearoftheHorseBlessingsMerge.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
name: Year of the Horse Blessings Merge
33
description: This bot will farm the items belonging to the selected mode for the Year of the Horse Blessings Merge [2679] in /yokaihunt
4-
tags: year, of, the, horse, blessings, merge, yokaihunt, passionate, qipao, royal, equine, vanguard, ancestral, dao, stallions, passion, fan, propserity, bamboo, ink, painting, lady, suzhens, bridge
4+
tags: year, of, the, horse, blessings, merge, yokaihunt, passionate, qipao, royal, equine, vanguard, ancestral, dao, stallions, passion, fan, propserity, bamboo, ink, painting, lady, suzhens, bridge, prosperity
55
*/
66
//cs_include Scripts/CoreBots.cs
77
//cs_include Scripts/CoreFarms.cs
@@ -136,5 +136,6 @@ void findIngredients()
136136
new Option<bool>("99178", "Stallion's Propserity Fan", "Mode: [select] only\nShould the bot buy \"Stallion's Propserity Fan\" ?", false),
137137
new Option<bool>("99185", "Bamboo Ink Painting", "Mode: [select] only\nShould the bot buy \"Bamboo Ink Painting\" ?", false),
138138
new Option<bool>("99186", "Lady Suzhen's Bridge", "Mode: [select] only\nShould the bot buy \"Lady Suzhen's Bridge\" ?", false),
139+
new Option<bool>("99179", "Prosperity Qipao", "Mode: [select] only\nShould the bot buy \"Prosperity Qipao\" ?", false),
139140
};
140141
}

Seasonal/Carnaval/SambasFlagMerge.cs

Lines changed: 41 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
name: SambasFlagMerge
3-
description: Farms the requirements & buys the items from Sambaflag merge
4-
tags: sambaflag, merge
2+
name: Sambas Flag Merge
3+
description: This bot will farm the items belonging to the selected mode for the Sambas Flag Merge [2237] in /sambaflag
4+
tags: sambas, flag, merge, sambaflag, sambista, dorival, moglin, jorge, zeca, encanto, encantado, cavaquinho, pandeiro, tantan, dança, das, sombras, dançarina, circlet, diadem, de, ouro, escuro
55
*/
66
//cs_include Scripts/CoreBots.cs
77
//cs_include Scripts/CoreFarms.cs
@@ -52,9 +52,8 @@ private static CoreAdvanced sAdv
5252

5353
public void ScriptMain(IScriptInterface Bot)
5454
{
55-
Core.BankingBlackList.AddRange(
56-
new[] { "Costume Piece", "Ceremonial Standard", "Cavaquinho", "Pandeiro", "Tantan" }
57-
);
55+
Core.BankingBlackList.AddRange(new[] { "Costume Piece", "Ceremonial Standard", "Cavaquinho", "Pandeiro", "Tantan", "Dança das Sombras Hair", "Dança das Sombras Locks" });
56+
5857
Core.SetOptions();
5958

6059
BuyAllMerge();
@@ -77,9 +76,7 @@ void findIngredients()
7776
{
7877
ItemBase req = Adv.externalItem;
7978
int quant = Adv.externalQuant;
80-
int currentQuant = req.Temp
81-
? Bot.TempInv.GetQuantity(req.Name)
82-
: Bot.Inventory.GetQuantity(req.Name);
79+
int currentQuant = req.Temp ? Bot.TempInv.GetQuantity(req.Name) : Bot.Inventory.GetQuantity(req.Name);
8380
if (req == null)
8481
{
8582
Core.Logger("req is NULL");
@@ -90,14 +87,9 @@ void findIngredients()
9087
{
9188
default:
9289
bool shouldStop = !Adv.matsOnly || !dontStopMissingIng;
93-
Core.Logger(
94-
$"The bot hasn't been taught how to get {req.Name}."
95-
+ (shouldStop ? " Please report the issue." : " Skipping"),
96-
messageBox: shouldStop,
97-
stopBot: shouldStop
98-
);
90+
Core.Logger($"The bot hasn't been taught how to get {req.Name}." + (shouldStop ? " Please report the issue." : " Skipping"), messageBox: shouldStop, stopBot: shouldStop);
9991
break;
100-
#endregion
92+
#endregion
10193

10294
case "Ceremonial Standard":
10395
Core.FarmingLogger(req.Name, quant);
@@ -135,71 +127,43 @@ void findIngredients()
135127
Core.HuntMonster("sambaflag", "Master Of Ceremonies", req.Name, quant);
136128
Bot.Wait.ForPickup(req.Name);
137129
break;
130+
131+
case "Dança das Sombras Hair":
132+
case "Dança das Sombras Locks":
133+
if (req.Upgrade && !Core.IsMember)
134+
{
135+
Core.Logger($"{req.Name} requires membership to farm, skipping.");
136+
return;
137+
}
138+
139+
Core.FarmingLogger(req.Name, quant);
140+
Core.EquipClass(ClassType.Solo);
141+
Core.AddDrop(req.ID);
142+
Core.HuntMonster("sambaflag", "Flag Bearer", req.Name, quant, req.Temp, false);
143+
break;
138144
}
139145
}
140146
}
141147

142148
public List<IOption> Select = new()
143149
{
144-
new Option<bool>(
145-
"76366",
146-
"Sambista Armor",
147-
"Mode: [select] only\nShould the bot buy \"Sambista Armor\" ?",
148-
false
149-
),
150-
new Option<bool>(
151-
"76367",
152-
"Sambista Helm",
153-
"Mode: [select] only\nShould the bot buy \"Sambista Helm\" ?",
154-
false
155-
),
156-
new Option<bool>(
157-
"76371",
158-
"Dorival The Moglin",
159-
"Mode: [select] only\nShould the bot buy \"Dorival The Moglin\" ?",
160-
false
161-
),
162-
new Option<bool>(
163-
"76372",
164-
"Jorge The Moglin",
165-
"Mode: [select] only\nShould the bot buy \"Jorge The Moglin\" ?",
166-
false
167-
),
168-
new Option<bool>(
169-
"76373",
170-
"Zeca The Moglin",
171-
"Mode: [select] only\nShould the bot buy \"Zeca The Moglin\" ?",
172-
false
173-
),
174-
new Option<bool>(
175-
"76375",
176-
"Encanto Sambista Armor",
177-
"Mode: [select] only\nShould the bot buy \"Encanto Sambista Armor\" ?",
178-
false
179-
),
180-
new Option<bool>(
181-
"76376",
182-
"Encanto Sambista Hat",
183-
"Mode: [select] only\nShould the bot buy \"Encanto Sambista Hat\" ?",
184-
false
185-
),
186-
new Option<bool>(
187-
"76377",
188-
"Encanto Cavaquinho",
189-
"Mode: [select] only\nShould the bot buy \"Encanto Cavaquinho\" ?",
190-
false
191-
),
192-
new Option<bool>(
193-
"76378",
194-
"Encanto Pandeiro",
195-
"Mode: [select] only\nShould the bot buy \"Encanto Pandeiro\" ?",
196-
false
197-
),
198-
new Option<bool>(
199-
"76379",
200-
"Encanto Tantan",
201-
"Mode: [select] only\nShould the bot buy \"Encanto Tantan\" ?",
202-
false
203-
),
204-
};
150+
new Option<bool>("76366", "Sambista Armor", "Mode: [select] only\nShould the bot buy \"Sambista Armor\" ?", false),
151+
new Option<bool>("76367", "Sambista Helm", "Mode: [select] only\nShould the bot buy \"Sambista Helm\" ?", false),
152+
new Option<bool>("76371", "Dorival The Moglin", "Mode: [select] only\nShould the bot buy \"Dorival The Moglin\" ?", false),
153+
new Option<bool>("76372", "Jorge The Moglin", "Mode: [select] only\nShould the bot buy \"Jorge The Moglin\" ?", false),
154+
new Option<bool>("76373", "Zeca The Moglin", "Mode: [select] only\nShould the bot buy \"Zeca The Moglin\" ?", false),
155+
new Option<bool>("76375", "Encanto Sambista Armor", "Mode: [select] only\nShould the bot buy \"Encanto Sambista Armor\" ?", false),
156+
new Option<bool>("76376", "Encantado Sambista Hat", "Mode: [select] only\nShould the bot buy \"Encantado Sambista Hat\" ?", false),
157+
new Option<bool>("76377", "Encantado Cavaquinho", "Mode: [select] only\nShould the bot buy \"Encantado Cavaquinho\" ?", false),
158+
new Option<bool>("76378", "Encantado Pandeiro", "Mode: [select] only\nShould the bot buy \"Encantado Pandeiro\" ?", false),
159+
new Option<bool>("76379", "Encantado Tantan", "Mode: [select] only\nShould the bot buy \"Encantado Tantan\" ?", false),
160+
new Option<bool>("99284", "Dança das Sombras", "Mode: [select] only\nShould the bot buy \"Dança das Sombras\" ?", false),
161+
new Option<bool>("99287", "Dança das Sombras Mask", "Mode: [select] only\nShould the bot buy \"Dança das Sombras Mask\" ?", false),
162+
new Option<bool>("99288", "Dançarina das Sombras Mask", "Mode: [select] only\nShould the bot buy \"Dançarina das Sombras Mask\" ?", false),
163+
new Option<bool>("99289", "Dança das Sombras Circlet", "Mode: [select] only\nShould the bot buy \"Dança das Sombras Circlet\" ?", false),
164+
new Option<bool>("99290", "Dança das Sombras Diadem", "Mode: [select] only\nShould the bot buy \"Dança das Sombras Diadem\" ?", false),
165+
new Option<bool>("99291", "Dança das Sombras Visage", "Mode: [select] only\nShould the bot buy \"Dança das Sombras Visage\" ?", false),
166+
new Option<bool>("99389", "Tantan de Ouro Encantado", "Mode: [select] only\nShould the bot buy \"Tantan de Ouro Encantado\" ?", false),
167+
new Option<bool>("99463", "Tantan Escuro", "Mode: [select] only\nShould the bot buy \"Tantan Escuro\" ?", false),
168+
};
205169
}

Seasonal/HerosHeartDay/UndeadSnugglegramsMerge.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
22
name: Undead Snugglegrams Merge
33
description: This bot will farm the items belonging to the selected mode for the Undead Snugglegrams Merge [2682] in /heartsdaygrave
4-
tags: undead, snugglegrams, merge, heartsdaygrave, swordhaven, pendragon, noble, saber, pure, nobility, emblem, shield, promised, victory, knighthood, conferment, shadowscythe, visionary, plume, tarnished, unwavering, spite, condemnation, doomknight, tyrant, plate, collar, oppression, darkness, doomed, tyrannical
4+
tags: undead, snugglegrams, merge, heartsdaygrave, swordhaven, pendragon, noble, saber, pure, nobility, emblem, shield, promised, victory, knighthood, conferment, shadowscythe, visionary, plume, tarnished, unwavering, spite, condemnation, doomknight, tyrant, plate, collar, oppression, darkness, doomed, tyrannical, royal, valiant, guard, silver, ehangwen, forsaken, crimson, halberd, horns, barbute, tyrants, gaze, devastation, destruction
55
*/
66
//cs_include Scripts/CoreBots.cs
77
//cs_include Scripts/CoreFarms.cs
88
//cs_include Scripts/CoreAdvanced.cs
9+
//cs_include Scripts/CoreStory.cs
910
//cs_include Scripts/Seasonal/HerosHeartDay/heartsdaygrave.cs
1011
using Skua.Core.Interfaces;
1112
using Skua.Core.Models.Items;

Tools/ForDevelopers/CaseStorage.cs

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31468,6 +31468,118 @@ public void ScriptMain(IScriptInterface bot)
3146831468
break;
3146931469
"
3147031470
},
31471+
{
31472+
"Dança das Sombras Hair",
31473+
@"
31474+
case ""Dança das Sombras Hair"":
31475+
if (req.Upgrade && !Core.IsMember)
31476+
{
31477+
Core.Logger($""{req.Name} requires membership to farm, skipping."");
31478+
return;
31479+
}
31480+
31481+
Core.FarmingLogger(req.Name, quant);
31482+
Core.EquipClass(ClassType.Solo);
31483+
Core.AddDrop(req.ID);
31484+
Core.HuntMonster(""sambaflag"", ""Flag Bearer"", req.Name, quant, req.Temp, false);
31485+
break;
31486+
"
31487+
},
31488+
{
31489+
"Dança das Sombras Locks",
31490+
@"
31491+
case ""Dança das Sombras Locks"":
31492+
if (req.Upgrade && !Core.IsMember)
31493+
{
31494+
Core.Logger($""{req.Name} requires membership to farm, skipping."");
31495+
return;
31496+
}
31497+
31498+
Core.FarmingLogger(req.Name, quant);
31499+
Core.EquipClass(ClassType.Solo);
31500+
Core.AddDrop(req.ID);
31501+
Core.HuntMonster(""sambaflag"", ""Flag Bearer"", req.Name, quant, req.Temp, false);
31502+
break;
31503+
"
31504+
},
31505+
{
31506+
"Heart of Steel",
31507+
@"
31508+
case ""Heart of Steel"":
31509+
if (req.Upgrade && !Core.IsMember)
31510+
{
31511+
Core.Logger($""{req.Name} requires membership to farm, skipping."");
31512+
return;
31513+
}
31514+
31515+
Core.FarmingLogger(req.Name, quant);
31516+
Core.EquipClass(ClassType.Solo);
31517+
Core.AddDrop(req.ID);
31518+
Core.RegisterQuests(!Core.IsMember ? 10602 : 10603);
31519+
while (!Bot.ShouldExit && !Core.CheckInventory(req.ID, quant))
31520+
{
31521+
Core.HuntMonster(""heartsdaygrave"", ""Illusionist Zio"", ""Zio's Discount Chocolates"");
31522+
Core.HuntMonster(""heartsdaygrave"", ""Warlord Vaioh"", ""Vaioh's Snugglegram"");
31523+
Bot.Wait.ForPickup(req.Name);
31524+
}
31525+
Core.CancelRegisteredQuests();
31526+
break;
31527+
"
31528+
},
31529+
{
31530+
"Doomknight Tyrant Skull",
31531+
@"
31532+
case ""Doomknight Tyrant Skull"":
31533+
if (req.Upgrade && !Core.IsMember)
31534+
{
31535+
Core.Logger($""{req.Name} requires membership to farm, skipping."");
31536+
return;
31537+
}
31538+
31539+
Core.FarmingLogger(req.Name, quant);
31540+
Core.EquipClass(ClassType.Solo);
31541+
Core.AddDrop(req.ID);
31542+
Core.HuntMonster(""heartsdaygrave"", ""Warlord Vaioh"", req.Name, req.Quantity, req.Temp);
31543+
Core.CancelRegisteredQuests();
31544+
break;
31545+
"
31546+
},
31547+
{
31548+
"Doomknight Tyrant Helm",
31549+
@"
31550+
case ""Doomknight Tyrant Helm"":
31551+
if (req.Upgrade && !Core.IsMember)
31552+
{
31553+
Core.Logger($""{req.Name} requires membership to farm, skipping."");
31554+
return;
31555+
}
31556+
31557+
Core.FarmingLogger(req.Name, quant);
31558+
Core.EquipClass(ClassType.Solo);
31559+
Core.AddDrop(req.ID);
31560+
Core.HuntMonster(""heartsdaygrave"", ""Warlord Vaioh"", req.Name, req.Quantity, req.Temp);
31561+
Core.CancelRegisteredQuests();
31562+
break;
31563+
"
31564+
},
31565+
{
31566+
"Ether of Darkness",
31567+
@"
31568+
case ""Ether of Darkness"":
31569+
if (req.Upgrade && !Core.IsMember)
31570+
{
31571+
Core.Logger($""{req.Name} requires membership to farm, skipping."");
31572+
return;
31573+
}
31574+
31575+
Core.FarmingLogger(req.Name, quant);
31576+
Core.EquipClass(ClassType.Solo);
31577+
Core.AddDrop(req.ID);
31578+
Core.HuntMonster(""heartsdaygrave"", ""Warlord Vaioh"", req.Name, req.Quantity, req.Temp);
31579+
Core.CancelRegisteredQuests();
31580+
break;
31581+
"
31582+
},
3147131583
};
3147231584

3147331585
public static bool TryGetCase(string itemName, out string? logic) =>

0 commit comments

Comments
 (0)