-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Works with new drops UI. Skill timer starts with script. Skill and drop timers stop with script. Fixed shop ID grabber. Hunt... fixed. All kill/hunts work with * for any monster. Added grim->script converter (buggy). Added ability to aggro all monsters in map. Added toggles for AQLite settings. Script errors show line numbers. Added support for referencing other cs files in script.
- Loading branch information
Showing
85 changed files
with
1,906 additions
and
236 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
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
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
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,10 @@ | ||
namespace RBot.BotConverters | ||
{ | ||
public static class Extensions | ||
{ | ||
public static string ToLower(this bool b) | ||
{ | ||
return b.ToString().ToLower(); | ||
} | ||
} | ||
} |
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,20 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Quest.CmdAcceptQuest", "Grimoire.Botting.Commands.Quest.CmdAcceptQuest2")] | ||
public class AcceptQuest : ICodeGenerator | ||
{ | ||
public QuestHolder Quest { get; set; } | ||
public string QuestID { get; set; } | ||
|
||
public string Id => Quest?.Id.ToString() ?? QuestID; | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Quests.EnsureAccept({Id.GetCode("int")});"); | ||
} | ||
|
||
public class QuestHolder | ||
{ | ||
public int Id { get; set; } | ||
} | ||
} |
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,12 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Combat.CmdAttack")] | ||
public class Attack : ICodeGenerator | ||
{ | ||
public string Monster { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Player.Attack({Monster.GetCode()});"); | ||
} | ||
} |
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,13 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Item.CmdBankSwap")] | ||
public class BankSwap : ICodeGenerator | ||
{ | ||
public string BankItemName { get; set; } | ||
public string InventoryItemName { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Bank.Swap({InventoryItemName.GetCode()}, {BankItemName.GetCode()});"); | ||
} | ||
} |
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,13 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Item.CmdBankTransfer")] | ||
public class BankTransfer : ICodeGenerator | ||
{ | ||
public bool TransferFromBank { get; set; } | ||
public string ItemName { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine(TransferFromBank ? $"bot.Bank.ToInventory({ItemName.GetCode()});" : $"bot.Inventory.ToBank({ItemName.GetCode()});"); | ||
} | ||
} |
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,12 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Misc.CmdBlank", "Grimoire.Botting.Commands.Misc.CmdBlank2", "Grimoire.Botting.Commands.Misc.CmdBlank3")] | ||
public class Blank : ICodeGenerator | ||
{ | ||
public string Text { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine(string.IsNullOrWhiteSpace(Text) ? "// Blank" : $"// {Text}"); | ||
} | ||
} |
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,13 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Item.CmdBuy")] | ||
public class Buy : ICodeGenerator | ||
{ | ||
public int ShopId { get; set; } | ||
public string ItemName { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Shops.BuyItem({ShopId}, {ItemName.GetCode()});"); | ||
} | ||
} |
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,13 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Item.CmdBuyById")] | ||
public class BuyById : ICodeGenerator | ||
{ | ||
public string ItemID { get; set; } | ||
public string ShopID { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Shops.BuyItem({ShopID.GetCode("int")}, {ItemID.GetCode("int")});"); | ||
} | ||
} |
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,12 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Item.CmdBuyFast")] | ||
public class BuyFast : ICodeGenerator | ||
{ | ||
public string ItemName { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Shops.BuyItem({ItemName.GetCode()});"); | ||
} | ||
} |
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,11 @@ | ||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Item.CmdBuyFastByID")] | ||
public class BuyFastById : ICodeGenerator | ||
{ | ||
public string ItemID { get; set; } | ||
public string ShopID { get; set; } | ||
|
||
public string GenerateCode() => $"bot.Shops.BuyItem({ShopID}, {ItemID});"; | ||
} | ||
} |
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,10 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Combat.CmdCancelAutoAttack")] | ||
public class CancelAutoAttack : ICodeGenerator | ||
{ | ||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine("bot.Player.CancelAutoAttack();"); | ||
} | ||
} |
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,10 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Combat.CmdCancelTarget")] | ||
public class CancelTarget : ICodeGenerator | ||
{ | ||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine("bot.Player.CancelTarget()"); | ||
} | ||
} |
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,13 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Misc.CmdChange")] | ||
public class Change : ICodeGenerator | ||
{ | ||
public bool Guild { get; set; } | ||
public string Text { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Options.{(Guild ? "CustomGuild" : "CustomName")} = {Text.GetCode()};"); | ||
} | ||
} |
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,10 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Misc.ClearTemp")] | ||
public class ClearTemp : ICodeGenerator | ||
{ | ||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine("bot.Config.SetDefaults();"); | ||
} | ||
} |
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,13 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Misc.CmdClientMessage")] | ||
public class ClientMessage : ICodeGenerator | ||
{ | ||
public string Messages { get; set; } | ||
public bool IsWarning { get; set; } | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.SendClientPacket(\"%xt%{(IsWarning ? "warning" : "server")}%-1%{Messages}%\");"); | ||
} | ||
} |
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,16 @@ | ||
using CodegenCS; | ||
|
||
namespace RBot.BotConverters.Grimoire.Commands | ||
{ | ||
[Map("Grimoire.Botting.Commands.Quest.CmdCompleteQuest", "Grimoire.Botting.Commands.Quest.CmdCompleteQuest2")] | ||
public class CompleteQuest : ICodeGenerator | ||
{ | ||
public QuestHolder Quest { get; set; } | ||
public string QuestID { get; set; } | ||
public string ItemID { get; set; } | ||
|
||
public string Id => Quest?.Id.ToString() ?? QuestID; | ||
|
||
public void GenerateCode(CodegenTextWriter code) => code.WriteLine($"bot.Quests.EnsureComplete({Id.GetCode("int")}, {ItemID?.GetCode("int") ?? "-1"});"); | ||
} | ||
} |
Oops, something went wrong.