-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ShadowDuat and HiddenDuat story scripts; enhance CoreShadowofDoom…
… with new methods
- Loading branch information
Showing
4 changed files
with
324 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
name: HiddenDuat Merge | ||
description: This bot will farm the items belonging to the selected mode for the HiddenDuat Merge [2501] in /hiddenduat | ||
tags: hiddenduat, merge, hiddenduat, apophis, medjai, bangs, morph, horned, dark, umbral, scythe, aaru, bow | ||
*/ | ||
//cs_include Scripts/CoreBots.cs | ||
//cs_include Scripts/CoreFarms.cs | ||
//cs_include Scripts/CoreStory.cs | ||
//cs_include Scripts/CoreAdvanced.cs | ||
//cs_include Scripts/Seasonal\BlackFriday\ShadowofDoom\CoreShadowofDoom.cs | ||
using Skua.Core.Interfaces; | ||
using Skua.Core.Models.Items; | ||
using Skua.Core.Options; | ||
|
||
public class HiddenDuatMerge | ||
{ | ||
private IScriptInterface Bot => IScriptInterface.Instance; | ||
private CoreBots Core => CoreBots.Instance; | ||
private CoreFarms Farm = new(); | ||
private CoreAdvanced Adv = new(); | ||
private static CoreAdvanced sAdv = new(); | ||
private CoreShadowofDoom CSoD = new(); | ||
|
||
public List<IOption> Generic = sAdv.MergeOptions; | ||
public string[] MultiOptions = { "Generic", "Select" }; | ||
public string OptionsStorage = sAdv.OptionsStorage; | ||
// [Can Change] This should only be changed by the author. | ||
// If true, it will not stop the script if the default case triggers and the user chose to only get mats | ||
private bool dontStopMissingIng = false; | ||
|
||
public void ScriptMain(IScriptInterface Bot) | ||
{ | ||
Core.BankingBlackList.AddRange(new[] { "Crown of Chaos" }); | ||
Core.SetOptions(); | ||
|
||
BuyAllMerge(); | ||
Core.SetOptions(false); | ||
} | ||
|
||
public void BuyAllMerge(string? buyOnlyThis = null, mergeOptionsEnum? buyMode = null) | ||
{ | ||
CSoD.HiddenDuat(); | ||
|
||
//Only edit the map and shopID here | ||
Adv.StartBuyAllMerge("hiddenduat", 2501, findIngredients, buyOnlyThis, buyMode: buyMode); | ||
|
||
#region Dont edit this part | ||
void findIngredients() | ||
{ | ||
ItemBase req = Adv.externalItem; | ||
int quant = Adv.externalQuant; | ||
int currentQuant = req.Temp ? Bot.TempInv.GetQuantity(req.Name) : Bot.Inventory.GetQuantity(req.Name); | ||
if (req == null) | ||
{ | ||
Core.Logger("req is NULL"); | ||
return; | ||
} | ||
|
||
switch (req.Name) | ||
{ | ||
default: | ||
bool shouldStop = !Adv.matsOnly || !dontStopMissingIng; | ||
Core.Logger($"The bot hasn't been taught how to get {req.Name}." + (shouldStop ? " Please report the issue." : " Skipping"), messageBox: shouldStop, stopBot: shouldStop); | ||
break; | ||
#endregion | ||
|
||
case "Crown of Chaos": | ||
Core.FarmingLogger(req.Name, quant); | ||
Core.EquipClass(ClassType.Farm); | ||
Core.RegisterQuests(9965); | ||
while (!Bot.ShouldExit && !Core.CheckInventory(req.Name, quant)) | ||
{ | ||
Core.HuntMonster("hiddenduat", "Anubian Overseer", "Duanmutef Glyph", 6, log: false); | ||
Core.HuntMonster("hiddenduat", "Pharaoh Neith", "Neith's Uraeus", log: false); | ||
Core.HuntMonster("hiddenduat", "Umbral Chaos", "Apophis' Violet Favor", log: false); | ||
Bot.Wait.ForPickup(req.Name); | ||
} | ||
Core.CancelRegisteredQuests(); | ||
break; | ||
|
||
} | ||
} | ||
} | ||
|
||
public List<IOption> Select = new() | ||
{ | ||
new Option<bool>("88090", "Apophis Medjai", "Mode: [select] only\nShould the bot buy \"Apophis Medjai\" ?", false), | ||
new Option<bool>("88091", "Apophis Medjai Hair", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Hair\" ?", false), | ||
new Option<bool>("88092", "Apophis Medjai Locks", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Locks\" ?", false), | ||
new Option<bool>("88093", "Apophis Medjai Bangs", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Bangs\" ?", false), | ||
new Option<bool>("88094", "Apophis Medjai Morph", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Morph\" ?", false), | ||
new Option<bool>("88095", "Apophis Medjai Visage", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Visage\" ?", false), | ||
new Option<bool>("88096", "Apophis Medjai Bangs Visage", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Bangs Visage\" ?", false), | ||
new Option<bool>("88097", "Apophis Medjai Horned Morph", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Horned Morph\" ?", false), | ||
new Option<bool>("88098", "Apophis Medjai Horned Visage", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Horned Visage\" ?", false), | ||
new Option<bool>("88099", "Apophis Medjai Helm", "Mode: [select] only\nShould the bot buy \"Apophis Medjai Helm\" ?", false), | ||
new Option<bool>("88100", "Dark Medjai Cape", "Mode: [select] only\nShould the bot buy \"Dark Medjai Cape\" ?", false), | ||
new Option<bool>("88103", "Umbral Scythe of Aaru", "Mode: [select] only\nShould the bot buy \"Umbral Scythe of Aaru\" ?", false), | ||
new Option<bool>("88104", "Umbral Bow of Aaru", "Mode: [select] only\nShould the bot buy \"Umbral Bow of Aaru\" ?", false), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
name: Shadow Duat | ||
description: Does the /shadowduat storyline | ||
tags: shadow of doom, shadowduat, shadow, duat, story, saga, zhoom | ||
*/ | ||
//cs_include Scripts/CoreBots.cs | ||
//cs_include Scripts/CoreStory.cs | ||
//cs_include Scripts/Seasonal/BlackFriday/ShadowofDoom/CoreShadowofDoom.cs | ||
using Skua.Core.Interfaces; | ||
|
||
public class ShadowDuat | ||
{ | ||
private IScriptInterface Bot => IScriptInterface.Instance; | ||
private CoreBots Core => CoreBots.Instance; | ||
private CoreStory Story = new(); | ||
private CoreShadowofDoom CoreSoD = new(); | ||
|
||
public void ScriptMain(IScriptInterface Bot) | ||
{ | ||
Core.SetOptions(); | ||
|
||
CoreSoD.ShadowDuat(); | ||
|
||
Core.SetOptions(false); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
name: Hidden Palace of Duat | ||
description: Does the /hiddenduat storyline | ||
tags: shadow of doom, hiddenduat, hidden, duat, story, saga, zhoom, hidden palace,palace | ||
*/ | ||
//cs_include Scripts/CoreBots.cs | ||
//cs_include Scripts/CoreStory.cs | ||
//cs_include Scripts/Seasonal/BlackFriday/ShadowofDoom/CoreShadowofDoom.cs | ||
using Skua.Core.Interfaces; | ||
|
||
public class HiddenDuat | ||
{ | ||
private IScriptInterface Bot => IScriptInterface.Instance; | ||
private CoreBots Core => CoreBots.Instance; | ||
private CoreStory Story = new(); | ||
private CoreShadowofDoom CoreSoD = new(); | ||
|
||
public void ScriptMain(IScriptInterface Bot) | ||
{ | ||
Core.SetOptions(); | ||
|
||
CoreSoD.HiddenDuat(); | ||
|
||
Core.SetOptions(false); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters