shottah

RBOT | Gem of Nulgath

Jul 9th, 2018
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.96 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script {
  4.  
  5.     public void ScriptMain(ScriptInterface bot){
  6.         bot.Options.SafeTimings = true;
  7.         bot.Options.RestPackets = true;
  8.         bot.Skills.StartTimer();
  9.        
  10.         bot.Bank.ToInventory("Gem of Nulgath");
  11.         bot.Bank.ToInventory("Unidentified 13");
  12.        
  13.         int amt = 200;
  14.        
  15.         if (!bot.Inventory.Contains("Gem of Nulgath", amt)) {
  16.             aux_GemOfNulgath (bot, amt);
  17.         }
  18.        
  19.     }
  20.    
  21.     public void aux_GemOfNulgath (ScriptInterface bot, int amt) {
  22.         if (bot.Inventory.Contains("Unidentified 13")) Voucher(bot, amt);
  23.         else {
  24.             bot.Log("Unidentified 13 REQUIRED ... Doing Larvae");
  25.             Larvae (bot, 1);
  26.             Voucher (bot, amt);
  27.         }
  28.     }
  29.    
  30.     public void Voucher (ScriptInterface bot, int amt) {
  31.         while (!bot.Inventory.Contains("Gem of Nulgath", amt)) {
  32.             if (!bot.Quests.IsInProgress(4778)) bot.Quests.EnsureAccept(4778);
  33.             Makai(bot, "Essence of Nulgath", 60);
  34.             if (bot.Quests.CanComplete(4778)) bot.Quests.EnsureComplete(4778, 6136);
  35.         }
  36.     }
  37.    
  38.     public void Makai (ScriptInterface bot, string item, int amt) {
  39.         if (bot.Inventory.Contains(item, amt)) return;     
  40.        
  41.         if (bot.Map.Name != "tercessuinotlim") {
  42.             bot.Player.Join("Citadel-1e99", "m22", "Right");
  43.            
  44.             if (bot.Map.Name != "tercessuinotlim") {
  45.                 bot.Player.Join("Tercessuinotlim--9999", "m2", "Left");
  46.                 bot.Sleep(2000);
  47.             }
  48.         } else {
  49.             bot.Player.Jump("m2", "Left");
  50.         }
  51.        
  52.         bot.Player.SetSpawnPoint();
  53.         bot.Player.WalkTo(313,315);
  54.         while (!bot.Inventory.Contains(item, amt)) {
  55.             bot.Player.Kill("Dark Makai");
  56.             bot.Player.Pickup(item);
  57.             bot.Player.RejectExcept(item);
  58.         }
  59.         bot.Player.Jump("Enter", "Spawn");
  60.        
  61.     }
  62.    
  63.     public void ManaGolem(ScriptInterface bot, int amt){
  64.         if (bot.Inventory.Contains("Unidentified 13", amt)) return;
  65.        
  66.         string whitelist = {"Unidentified 13", "Gem of Nulgath"};
  67.        
  68.         while (bot.Inventory.Contains("Unidentified 13", amt)) {
  69.             if (!bot.Quests.IsInProgress(2566)) {
  70.                 bot.Quests.Accept(2566);
  71.             } else {
  72.                 bot.Player.Join("gilead", "r8", "Down");
  73.                 bot.Player.SetSpawnPoint();
  74.                 while (bot.Inventory.ContainsTempItem("Charged Mana Energy for Nulgath", 5) == false) {
  75.                     bot.Player.Kill("Mana Elemental");
  76.                     bot.Player.RejectExcept(whitelist);
  77.                 }
  78.  
  79.                 bot.Player.Join("elemental", "r5", "Down");
  80.                 bot.Player.SetSpawnPoint();
  81.                 while (bot.Inventory.ContainsTempItem("Mana Energy for Nulgath", 1) == false) {
  82.                     bot.Player.Kill("Mana Golem");
  83.                     bot.Player.RejectExcept(whitelist);
  84.                 }
  85.  
  86.                 bot.Player.Jump("Enter", "Spawn");
  87.                 while (bot.Quests.IsInProgress(2566)) {
  88.                     bot.Quests.Complete(2566);
  89.                 }
  90.  
  91.                 bot.Player.Pickup(whitelist);
  92.                 bot.Player.RejectExcept(whitelist);
  93.             }
  94.         }
  95.     }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment