Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RBot;
- public class Script {
- public void ScriptMain(ScriptInterface bot){
- bot.Options.SafeTimings = true;
- bot.Options.RestPackets = true;
- bot.Skills.StartTimer();
- bot.Bank.ToInventory("Gem of Nulgath");
- bot.Bank.ToInventory("Unidentified 13");
- int amt = 200;
- if (!bot.Inventory.Contains("Gem of Nulgath", amt)) {
- aux_GemOfNulgath (bot, amt);
- }
- }
- public void aux_GemOfNulgath (ScriptInterface bot, int amt) {
- if (bot.Inventory.Contains("Unidentified 13")) Voucher(bot, amt);
- else {
- bot.Log("Unidentified 13 REQUIRED ... Doing Larvae");
- Larvae (bot, 1);
- Voucher (bot, amt);
- }
- }
- public void Voucher (ScriptInterface bot, int amt) {
- while (!bot.Inventory.Contains("Gem of Nulgath", amt)) {
- if (!bot.Quests.IsInProgress(4778)) bot.Quests.EnsureAccept(4778);
- Makai(bot, "Essence of Nulgath", 60);
- if (bot.Quests.CanComplete(4778)) bot.Quests.EnsureComplete(4778, 6136);
- }
- }
- public void Makai (ScriptInterface bot, string item, int amt) {
- if (bot.Inventory.Contains(item, amt)) return;
- if (bot.Map.Name != "tercessuinotlim") {
- bot.Player.Join("Citadel-1e99", "m22", "Right");
- if (bot.Map.Name != "tercessuinotlim") {
- bot.Player.Join("Tercessuinotlim--9999", "m2", "Left");
- bot.Sleep(2000);
- }
- } else {
- bot.Player.Jump("m2", "Left");
- }
- bot.Player.SetSpawnPoint();
- bot.Player.WalkTo(313,315);
- while (!bot.Inventory.Contains(item, amt)) {
- bot.Player.Kill("Dark Makai");
- bot.Player.Pickup(item);
- bot.Player.RejectExcept(item);
- }
- bot.Player.Jump("Enter", "Spawn");
- }
- public void ManaGolem(ScriptInterface bot, int amt){
- if (bot.Inventory.Contains("Unidentified 13", amt)) return;
- string whitelist = {"Unidentified 13", "Gem of Nulgath"};
- while (bot.Inventory.Contains("Unidentified 13", amt)) {
- if (!bot.Quests.IsInProgress(2566)) {
- bot.Quests.Accept(2566);
- } else {
- bot.Player.Join("gilead", "r8", "Down");
- bot.Player.SetSpawnPoint();
- while (bot.Inventory.ContainsTempItem("Charged Mana Energy for Nulgath", 5) == false) {
- bot.Player.Kill("Mana Elemental");
- bot.Player.RejectExcept(whitelist);
- }
- bot.Player.Join("elemental", "r5", "Down");
- bot.Player.SetSpawnPoint();
- while (bot.Inventory.ContainsTempItem("Mana Energy for Nulgath", 1) == false) {
- bot.Player.Kill("Mana Golem");
- bot.Player.RejectExcept(whitelist);
- }
- bot.Player.Jump("Enter", "Spawn");
- while (bot.Quests.IsInProgress(2566)) {
- bot.Quests.Complete(2566);
- }
- bot.Player.Pickup(whitelist);
- bot.Player.RejectExcept(whitelist);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment