Advertisement
shottah

RBOT | Good Rep Bot

Jun 13th, 2018
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.20 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script {
  4.  
  5.     public static readonly string [] awe_item = {"Cape of Awe", "Armor of Awe", "Helm of Awe"};
  6.  
  7.     public void ScriptMain(ScriptInterface bot) {
  8.         for (int i = 0; i < 5; i++) {
  9.             bot.Skills.Add(i, 1f);
  10.         }
  11.        
  12.         bot.Skills.StartTimer();
  13.         bot.Options.SafeTimings = true;
  14.         bot.Options.InfiniteRange = true;
  15.         bot.Options.DisableFX = true;
  16.         bot.Options.PrivateRooms = true;
  17.         bot.Options.ExitCombatBeforeQuest = true;
  18.        
  19.         bot.Player.LoadBank();
  20.         foreach (string s in awe_item) {
  21.             if (bot.Bank.Contains(s)) {
  22.                 bot.Bank.ToInventory(s);
  23.                 break;
  24.             }
  25.         }
  26.        
  27.         foreach (string s in awe_item) {
  28.             if (bot.Inventory.Contains(s)) {
  29.                 bot.Player.EquipItem(s);
  30.                 break;
  31.             }
  32.         }
  33.        
  34.         // Daily Quest
  35.         bot.Quests.EnsureAccept(489);
  36.         if (!bot.Quests.IsDailyComplete(489)) DailyGood(bot);
  37.        
  38.         // Rank 1 - Rank 3: 369, Rank 4 - Rank 10: 372
  39.         int q = 372;
  40.        
  41.         DoGood(bot, q);
  42.     }
  43.    
  44.     public void DailyGood (ScriptInterface bot) {
  45.    
  46.         if (bot.Map.Name != "battleundera")
  47.             bot.Player.Join("battleundera-1e99","Enter","Spawn");
  48.         else
  49.             bot.Player.Jump("Enter","Spawn");
  50.        
  51.         while (!bot.Quests.CanComplete(489)) {
  52.             bot.Player.HuntForItem("Bone Terror|Lich|Skeletal Viking|Skeletal Ice Mage|Skeletal Warrior","Skeletal Army Contract", 6, true, true);
  53.         }
  54.        
  55.         bot.Quests.EnsureComplete(489);
  56.     }
  57.    
  58.     public void DoGood (ScriptInterface bot, int q) {
  59.         if (q==372) {
  60.             if (bot.Map.Name != "castleundead")
  61.                 bot.Player.Join("castleundead-1e99", "Enter", "Spawn");
  62.             else
  63.                 bot.Player.Jump("Enter", "Spawn");
  64.         } else if (q==369) {
  65.             if (bot.Map.Name != "swordhavenbridge")
  66.                 bot.Player.Join("swordhavenbridge-1e99", "Enter", "Spawn");
  67.             else
  68.                 bot.Player.Jump("Enter", "Spawn");
  69.         }
  70.        
  71.        
  72.         while (!bot.ShouldExit()) {
  73.             if (!bot.Quests.IsInProgress(q)) bot.Quests.EnsureAccept(q);
  74.             while (!bot.Quests.CanComplete(q)) {
  75.                 if (q==372)
  76.                     bot.Player.HuntForItem("Skeletal Warrior|Skeletal Viking", "Chaorrupted Skull", 5, true, true);
  77.                 else if (q==369)
  78.                     bot.Player.HuntForItem("Slime|Purple Slime", "Slime in a Jay", 6, true, true);
  79.             }
  80.             if (bot.Quests.CanComplete(q)) bot.Quests.EnsureComplete(q);
  81.         }
  82.     }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement