Skip to content

Instantly share code, notes, and snippets.

@TheManta
TheManta / Create GrindArea.cs
Last active June 11, 2024 17:34
RebornBuddy Console Snippets
int radius = 30;
var targets = GameObjectManager.GetObjectsOfType<BattleCharacter>()
.Where(bc => bc.IsTargetable && bc.CanAttack)
.GroupBy(bc => bc.NpcId)
.Select(group => group.FirstOrDefault());
if(targets.Any())
{
var location = targets.Select(bc => bc.Location)