Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RBot;
- public class Script {
- public static readonly string [] awe_item = {"Cape of Awe", "Armor of Awe", "Helm of Awe"};
- 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;
- bot.Player.LoadBank();
- foreach (string s in awe_item) {
- if (bot.Bank.Contains(s)) {
- bot.Bank.ToInventory(s);
- break;
- }
- }
- foreach (string s in awe_item) {
- if (bot.Inventory.Contains(s)) {
- bot.Player.EquipItem(s);
- break;
- }
- }
- // Daily Quest
- bot.Quests.EnsureAccept(489);
- if (!bot.Quests.IsDailyComplete(489)) DailyGood(bot);
- // Rank 1 - Rank 3: 369, Rank 4 - Rank 10: 372
- int q = 372;
- DoGood(bot, q);
- }
- public void DailyGood (ScriptInterface bot) {
- if (bot.Map.Name != "battleundera")
- bot.Player.Join("battleundera-1e99","Enter","Spawn");
- else
- bot.Player.Jump("Enter","Spawn");
- while (!bot.Quests.CanComplete(489)) {
- bot.Player.HuntForItem("Bone Terror|Lich|Skeletal Viking|Skeletal Ice Mage|Skeletal Warrior","Skeletal Army Contract", 6, true, true);
- }
- bot.Quests.EnsureComplete(489);
- }
- public void DoGood (ScriptInterface bot, int q) {
- if (q==372) {
- if (bot.Map.Name != "castleundead")
- bot.Player.Join("castleundead-1e99", "Enter", "Spawn");
- else
- bot.Player.Jump("Enter", "Spawn");
- } else if (q==369) {
- if (bot.Map.Name != "swordhavenbridge")
- bot.Player.Join("swordhavenbridge-1e99", "Enter", "Spawn");
- else
- bot.Player.Jump("Enter", "Spawn");
- }
- while (!bot.ShouldExit()) {
- if (!bot.Quests.IsInProgress(q)) bot.Quests.EnsureAccept(q);
- while (!bot.Quests.CanComplete(q)) {
- if (q==372)
- bot.Player.HuntForItem("Skeletal Warrior|Skeletal Viking", "Chaorrupted Skull", 5, true, true);
- else if (q==369)
- bot.Player.HuntForItem("Slime|Purple Slime", "Slime in a Jay", 6, true, true);
- }
- if (bot.Quests.CanComplete(q)) bot.Quests.EnsureComplete(q);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement