Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RBot;
- using System.Windows.Forms;
- public class Script {
- public static readonly string [] CORE = {"Diamond of Nulgath", "Tainted Gem", "Dark Crystal Shard", "Unidentified 13", "Dessicated Heart", "Legion Blade", "Archfiend's Favor", "Nulgath's Approval",
- "Cubes", "Escherion's Chain", "Defeated Makai", "Strand of Vath's Hair", "O-dokuro's Tooth", "Aracara's Fang", "Hydra Scale", "Essence of Nulgath", "Gem of Nulgath", "Totem of Nulgath",
- "Fragment of Chaos", "Blood Gem of the Archfiend"};
- public static readonly int TotemID = 5357;
- public static readonly int GemNulID = 6136;
- public void ScriptMain(ScriptInterface bot){
- bot.Events.PlayerDeath += (a) => {
- bot.Schedule(11000, (b) => {
- bot.Player.Jump("Enter", "Spawn");
- ScriptManager.RestartScript();
- });
- };
- bot.Skills.Add(1, 1f);
- bot.Skills.Add(2, 1f);
- bot.Skills.Add(3, 1f);
- bot.Skills.Add(4, 1f);
- bot.Skills.StartTimer();
- bot.Options.ExitCombatBeforeQuest = true;
- bot.Options.DisableFX = true;
- bot.Options.SafeTimings = true;
- bot.Options.RestPackets = true;
- foreach (string s in CORE) {
- bot.Drops.Add(s);
- }
- bot.Drops.RejectElse = true;
- bot.Drops.Start();
- bot.Player.LoadBank();
- bot.Inventory.BankAllCoinItems();
- if (!bot.Bank.Contains("Diamond of Nulgath", 200) && !bot.Inventory.Contains("Diamond of Nulgath", 200)) {
- for (int i = 3; i < 8; i++) {
- if (bot.Bank.Contains(CORE[i]))
- bot.Bank.ToInventory(CORE[i]);
- }
- bot.Bank.ToInventory("Diamond of Nulgath");
- Diamonds(bot, 200);
- bot.Inventory.BankAllCoinItems();
- }
- if (!bot.Bank.Contains("Tainted Gem", 200) && !bot.Inventory.Contains("Tainted Gem", 200)) {
- bot.Inventory.BankAllCoinItems();
- bot.Bank.ToInventory("Tainted Gem");
- bot.Bank.ToInventory("Cubes");
- TaintedGems(bot, 200);
- bot.Inventory.BankAllCoinItems();
- }
- if (!bot.Bank.Contains("Gem of Nulgath", 150) && !bot.Inventory.Contains("Gem of Nuglath", 150)) {
- bot.Bank.ToInventory("Gem of Nulgath");
- bot.Bank.ToInventory("Essence of Nulgath");
- bot.Bank.ToInventory("Defeated Makai");
- Voucher_4778(bot, "Gem of Nulgath", GemNulID ,150);
- }
- if (!bot.Bank.Contains("Totem of Nulgath", 15) && !bot.Inventory.Contains("Totem of Nulgath", 15)) {
- bot.Bank.ToInventory("Totem of Nulgath");
- bot.Bank.ToInventory("Essence of Nulgath");
- bot.Bank.ToInventory("Defeated Makai");
- Voucher_4778(bot, "Totem of Nulgath", TotemID , 15);
- }
- if (!bot.Bank.Contains("Blood Gem of the Archfiend", 30) && !bot.Inventory.Contains("Blood Gem of the Archfiend", 30)) {
- bot.Bank.ToInventory("Blood Gem of the Archfiend");
- bot.Bank.ToInventory("Fragment of Chaos");
- bot.Bank.ToInventory("Tendurrr the Assistant");
- BloodGem(bot, 30);
- bot.Inventory.BankAllCoinItems();
- }
- if (!bot.Bank.Contains("Dark Crystal Shard", 200) && !bot.Inventory.Contains("Dark Crystal Shard", 200)) {
- for (int i = 9; i < 15; i++) {
- if (bot.Bank.Contains(CORE[i]))
- bot.Bank.ToInventory(CORE[i]);
- }
- bot.Bank.ToInventory("Essence of Nulgath");
- bot.Bank.ToInventory("Dark Crystal Shard");
- DarkCrystalShard(bot, 200);
- bot.Inventory.BankAllCoinItems();
- }
- bot.Drops.Stop();
- }
- public void Diamonds(ScriptInterface bot, int quantity){
- if (bot.Inventory.Contains("Diamond of Nulgath", quantity)) return;
- if (bot.Map.Name != "evilwarnul")
- bot.Player.Join("evilwarnul-1e99", "r2", "Up");
- if (bot.Player.Cell != "r2")
- bot.Player.Jump("r2", "Up");
- bot.Player.SetSpawnPoint();
- while(!bot.Inventory.Contains("Diamond of Nulgath", quantity) && !bot.ShouldExit()){
- if (!bot.Quests.IsInProgress(2219))
- bot.Quests.EnsureAccept(2219);
- if (!bot.Quests.CanComplete(2219))
- while (!bot.Inventory.Contains("Dessicated Heart", 20) ||
- !bot.Inventory.Contains("Legion Blade", 1) || !bot.Inventory.ContainsTempItem("Legion Champion Medal", 5) ||
- !bot.Inventory.ContainsTempItem("Undead Skull", 3) || !bot.Inventory.ContainsTempItem("Legion Helm", 5)) {
- if (bot.Monsters.Exists("Skull Warrior"))
- bot.Player.Kill("Skull Warrior");
- if (bot.Monsters.Exists("Skeletal Warrior"))
- bot.Player.Kill("Skeletal Warrior");
- else
- bot.Player.Kill("*");
- }
- if (bot.Quests.CanComplete(2219)) {
- bot.Player.WalkTo(170,407);
- bot.Player.WalkTo(141, 228);
- bot.Sleep(1000);
- bot.Quests.EnsureComplete(2219);
- bot.Player.Jump("r2", "Up");
- }
- }
- }
- public void TaintedGems(ScriptInterface bot, int quantity){
- if (bot.Inventory.Contains("Tainted Gem", quantity)) return;
- while (!bot.Inventory.Contains("Tainted Gem", quantity)) {
- if (!bot.Quests.IsInProgress(569))
- bot.Quests.EnsureAccept(569);
- if (bot.Map.Name != "boxes") {
- bot.Player.Join("boxes-9999", "Enter", "Spawn");
- bot.Sleep(500);
- bot.Player.Jump("Fort2", "Right");
- bot.Sleep(500);
- bot.Player.WalkTo(879, 290);
- bot.Player.WalkTo(635, 301);
- }
- while (!bot.Inventory.Contains("Cubes", 500)) {
- bot.Player.Kill("*");
- }
- bot.Player.Jump("Enter", "Spawn");
- bot.Player.Join("mountfrost-1e99", "War", "Left");
- while (!bot.Inventory.ContainsTempItem("Ice Cubes", 6)) {
- bot.Player.Kill("*");
- }
- bot.Player.Jump("Enter", "Spawn");
- while (bot.Quests.CanComplete(569)) {
- bot.Quests.EnsureComplete(569);
- bot.Quests.EnsureAccept(569);
- bot.Sleep(1000);
- }
- bot.Player.Jump("War", "Left");
- }
- }
- public void Voucher_4778 (ScriptInterface bot, string item, int id, int quantity=1) {
- bot.Bank.ToInventory(item);
- if (quantity == 1) {
- if (!bot.Quests.IsInProgress(4778)) bot.Quests.EnsureAccept(4778);
- Makai(bot, "Essence of Nulgath", 60);
- if (bot.Quests.CanComplete(4778)) bot.Quests.EnsureComplete(4778, id);
- } else {
- while (!bot.Inventory.Contains(item, quantity)) {
- if (!bot.Quests.IsInProgress(4778)) bot.Quests.EnsureAccept(4778);
- Makai(bot, "Essence of Nulgath", 60);
- if (bot.Quests.CanComplete(4778)) bot.Quests.EnsureComplete(4778, id);
- }
- }
- bot.Inventory.ToBank(item);
- }
- public void DoVoucher(ScriptInterface bot, int quantity) {
- if (!bot.Inventory.Contains("Gem of Nulgath", 200) && !bot.Bank.Contains("Gem of Nulgath", 200)) Voucher_4778(bot, "Gem of Nulgath", GemNulID, quantity);
- else if (!bot.Inventory.Contains("Totem of Nulgath", 15) && !bot.Bank.Contains("Totem of Nulgath", 15)) Voucher_4778(bot, "Totem of Nulgath", TotemID, quantity);
- return;
- }
- public void DarkCrystalShard(ScriptInterface bot, int quantity) {
- if (bot.Inventory.Contains("Dark Crystal Shard", quantity)) return;
- while (!bot.Inventory.Contains("Dark Crystal Shard", quantity)) {
- if (!bot.Quests.IsInProgress(570)) bot.Quests.EnsureAccept(570);
- if (!bot.Inventory.Contains("Defeated Makai", 50)) Makai(bot, "Defeated Makai", 50);
- if (bot.Inventory.Contains("Essence of Nulgath", 60)) DoVoucher(bot, 1);
- if (!bot.Inventory.Contains("Escherion's Chain")) Escherion(bot);
- if (!bot.Inventory.Contains("O-dokuro's Tooth")) Odokuro(bot);
- if (!bot.Inventory.Contains("Strand of Vath's Hair")) Vath(bot);
- if (!bot.Inventory.Contains("Aracara's Fang")) Aracara(bot);
- if (!bot.Inventory.Contains("Hydra Scale")) Hydra(bot);
- if (!bot.Inventory.ContainsTempItem("Tibicenas' Chain")) Tibicenas(bot);
- if (bot.Quests.CanComplete(570)) bot.Quests.EnsureComplete(570);
- }
- bot.Drops.Stop();
- }
- public void Makai (ScriptInterface bot, string item, int quantity) {
- if (bot.Inventory.Contains(item, quantity)) return;
- if (bot.Map.Name != "tercessuinotlim") {
- bot.Player.Join("Citadel-1e99", "m22", "Right");
- if (bot.Map.Name != "tercessuinotlim") {
- bot.Player.Join("Tercessuinotlim", "m2", "Left");
- bot.Sleep(2000);
- }
- } else {
- bot.Player.Jump("m2", "Left");
- }
- bot.Player.SetSpawnPoint();
- bot.Player.WalkTo(313,315);
- while (!bot.Inventory.Contains(item, quantity)) {
- bot.Player.Kill("Dark Makai");
- }
- }
- public void Escherion (ScriptInterface bot) {
- if (bot.Inventory.Contains("Escherion's Chain")) return;
- if (bot.Map.Name != "escherion") bot.Player.Join("Escherion", "Boss", "Left");
- if (bot.Player.Cell != "Boss") bot.Player.Jump("Boss", "Left");
- while(!bot.Inventory.Contains("Escherion's Chain")){
- if (bot.Monsters.Exists("Staff of Inversion")) bot.Player.Kill("Staff of Inversion");
- else bot.Player.Kill("Escherion");
- }
- bot.Player.Jump("Enter", "Spawn");
- }
- public void Odokuro (ScriptInterface bot) {
- if (bot.Inventory.Contains("O-dokuro's Tooth")) return;
- if (bot.Map.Name != "yokaiwar") bot.Player.Join("Yokaiwar", "Boss", "Left");
- if (bot.Player.Cell != "Boss") bot.Player.Jump("Boss", "Left");
- while(!bot.Inventory.Contains("O-dokuro's Tooth")){
- bot.Player.Kill("O-Dokuro's Head");
- }
- bot.Player.Jump("Enter", "Spawn");
- }
- public void Vath (ScriptInterface bot) {
- if (bot.Inventory.Contains("Strand of Vath's Hair")) return;
- if (bot.Map.Name != "stalagbite") bot.Player.Join("Stalagbite", "r2", "Left");
- if (bot.Player.Cell != "r2") bot.Player.Jump("r2", "Left");
- bot.Player.SetSpawnPoint();
- while(!bot.Inventory.Contains("Strand of Vath's Hair")){
- if (bot.Monsters.Exists("Stalagbite")) bot.Player.Kill("Stalagbite");
- else bot.Player.Kill("Vath");
- }
- bot.Player.Jump("Enter", "Spawn");
- }
- public void Aracara (ScriptInterface bot) {
- if (bot.Inventory.Contains("Aracara's Fang")) return;
- if (bot.Map.Name != "faerie") bot.Player.Join("Faerie", "TopRock", "Center");
- if (bot.Player.Cell != "TopRock") bot.Player.Jump("TopRock", "Center");
- while(!bot.Inventory.Contains("Aracara's Fang")){
- bot.Player.Kill("Aracara");
- }
- bot.Player.Jump("Enter", "Spawn");
- }
- public void Hydra (ScriptInterface bot) {
- if (bot.Inventory.Contains("Hydra Scale")) return;
- if (bot.Map.Name != "hydra") bot.Player.Join("Hydra", "Boss", "Left");
- if (bot.Player.Cell != "Boss") bot.Player.Jump("Boss", "Left");
- bot.Player.Kill("Hydra Head");
- bot.Player.Jump("Enter", "Spawn");
- }
- public void Tibicenas (ScriptInterface bot) {
- if (bot.Inventory.ContainsTempItem("Tibicenas' Chain")) return;
- if (bot.Map.Name != "djinn") bot.Player.Join("Djinn", "r5", "Center");
- if (bot.Player.Cell != "r5") bot.Player.Jump("r5", "Center");
- bot.Player.SetSpawnPoint();
- while(!bot.Inventory.ContainsTempItem("Tibicenas' Chain")){
- while (bot.Map.PlayerCount < 2) bot.Sleep(1000);
- bot.Player.Kill("Tibicenas");
- bot.Player.Rest(true);
- bot.Wait.ForFullyRested();
- }
- bot.Player.Jump("Enter", "Spawn");
- }
- public void BloodGem (ScriptInterface bot, int quantity) {
- if (bot.Inventory.Contains("Blood Gem of the Archfiend", 30)) return;
- while (!bot.Inventory.Contains("Blood Gem of the Archfiend", 30)) {
- if (!bot.Quests.IsInProgress(3743)) bot.Quests.EnsureAccept(3743);
- if (!bot.Inventory.Contains("Fragment of Chaos", 80)) ChaosFragment(bot, 80);
- if (!bot.Inventory.Contains("Tendurrr the Assistant")) Makai(bot, "Tendurrr the Assistant", 1);
- if (!bot.Inventory.ContainsTempItem("Broken Betrayal Blade", 8)) BrokenBetrayal(bot);
- if (bot.Quests.CanComplete(3743)) bot.Quests.EnsureComplete(3743);
- }
- }
- public void ChaosFragment (ScriptInterface bot, int quantity) {
- if (bot.Inventory.Contains("Fragment of Chaos", 80)) return;
- if (bot.Map.Name != "lair")
- bot.Player.Join("lair--6969", "Enter", "Spawn");
- else
- bot.Player.Jump("Enter", "Spawn");
- bot.Player.SetSpawnPoint();
- while (!bot.Inventory.Contains("Fragment of Chaos", 80)) {
- bot.Player.Kill("*");
- }
- bot.Sleep(2000);
- }
- public void BrokenBetrayal (ScriptInterface bot) {
- if (bot.Inventory.ContainsTempItem("Broken Betrayal Blade", 8)) return;
- if (bot.Map.Name != "evilwarnul")
- bot.Player.Join("evilwarnul-9999", "r12", "Left");
- else
- bot.Player.Jump("r12", "Left");
- bot.Bank.ToInventory("Archfiend's Favor");
- bot.Bank.ToInventory("Nulgath's Approval");
- while(!bot.Inventory.ContainsTempItem("Broken Betrayal Blade", 8)){
- if (bot.Monsters.Exists("Legion Fenrir"))
- bot.Player.Kill("Legion Fenrir");
- else
- bot.Player.Kill("*");
- }
- bot.Inventory.ToBank("Archfiend's Favor");
- bot.Inventory.ToBank("Nulgath's Approval");
- bot.Player.Jump("Enter", "Spawn");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement