Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RBot;
- /**
- Gathering Unstable Essences (Legend) by imbasu
- Request by Csicskafaszgeci
- Requirements:
- - Evil Rank 10
- Rewards:
- - 10,000 Gold
- - 10,000 Exp
- You will receive one of the following items:
- - Void Aura
- - Void Aura x2
- - Void Aura x5
- - Void Aura x10
- */
- public class Script {
- // ----- DECLARE AND INITIALIZE GLOBAL QUEST DATA ----- //
- public static readonly string [] materials = {"Mirror Essence", "Twisted Essence", "Transposed Essence"};
- public static readonly string [] ENEMIES = {
- "Fire Leech|Grim Widow|RedDeath Moglin|Swamp Wraith",
- "Angry Snackistopheles|Furious Fishizzle|Raging Spid-Squider",
- "Zombie King Alteon"
- };
- public static readonly string [] LOCATIONS = {"reddeath", "neverworldb", "doomwar"};
- public static readonly int QUESTID = 4438;
- public static readonly string [] COMPONENTS = {"Mirror Essence", "Twisted Essence", "Transposed Essence"};
- public static readonly int [] QUANTITIES = {175, 25, 1};
- public static readonly string REWARD = "Void Aura";
- public static readonly int REWARD_MAX = 7500;
- // --------------------------------------------------- //
- public void ScriptMain(ScriptInterface bot){
- bot.Skills.StartTimer();
- bot.Options.SafeTimings = true;
- bot.Options.RestPackets = true;
- bot.Options.DisableFX = true;
- bot.Options.InfiniteRange = true;
- bot.Options.PrivateRooms = true;
- bot.Options.LagKiller = false;
- bot.Options.Magnetise = true;
- bot.Options.HuntDelay = 1650;
- bot.Drops.Add(Script.REWARD);
- bot.Drops.Start();
- bot.Player.LoadBank();
- // Pull Components from Bank
- foreach (string s in Script.COMPONENTS) {
- if (!bot.Inventory.Contains(s))
- bot.Bank.ToInventory(s);
- }
- // Pull Reward from Bank
- if (!bot.Inventory.Contains(Script.REWARD) && bot.Bank.Contains(Script.REWARD))
- bot.Bank.ToInventory(Script.REWARD);
- // Do quest until max number of reward item is achieved.
- while (!bot.Inventory.Contains(Script.REWARD, Script.REWARD_MAX)) {
- bot.Quests.EnsureAccept(Script.QUESTID);
- for (int i = 0; i < Script.COMPONENTS.Length; i++) {
- execute(bot, Script.LOCATIONS[i], Script.ENEMIES[i], Script.COMPONENTS[i], 1);
- }
- bot.Quests.EnsureComplete(Script.QUESTID);
- bot.Sleep(1000);
- }
- bot.Drops.Stop();
- }
- public void execute (ScriptInterface bot, string location, string enemies, string item, int quantity) {
- if (bot.Map.Name != location) bot.Player.Join(location, "Enter", "Spawn");
- bot.Sleep(2000);
- while (bot.Inventory.GetQuantity(item) < quantity) {
- bot.Player.Hunt(enemies);
- if (bot.Player.DropExists(item)) bot.Player.Pickup(item);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement