Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RBot;
- public class Script {
- public string [] LARVAE_WHITELIST = {"Unidentified 13", "Voucher of Nulgath (non-mem)",
- "Voucher of Nulgath", "Gem of Nulgath",
- "Dark Crystal Shard", "Tainted Gem",
- "Totem of Nulgath", "Unidentified 10",
- "Diamond of Nulgath"};
- public void ScriptMain(ScriptInterface bot){
- bot.Options.LagKiller = true;
- bot.Options.SafeTimings = true;
- bot.Options.RestPackets = true;
- for (int i = 1; i < 5; i++) {
- bot.Skills.Add(i, 1f);
- }
- bot.Skills.StartTimer();
- if (bot.Inventory.Contains("Nulgath's Approval", 200) == false) {
- Approvals(bot);
- bot.Sleep(1000);
- }
- if (bot.Bank.Contains("Totem of Nulgath", 10) == false) {
- Supplies(bot, "Totem of Nulgath", 10);
- bot.Sleep(1000);
- }
- if (bot.Bank.Contains("Diamond of Nulgath", 30) == false) {
- Supplies(bot, "Diamond of Nulgath", 30);
- bot.Sleep(1000);
- }
- if (bot.Bank.Contains("Voucher of Nulgath (non-mem)", 1) == false) {
- Supplies(bot, "Voucher of Nulgath (non-mem)", 1);
- bot.Sleep(1000);
- }
- if (bot.Bank.Contains("Unidentified 13", 3) == false) {
- Supplies(bot, "Unidentified 13", 3);
- bot.Sleep(1000);
- }
- bot.Player.Join("Yulgar", "Enter", "Spawn");
- bot.Player.WalkTo(545, 500);
- }
- public void SellIfHas(ScriptInterface bot, string itemName){
- Item item = null;
- foreach(Item i in bot.Inventory.Items){
- if(i.Name.ToLower() == itemName.ToLower()){
- item = i;
- break;
- }
- }
- if (item != null)
- bot.Shops.SellItem(item.Name);
- }
- public void GetReagents (ScriptInterface bot) {
- foreach (string s in LARVAE_WHITELIST) {
- if (bot.Bank.Contains(s)) {
- bot.Bank.ToInventory(s);
- }
- }
- }
- public void BankReagents (ScriptInterface bot) {
- foreach (string s in LARVAE_WHITELIST) {
- if (bot.Inventory.Contains(s)) {
- bot.Inventory.ToBank(s);
- }
- }
- }
- public void Approvals(ScriptInterface bot){
- if (bot.Bank.Contains("Archfiend's Favor") == true) {
- bot.Bank.ToInventory("Archfiend's Favor");
- }
- if(bot.Map.Name != "evilwarnul")
- bot.Player.Join("evilwarnul--9999", "Enter", "Spawn");
- bot.Player.Jump("r12", "Left");
- bot.Player.SetSpawnPoint();
- while(!bot.Inventory.Contains("Archfiend's Favor", 300) || !bot.Inventory.Contains("Nulgath's Approval", 300)){
- if (bot.Monsters.Exists("Legion Fenrir")) {
- bot.Player.Kill("Legion Fenrir");
- } else
- bot.Player.Kill("*");
- bot.Player.Pickup("Archfiend's Favor", "Nulgath's Approval");
- bot.Player.RejectExcept("Archfiend's Favor", "Nulgath's Approval");
- }
- bot.Player.Jump("Enter", "Spawn");
- bot.Inventory.BankAllCoinItems();
- }
- public void Supplies (ScriptInterface bot, string item, int quantity, bool stop=true) {
- GetReagents(bot);
- while (bot.Inventory.Contains(item, quantity) == false || !stop) {
- bot.Quests.EnsureAccept(2857);
- if (bot.Map.Name != "escherion")
- bot.Player.Join("escherion","Boss", "Left");
- if (bot.Player.Cell != "Boss")
- bot.Player.Jump("Boss", "Left");
- while (bot.Inventory.Contains("Escherion's Helm") == false) {
- if (bot.Monsters.Exists("Staff of Inversion"))
- bot.Player.Kill("Staff of Inversion");
- else
- bot.Player.Kill("Escherion");
- if (bot.Player.DropExists("Escherion's Helm"))
- bot.Player.Pickup("Escherion's Helm");
- bot.Player.RejectAll();
- }
- bot.Player.Jump("Enter", "Spawn");
- bot.Quests.EnsureComplete(2857);
- bot.Player.Pickup(LARVAE_WHITELIST);
- bot.Player.RejectExcept(LARVAE_WHITELIST);
- SellIfHas(bot, "Voucher of Nulgath");
- }
- BankReagents(bot);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment