Guest User

DarkCrystalShardsUpdate.cs

a guest
Aug 8th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.23 KB | None | 0 0
  1. using RBot;
  2. using System.Windows.Forms;
  3.  
  4. public class Script {
  5.  
  6.     private const int COUNT = 1;
  7.    
  8.     int iterations = 0;
  9.  
  10.     public void ScriptMain(ScriptInterface bot){
  11.         bot.Options.SafeTimings = true;
  12.         bot.Options.RestPackets = true;
  13.         bot.Options.ExitCombatBeforeQuest = true;
  14.        
  15.         bot.Player.LoadBank();
  16.        
  17.         bot.Skills.StartTimer();
  18.        
  19.         while(!bot.ShouldExit()){
  20.            
  21.             DefeatedMakai(bot, COUNT * 50);
  22.             bot.Player.Jump("Enter", "Spawn");
  23.             bot.Sleep(2000);
  24.             EscherionChain(bot, COUNT);
  25.             bot.Player.Jump("Portal", "Right");
  26.             bot.Log("Escherion's Chain: Done");
  27.             bot.Sleep(2000);
  28.             OdokuroTooth(bot, COUNT);
  29.             bot.Player.Jump("Enter", "Spawn");
  30.             bot.Log("O-Dokuru's Tooth: Done");
  31.             bot.Sleep(2000);
  32.             VathHair(bot, COUNT);
  33.             bot.Player.Jump("Quest", "Left");
  34.             bot.Log("Vath's Hair: Done");
  35.             bot.Sleep(2000);
  36.             AracaraFang(bot, COUNT);
  37.             bot.Player.Jump("Enter", "Spawn");
  38.             bot.Log("Aracara's Fang: Done");
  39.             bot.Sleep(2000);
  40.             HydraScale(bot, COUNT);
  41.             bot.Player.Jump("Enter", "Spawn");
  42.             bot.Log("Hydra Scale: Done");
  43.             bot.Sleep(2000);
  44.            
  45.             bot.Bank.ToInventory("Defeated Makai");
  46.             bot.Bank.ToInventory("Escherion's Chain");
  47.             bot.Bank.ToInventory("O-dokuro's Tooth");
  48.             bot.Bank.ToInventory("Strand of Vath's Hair");
  49.             bot.Bank.ToInventory("Aracara's Fang");
  50.             bot.Bank.ToInventory("Hydra Scale");
  51.            
  52.             for(int i = 0; i < COUNT; i++){
  53.                 bot.Quests.EnsureAccept(570);
  54.                
  55.                 if(bot.Map.Name != "djinn")
  56.                     bot.Player.Join("djinn", "r5", "Center");
  57.                    
  58.                 bot.Player.HuntForItem("Tibicenas", "Tibicenas' Chain", 1, true);
  59.                
  60.                 bot.Quests.EnsureComplete(570);
  61.                    
  62.                 bot.Wait.ForDrop("Dark Crystal Shard", 10);
  63.                 bot.Bank.StackGlitch("Dark Crystal Shard");
  64.             }
  65.             iterations++;
  66.             Application.OpenForms[0].Text = "RBot - Done " + iterations;
  67.         }
  68.     }
  69.    
  70.     public void DefeatedMakai(ScriptInterface bot, int count){
  71.         if(bot.Bank.Contains("Defeated Makai", count))
  72.             return;
  73.         bot.Inventory.BankAllCoinItems();
  74.         if(bot.Map.Name != "tercessuinotlim"){
  75.             bot.Player.Join("citadel", "m22", "Right");
  76.             bot.Player.Join("tercessuinotlim", "Enter", "Spawn");
  77.         }
  78.         bot.Bank.ToInventory("Defeated Makai");
  79.        
  80.         bot.Player.SetSpawnPoint();
  81.        
  82.         bot.Player.HuntForItem("Dark Makai", "Defeated Makai", 50);
  83.        
  84.        
  85.         bot.Player.Jump("Enter", "Spawn");
  86.     }
  87.    
  88.     public void EscherionChain(ScriptInterface bot, int count){
  89.         if(bot.Bank.Contains("Escherion's Chain", count))
  90.             return;
  91.         bot.Player.Join("escherion", "Boss", "Left");
  92.         bot.Player.SetSpawnPoint();
  93.         bot.Inventory.BankAllCoinItems();
  94.        
  95.         bot.Player.HuntForItem("Escherion", "Escherion's Chain", 1);
  96.     }
  97.    
  98.     public void OdokuroTooth(ScriptInterface bot, int count){
  99.         if(bot.Bank.Contains("O-dokuro's Tooth", count))
  100.             return;
  101.         bot.Player.Join("yokaiwar", "Boss", "Left");
  102.         bot.Player.SetSpawnPoint();
  103.         bot.Inventory.BankAllCoinItems();
  104.        
  105.         bot.Player.HuntForItem("O-Dokuro's Head", "O-dokuro's Tooth", 1);
  106.     }
  107.    
  108.     public void VathHair(ScriptInterface bot, int count){
  109.         if(bot.Bank.Contains("Strand of Vath's Hair", count))
  110.             return;
  111.         bot.Player.Join("stalagbite", "r2", "Center");
  112.         bot.Player.SetSpawnPoint();
  113.         bot.Inventory.BankAllCoinItems();
  114.        
  115.         bot.Player.HuntForItem("Vath", "Strand of Vath's Hair", 1);
  116.     }
  117.    
  118.     public void AracaraFang(ScriptInterface bot, int count){
  119.         if(bot.Bank.Contains("Aracara's Fang", count))
  120.             return;
  121.         bot.Player.Join("faerie", "TopRock", "Center");
  122.         bot.Player.SetSpawnPoint();
  123.         bot.Inventory.BankAllCoinItems();
  124.        
  125.         bot.Player.HuntForItem("Aracara", "Aracara's Fang", 1);
  126.     }
  127.    
  128.     public void HydraScale(ScriptInterface bot, int count){
  129.         if(bot.Bank.Contains("Hydra Scale", count))
  130.             return;
  131.         bot.Player.Join("hydra", "Boss", "Left");
  132.         bot.Player.SetSpawnPoint();
  133.         bot.Inventory.BankAllCoinItems();
  134.        
  135.         bot.Player.HuntForItem("Hydra Head", "Hydra Scale", 1);
  136.     }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment