shottah

RBOT | Spellcrafting (Elemental Ink)

Jun 20th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script{
  4.  
  5.     public void ScriptMain(ScriptInterface bot){
  6.         bot.Skills.StartTimer();
  7.        
  8.         bot.Options.SafeTimings = true;
  9.         bot.Options.RestPackets = true;
  10.         bot.Options.PrivateRooms = true;
  11.        
  12.         while (!bot.ShouldExit()) {
  13.             bot.Player.Join("mobius");
  14.             while (!bot.Inventory.Contains("Mystic Quills", 10)) {
  15.                 bot.Player.Hunt("Slugfit");
  16.                 bot.Player.Pickup("Mystic Quills");
  17.             }
  18.            
  19.             bot.Player.Join("spellcraft");
  20.             while (bot.Inventory.Contains("Mystic Quills") && !bot.Inventory.Contains("Elemental Ink", 50)) {
  21.                 if (bot.Inventory.Contains("Mystic Quills",2))
  22.                     bot.Shops.BuyItem("Elemental Ink");
  23.                 else
  24.                     break;
  25.                 bot.Sleep(1500);
  26.             }
  27.            
  28.             while (bot.Inventory.Contains("Elemental Ink")) {
  29.                 bot.SendPacket("%xt%zm%crafting%1%spellOnStart%5%1555%Spell%");
  30.                 bot.SendPacket("%xt%zm%crafting%1%spellComplete%1%2313%Purge%");
  31.                 bot.Sleep(1500);
  32.             }
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment