Skip to content

Commit

Permalink
Merge branch 'Skua' of https://github.com/BrenoHenrike/Scripts into Skua
Browse files Browse the repository at this point in the history
  • Loading branch information
wtffidy committed Nov 9, 2024
2 parents feb858f + 5295f2f commit d4215cb
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 5 deletions.
26 changes: 26 additions & 0 deletions Seasonal/HarvestDay/18BlightHarvest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
name: Blight Harvest Story
description: This will finish the Blight Harvest storyline.
tags: blightharvest,blight harvest, seasonal, harvest-day,blight,harvest
*/
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreStory.cs
//cs_include Scripts/Seasonal/HarvestDay/CoreHarvestDay.cs
using Skua.Core.Interfaces;

public class BlightHarvest
{
public IScriptInterface Bot => IScriptInterface.Instance;
private CoreBots Core => CoreBots.Instance;
public CoreStory Story = new();
public CoreHarvestDay HarvestDay = new();

public void ScriptMain(IScriptInterface bot)
{
Core.SetOptions();

HarvestDay.BlightHarvest();

Core.SetOptions(false);
}
}
94 changes: 93 additions & 1 deletion Seasonal/HarvestDay/CoreHarvestDay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public void DoAll()
EpilTakeOver();
BirdsWithHarms();
EbilCorpHQ();
BlightHarvest();
}
else
{
Expand Down Expand Up @@ -90,7 +91,7 @@ public void Harvest()
//Whine n' Cheese (134)
if (!Story.QuestProgression(134))
{
Core.EnsureAcceptmultiple(false, new[ ]{134, 423});
Core.EnsureAcceptmultiple(false, new[] { 134, 423 });
Core.HuntMonster("harvest", "Grapes of Wrath", "Whine", 8, log: false);
Core.EnsureComplete(423);
Core.EnsureComplete(134);
Expand Down Expand Up @@ -778,4 +779,95 @@ public void EbilCorpHQ()
Story.KillQuest(8407, "ebilcorphq", "Master Chairman");
}

public void BlightHarvest()
{
if (Core.isCompletedBefore(9481) || !Core.isSeasonalMapActive("blightharvest"))
return;

Story.PreLoad(this);

#region Useable Monsters
string[] UseableMonsters = new[]
{
"Cursed Corn", // UseableMonsters[0],
"Tantalocust", // UseableMonsters[1],
"Scales of Greed", // UseableMonsters[2],
"Fear Gorta", // UseableMonsters[3],
"Famine", // UseableMonsters[4]
};
#endregion Useable Monsters

// 9472 | Bug Blight
if (!Story.QuestProgression(9472))
{
Story.KillQuest(9472, "blightharvest", UseableMonsters[0]);
Story.MapItemQuest(9472, "blightharvest", 12334);
}


// 9473 | Struggle Soup
if (!Story.QuestProgression(9473))
{
Story.KillQuest(9473, "blightharvest", UseableMonsters[1]);
Story.MapItemQuest(9473, "blightharvest", 12335);
}


// 9474 | Fetid Feast
if (!Story.QuestProgression(9474))
{
Story.KillQuest(9474, "blightharvest", new[] { UseableMonsters[0], UseableMonsters[1] });
Story.MapItemQuest(9474, "blightharvest", 12336, 3);
}


// 9475 | Dire Disparity
Story.MapItemQuest(9475, "blightharvest", new[] { 12337, 12338 });


// 9476 | Balancing Crumbs
if (!Story.QuestProgression(9476))
{
Core.HuntMonsterQuest(9476,
("blightharvest", UseableMonsters[2], ClassType.Solo));
}


// 9477 | Harrowing Hike
if (!Story.QuestProgression(9477))
{
Story.KillQuest(9477, "blightharvest", UseableMonsters[3]);
Story.MapItemQuest(9477, "blightharvest", 12339);
}


// 9478 | Down the Grapevine
Story.MapItemQuest(9478, "blightharvest", new[] { 12340, 12341 });


// 9479 | Hungry Hive
if (!Story.QuestProgression(9479))
{
Core.HuntMonsterQuest(9479, "blightharvest", UseableMonsters[1]);
}


// 9480 | Acrid Abundance
if (!Story.QuestProgression(9480))
{

Story.KillQuest(9480, "blightharvest", new[] { UseableMonsters[1], UseableMonsters[3] });
Story.MapItemQuest(9480, "blightharvest", 12342);
}


// 9481 | Keeper of the Scales
if (!Story.QuestProgression(9481))
{
Core.HuntMonsterQuest(9481,
("blightharvest", UseableMonsters[4], ClassType.Solo));
}
}


}
7 changes: 4 additions & 3 deletions Seasonal/HarvestDay/MergeShops/RobinasHarvestMerge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreFarms.cs
//cs_include Scripts/CoreAdvanced.cs
//cs_include Scripts/CoreStory.cs
//cs_include Scripts/Seasonal\HarvestDay\CoreHarvestDay.cs
using Skua.Core.Interfaces;
using Skua.Core.Models.Items;
using Skua.Core.Options;
Expand All @@ -17,6 +19,7 @@ public class RobinasHarvestMerge
private CoreFarms Farm = new();
private CoreAdvanced Adv = new();
private static CoreAdvanced sAdv = new();
private CoreHarvestDay CHD = new();

public List<IOption> Generic = sAdv.MergeOptions;
public string[] MultiOptions = { "Generic", "Select" };
Expand All @@ -36,9 +39,7 @@ public void ScriptMain(IScriptInterface Bot)

public void BuyAllMerge(string? buyOnlyThis = null, mergeOptionsEnum? buyMode = null)
{
/* @bogi insert story here
>>>>> ---- <<<<<<<<
*/
CHD.BlightHarvest();

//Only edit the map and shopID here
Adv.StartBuyAllMerge("blightharvest", 2366, findIngredients, buyOnlyThis, buyMode: buyMode);
Expand Down
48 changes: 47 additions & 1 deletion scripts.json
Original file line number Diff line number Diff line change
Expand Up @@ -7640,7 +7640,7 @@
"null"
],
"path": "Seasonal/HarvestDay/CoreHarvestDay.cs",
"size": 23587,
"size": 26162,
"fileName": "CoreHarvestDay.cs",
"downloadUrl": "https://raw.githubusercontent.com/BrenoHenrike/Scripts/Skua/Seasonal/HarvestDay/CoreHarvestDay.cs"
},
Expand Down Expand Up @@ -7683,6 +7683,22 @@
"fileName": "09FurbleFeastStory.cs",
"downloadUrl": "https://raw.githubusercontent.com/BrenoHenrike/Scripts/Skua/Seasonal/HarvestDay/09FurbleFeastStory.cs"
},
{
"name": "Blight Harvest Story",
"description": "This will finish the Blight Harvest storyline.",
"tags": [
"blightharvest",
"blight harvest",
"seasonal",
"harvest-day",
"blight",
"harvest"
],
"path": "Seasonal/HarvestDay/18BlightHarvest.cs",
"size": 703,
"fileName": "18BlightHarvest.cs",
"downloadUrl": "https://raw.githubusercontent.com/BrenoHenrike/Scripts/Skua/Seasonal/HarvestDay/18BlightHarvest.cs"
},
{
"name": "Gothic Dream Story",
"description": "This will finish the Gothic Dream storyline.",
Expand Down Expand Up @@ -23504,6 +23520,36 @@
"fileName": "NightmareHarvestMerge.cs",
"downloadUrl": "https://raw.githubusercontent.com/BrenoHenrike/Scripts/Skua/Seasonal/HarvestDay/MergeShops/NightmareHarvestMerge.cs"
},
{
"name": "Robinas Harvest Merge",
"description": "This bot will farm the items belonging to the selected mode for the Robinas Harvest Merge [2366] in /blightharvest",
"tags": [
"robinas",
"harvest",
"merge",
"blightharvest",
"turdracolich",
"hunter",
"stalker",
"brimmed",
"morph",
"hunting",
"gear",
"goldtouched",
"carver",
"carvers",
"rifle",
"turdraken",
"carving",
"cranberry",
"imp",
"pet"
],
"path": "Seasonal/HarvestDay/MergeShops/RobinasHarvestMerge.cs",
"size": 6268,
"fileName": "RobinasHarvestMerge.cs",
"downloadUrl": "https://raw.githubusercontent.com/BrenoHenrike/Scripts/Skua/Seasonal/HarvestDay/MergeShops/RobinasHarvestMerge.cs"
},
{
"name": "Harvest Day Parade Merge",
"description": "This will get all or selected items on this merge shop.",
Expand Down

0 comments on commit d4215cb

Please sign in to comment.