public static void scrybeorbuse() { if (!RMenu.checkbox("scrybR")) { return; } var target = TargetSelector.GetTarget(R.Range, DamageType.Magical); if (target == null) { return; } if (Scryb.IsOwned(user) && (target.IsDashing() || target.Distance(R.GetPrediction(target).CastPosition) > 150 || NavMesh.IsWallOfGrass(Prediction.Position.PredictUnitPosition(target, 150).To3D(), 50))) { Scryb.Cast(R.GetPrediction(target).CastPosition); } }
public static void ScrybingOrb() { var level = MiscMenu.slider("scrybebuylevel"); var buy = MiscMenu.checkbox("scrybebuy"); if (!buy) { return; } if (hasbought) { return; } if (!Scryb.IsOwned(user) && user.IsInShopRange() && user.Level >= level) { Scryb.Buy(); hasbought = true; } }