shottah

RBOT | Evolved Blood Orb (Wheel of Chance)

Jun 5th, 2018
1,028
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.95 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script {
  4.  
  5.     public string [] LARVAE_WHITELIST = {"Unidentified 13", "Voucher of Nulgath (non-mem)",
  6.                         "Voucher of Nulgath", "Gem of Nulgath",
  7.                         "Dark Crystal Shard", "Tainted Gem",
  8.                         "Totem of Nulgath", "Unidentified 10",
  9.                         "Diamond of Nulgath"};
  10.  
  11.     public void ScriptMain(ScriptInterface bot){
  12.         bot.Options.LagKiller = true;
  13.         bot.Options.SafeTimings = true;
  14.         bot.Options.RestPackets = true;
  15.        
  16.         for (int i = 1; i < 5; i++) {
  17.             bot.Skills.Add(i, 1f);
  18.         }
  19.         bot.Skills.StartTimer();
  20.        
  21.         if (bot.Inventory.Contains("Nulgath's Approval", 200) == false) {
  22.             Approvals(bot);
  23.             bot.Sleep(1000);
  24.         }
  25.        
  26.         if (bot.Bank.Contains("Totem of Nulgath", 10) == false) {
  27.             Supplies(bot, "Totem of Nulgath", 10);
  28.             bot.Sleep(1000);
  29.         }
  30.        
  31.         if (bot.Bank.Contains("Diamond of Nulgath", 30) == false) {
  32.             Supplies(bot, "Diamond of Nulgath", 30);
  33.             bot.Sleep(1000);
  34.         }
  35.        
  36.         if (bot.Bank.Contains("Voucher of Nulgath (non-mem)", 1) == false) {
  37.             Supplies(bot, "Voucher of Nulgath (non-mem)", 1);
  38.             bot.Sleep(1000);
  39.         }
  40.        
  41.         if (bot.Bank.Contains("Unidentified 13", 3) == false) {
  42.             Supplies(bot, "Unidentified 13", 3);
  43.             bot.Sleep(1000);
  44.         }
  45.        
  46.         bot.Player.Join("Yulgar", "Enter", "Spawn");
  47.         bot.Player.WalkTo(545, 500);
  48.     }
  49.    
  50.     public void SellIfHas(ScriptInterface bot, string itemName){
  51.         Item item = null;
  52.         foreach(Item i in bot.Inventory.Items){
  53.             if(i.Name.ToLower() == itemName.ToLower()){
  54.                 item = i;
  55.                 break;
  56.             }
  57.         }
  58.         if (item != null)
  59.             bot.Shops.SellItem(item.Name);
  60.     }
  61.    
  62.     public void GetReagents (ScriptInterface bot) {
  63.         foreach (string s in LARVAE_WHITELIST) {
  64.             if (bot.Bank.Contains(s)) {
  65.                 bot.Bank.ToInventory(s);
  66.             }
  67.         }
  68.     }
  69.    
  70.     public void BankReagents (ScriptInterface bot) {
  71.         foreach (string s in LARVAE_WHITELIST) {
  72.             if (bot.Inventory.Contains(s)) {
  73.                 bot.Inventory.ToBank(s);
  74.             }
  75.         }
  76.     }
  77.    
  78.     public void Approvals(ScriptInterface bot){
  79.        
  80.         if (bot.Bank.Contains("Archfiend's Favor") == true) {
  81.             bot.Bank.ToInventory("Archfiend's Favor");
  82.         }
  83.  
  84.         if(bot.Map.Name != "evilwarnul")
  85.             bot.Player.Join("evilwarnul--9999", "Enter", "Spawn");
  86.        
  87.         bot.Player.Jump("r12", "Left");
  88.         bot.Player.SetSpawnPoint();
  89.         while(!bot.Inventory.Contains("Archfiend's Favor", 300) || !bot.Inventory.Contains("Nulgath's Approval", 300)){
  90.             if (bot.Monsters.Exists("Legion Fenrir")) {
  91.                 bot.Player.Kill("Legion Fenrir");
  92.             } else
  93.                 bot.Player.Kill("*");
  94.            
  95.             bot.Player.Pickup("Archfiend's Favor", "Nulgath's Approval");
  96.             bot.Player.RejectExcept("Archfiend's Favor", "Nulgath's Approval");
  97.         }
  98.  
  99.         bot.Player.Jump("Enter", "Spawn");
  100.         bot.Inventory.BankAllCoinItems();
  101.     }
  102.    
  103.     public void Supplies (ScriptInterface bot, string item, int quantity, bool stop=true) {
  104.        
  105.         GetReagents(bot);
  106.        
  107.         while (bot.Inventory.Contains(item, quantity) == false || !stop) {
  108.             bot.Quests.EnsureAccept(2857);
  109.             if (bot.Map.Name != "escherion")
  110.                 bot.Player.Join("escherion","Boss", "Left");
  111.             if (bot.Player.Cell != "Boss")
  112.                 bot.Player.Jump("Boss", "Left");
  113.                
  114.             while (bot.Inventory.Contains("Escherion's Helm") == false) {
  115.                 if (bot.Monsters.Exists("Staff of Inversion"))
  116.                     bot.Player.Kill("Staff of Inversion");
  117.                 else
  118.                     bot.Player.Kill("Escherion");
  119.                 if (bot.Player.DropExists("Escherion's Helm"))
  120.                     bot.Player.Pickup("Escherion's Helm");
  121.                 bot.Player.RejectAll();
  122.             }
  123.            
  124.             bot.Player.Jump("Enter", "Spawn");
  125.             bot.Quests.EnsureComplete(2857);
  126.             bot.Player.Pickup(LARVAE_WHITELIST);
  127.             bot.Player.RejectExcept(LARVAE_WHITELIST);
  128.             SellIfHas(bot, "Voucher of Nulgath");
  129.         }
  130.        
  131.         BankReagents(bot);
  132.        
  133.     }
  134. }
Advertisement
Add Comment
Please, Sign In to add comment