Advertisement
shottah

RBOT | Tained Gems (Cubes)

Jun 6th, 2018
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.36 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script {
  4.  
  5.     public static readonly string [] CORE = {"Cubes", "Tainted Gems"};
  6.  
  7.     public void ScriptMain(ScriptInterface bot){
  8.         bot.Skills.Add(1, 1f);
  9.         bot.Skills.Add(2, 1f);
  10.         bot.Skills.Add(3, 1f);
  11.         bot.Skills.Add(4, 1f);
  12.         bot.Skills.StartTimer();
  13.         bot.Options.SafeTimings = true;
  14.         bot.Options.RestPackets = true;
  15.        
  16.         bot.Player.LoadBank();
  17.         bot.Inventory.BankAllCoinItems();
  18.        
  19.         bot.Bank.ToInventory("Tainted Gems");
  20.         bot.Bank.ToInventory("Cubes");
  21.        
  22.         TaintedGems(bot, 200);
  23.     }
  24.  
  25.     public void TaintedGems(ScriptInterface bot, int quantity){
  26.        
  27.         while (bot.Inventory.Contains("Tainted Gem", quantity)) {
  28.             if (!bot.Quests.IsInProgress(569))
  29.                 bot.Quests.EnsureAccept(569);
  30.             bot.Player.Join("cubes-9999", "Fort2", "Left");
  31.            
  32.             while (!bot.Inventory.Contains("Cubes", 500)) {
  33.                 bot.Player.Kill ("*");
  34.                 bot.Player.Pickup(CORE);
  35.                 bot.Player.RejectExcept(CORE);
  36.             }
  37.            
  38.             bot.Player.Join("mountfrost", "War", "Left");
  39.            
  40.             while (!bot.Inventory.ContainsTempItem("Ice Cubes", 6)) {
  41.                 bot.Player.Kill ("*");
  42.                 bot.Player.Pickup(CORE);
  43.                 bot.Player.RejectExcept(CORE);
  44.             }
  45.            
  46.             while (bot.Quests.CanComplete(569)) {
  47.                 bot.Quests.EnsureComplete(569);
  48.                 bot.Player.Pickup(CORE);
  49.                 bot.Player.RejectExcept(CORE);
  50.                 bot.Quests.EnsureAccept(569);
  51.                 bot.Sleep(1000);
  52.             }
  53.         }
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement