Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RBot;
- public class Script {
- public static readonly string QUESTID = "6183";
- 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"};
- public void ScriptMain(ScriptInterface bot) {
- for (int i = 0; i < 5; i++) {
- bot.Skills.Add(i, 1f);
- }
- bot.Skills.StartTimer();
- bot.Options.SafeTimings = true;
- bot.Options.InfiniteRange = true;
- bot.Options.DisableFX = true;
- bot.Options.PrivateRooms = true;
- bot.Options.ExitCombatBeforeQuest = true;
- for (int i = 0; i < REWARDS.Length; i++) {
- bot.Drops.Add(REWARDS[i]);
- }
- bot.Drops.RejectElse(true);
- bot.Drops.Start();
- int count = 0;
- int amount = 100;
- while ( count < amount) {
- bot.Quests.EnsureAccept(this.QUESTID)
- grindEnemyForItem(bot, "mobius", "Fire Imp", "Imp Flame", 3, true);
- grindEnemyForItem(bot, "mobius", "Slugfit", "Slugfit's Horns", 5, true);
- grindEnemyForItem(bot, "tercessuinotlim", "Dark Makai", "Makai Fang", 5, true);
- grindEnemyForItem(bot, "faerie", "Cyclops Warlord", "Cyclops Horn", 3, true);
- grindEnemyForItem(bot, "greenguardwest", "Big Bad Board", "Wereboar Tusk", 2, true);
- if (bot.Quests.EnsureComplete(this.QUESTID){ i++; }
- }
- bot.Drops.Stop();
- }
- public void grindEnemyForItem(ScriptInterface bot, string location, string enemy, string item, int quantity, bool istemp) {
- if (bot.Map.Name != location) bot.Player.Join(location, "Enter", "Spawn");
- bot.Player.HuntForItem(enemy, item, quantity, istemp);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment