Advertisement
shottah

RBOT | Evil Rep Bot

Jun 15th, 2018
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.01 KB | None | 0 0
  1. using RBot;
  2.  
  3. public class Script {
  4.  
  5.     public void ScriptMain(ScriptInterface bot){
  6.         bot.Skills.Add(1, 1f);
  7.         bot.Skills.Add(2, 1f);
  8.         bot.Skills.Add(3, 1f);
  9.         bot.Skills.Add(4, 1f);
  10.         bot.Skills.StartTimer();
  11.        
  12.         bot.Options.ExitCombatBeforeQuest = true;
  13.         bot.Options.SafeRelogin = true;
  14.         bot.Options.SafeTimings = true;
  15.         bot.Options.DisableFX = true;
  16.         bot.Options.LagKiller = true;
  17.         bot.Options.PrivateRooms = true;
  18.         bot.Options.InfiniteRange = true;
  19.        
  20.         //Daily
  21.         bot.Quests.EnsureAccept(491);
  22.         if (!bot.Quests.IsDailyComplete(491)) DailyEvil(bot);
  23.        
  24.         // Rank 1 - Rank 3: 364, Rank 4 - Rank 10: 367
  25.         int q = 367;
  26.        
  27.         DoEvil(bot, q);
  28.     }
  29.    
  30.     public void DailyEvil (ScriptInterface bot) {
  31.    
  32.         if (bot.Map.Name != "citadel")
  33.             bot.Player.Join("citadel", "Enter", "Spawn");
  34.         if (bot.Player.Cell != "Enter")
  35.             bot.Player.Jump("Enter", "Spawn");
  36.            
  37.         if (!bot.Quests.CanComplete(491)) {
  38.             bot.Player.HuntForItem("Inquisitor Guard", "Inquisitor Contract", 7, true, true);
  39.         }
  40.        
  41.         if (bot.Quests.CanComplete(491)) bot.Quests.EnsureComplete(491);
  42.    
  43.     }
  44.    
  45.     public void DoEvil (ScriptInterface bot, int q) {
  46.         if (q==367) {
  47.             if (bot.Map.Name != "castleundead")
  48.                 bot.Player.Join("castleundead-1e99", "Enter", "Spawn");
  49.             else
  50.                 bot.Player.Jump("Enter", "Spawn");
  51.         } else if (q==364) {
  52.             if (bot.Map.Name != "swordhavenbridge")
  53.                 bot.Player.Join("swordhavenbridge-1e99", "Enter", "Spawn");
  54.             else
  55.                 bot.Player.Jump("Enter", "Spawn");
  56.         }
  57.    
  58.         while (!bot.ShouldExit()) {
  59.             if (!bot.Quests.IsInProgress(q)) bot.Quests.EnsureAccept(q);
  60.             while (!bot.Quests.CanComplete(q)) {
  61.                 if (q==367) {
  62.                     bot.Player.HuntForItem("Skeletal Warrior|Skeletal Viking", "Replacement Tibia", 6, true, true);
  63.                     bot.Player.HuntForItem("Skeletal Warrior|Skeletal Viking", "Phalanges", 3, true, true);
  64.                 } else if (q==364)
  65.                     bot.Player.HuntForItem("Slime|Purple Slime", "Youthanize", 1, true, true);
  66.             }
  67.             if (bot.Quests.CanComplete(q)) bot.Quests.EnsureComplete(q);
  68.         }
  69.     }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement