shottah

RBOT | New Worlds, New Opportunities

Jan 7th, 2019
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.66 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script {
  4.  
  5.     public static readonly string QUESTID = "6183";
  6.     public static readonly string REWARDS = {"Diamond of Nulgath", "Dark Crystal Shard", "Unidentified 13", "Tainted Gem", "Voucher of Nulgath", "Voucher of Nulgath (non-mem)", "Totem of Nulgath", "Gem of Nulgath", "Fiend Token", "Blood Gem of Archfiend"};
  7.    
  8.     public void ScriptMain(ScriptInterface bot) {
  9.         for (int i = 0; i < 5; i++) {
  10.             bot.Skills.Add(i, 1f);
  11.         }
  12.  
  13.         bot.Skills.StartTimer();
  14.         bot.Options.SafeTimings = true;
  15.         bot.Options.InfiniteRange = true;
  16.         bot.Options.DisableFX = true;
  17.         bot.Options.PrivateRooms = true;
  18.         bot.Options.ExitCombatBeforeQuest = true;
  19.        
  20.         for (int i = 0; i < REWARDS.Length; i++) {
  21.             bot.Drops.Add(REWARDS[i]);
  22.         }
  23.        
  24.         bot.Drops.RejectElse(true);
  25.         bot.Drops.Start();
  26.        
  27.         int count = 0;
  28.         int amount = 100;
  29.         while ( count < amount) {
  30.             bot.Quests.EnsureAccept(this.QUESTID)
  31.             grindEnemyForItem(bot, "mobius", "Fire Imp", "Imp Flame", 3, true);
  32.             grindEnemyForItem(bot, "mobius", "Slugfit", "Slugfit's Horns", 5, true);
  33.             grindEnemyForItem(bot, "tercessuinotlim", "Dark Makai", "Makai Fang", 5, true);
  34.             grindEnemyForItem(bot, "faerie", "Cyclops Warlord", "Cyclops Horn", 3, true);
  35.             grindEnemyForItem(bot, "greenguardwest", "Big Bad Board", "Wereboar Tusk", 2, true);
  36.             if (bot.Quests.EnsureComplete(this.QUESTID){ i++; }
  37.         }
  38.        
  39.         bot.Drops.Stop();
  40.     }
  41.    
  42.     public void grindEnemyForItem(ScriptInterface bot, string location, string enemy, string item, int quantity, bool istemp) {
  43.         if (bot.Map.Name != location) bot.Player.Join(location, "Enter", "Spawn");
  44.         bot.Player.HuntForItem(enemy, item, quantity, istemp);
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment