public async Task OnEnterZoneAsync(L2Zone z) { if (ActiveZones.ContainsKey(z.ZoneId)) { return; } if (this is L2Player) { await((L2Player)this).SendMessageAsync($"entered zone {z.Name}"); } ActiveZones.Add(z.ZoneId, z); z.OnEnter(this); await RevalidateZoneAsync(z); await ValidateZoneCompassAsync(); }
public void OnEnterZone(L2Zone z) { if (ActiveZones.ContainsKey(z.ZoneId)) { return; } if (this is L2Player) { ((L2Player)this).SendMessage($"entered zone {z.Name}"); } ActiveZones.Add(z.ZoneId, z); z.OnEnter(this); RevalidateZone(z); ValidateZoneCompass(); }