public void SpawnMe(int duration)
{
try
{
lock (Systems.clients)
{
for (int i = 0; i < Systems.clients.Count; i++)
{
try
{
Systems sys = Systems.clients[i];
if (this.x >= (sys.Character.Position.x - 50) && this.x <= ((sys.Character.Position.x - 50) + 100) && this.y >= (sys.Character.Position.y - 50) && this.y <= ((sys.Character.Position.y - 50) + 100) && this.Spawned(sys.Character.Information.UniqueID) == false)
{
this.Spawn.Add(sys.Character.Information.UniqueID);
sys.client.Send(Packet.ObjectSpawn(this));
}
}
catch (Exception ex)
{
Console.WriteLine("spez_obj SpawnMe error on index {1}/{2}: {0}", ex, i, Systems.clients.Count);
Systems.Debugger.Write(ex);
}
}
}
if (duration != 0) StartDeleteTimer(duration);
if (this.Name.Contains("HARMONY")) { StartHarmonyBuff(); }
}
catch (Exception ex)
{
Console.WriteLine("spez_obj SpawnMe error: {0}", ex);
Systems.Debugger.Write(ex);
}
}