Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Revenant check
- //check to see if there are revenant types around
- List<Item> RevenantType = Find.FindItems(400).OrderBy(s => s.Distance).ToList();
- foreach (Item revenant in RevenantType)
- {
- //loop through each type and check if it's a revenant
- if (revenant.Name == "a revenant" && revenant.Distance <= 4) //and if it's close enough to dispel
- {
- //keep trying until the bastard is gone!
- while (revenant.IsExists)
- {
- Console.WriteLine("Revenant found within range, casting Dispel Evil.");
- Self.Cast("Dispel Evil");
- Script.Wait(750);
- }
- Console.WriteLine("Whew, he's gone!");
- }
- }
- #endregion Revenant check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement