private static void Stealth_OnStealth(object sender, Stealth.OnStealthEventArgs e) { if (VHRMenu["dz191.vhr.misc"]["dz191.vhr.misc.general"]["reveal"].GetValue <MenuBool>().Value&& e.Sender.DistanceSquared(ObjectManager.Player) <= 360000 && e.IsStealthed && !e.Sender.IsMe) { if (Items.HasItem(PINK_WARD) && Items.CanUseItem(PINK_WARD)) { Items.UseItem(PINK_WARD, e.Sender.ServerPosition.Extend(ObjectManager.Player.ServerPosition, 400f)); } } }
void Stealth_OnStealth(Stealth.OnStealthEventArgs obj) { if (MenuHelper.isMenuEnabled("dz191.vhr.misc.general.reveal")) { if (obj.Sender.Distance(ObjectManager.Player) <= 600f && obj.IsStealthed) { if (Items.HasItem(2043) && Items.CanUseItem(2043)) { Items.UseItem(2043, obj.Sender.ServerPosition.Extend(ObjectManager.Player.ServerPosition, 400f)); } } } }