to make the guards kill the mods this error occurs, pulled the item not disappear.
The error was found in Entities.cs
go
Quote:
public void TimerElapsed(object source, ElapsedEventArgs e)
{
if (DateTime.Now > LastTargetting.AddMilliseconds(2000))
GetTarget();
if (Target != null)
if (Target.MyClient == null || !Target.MyClient.There || !Target.Alive || !Alive || Target.LocMap != Map)
Target = null;
if (Target != null)
if (MType != 1 && MType != 4 && MType != 5 && MType != 6)
if (Target.Flying)
Target = null;
if (Target != null)
{
Move();
}
else if (MType == 1)
{
Tgt = Other.MobNearest((uint)PosX, (uint)PosY, (uint)Map);
if (Tgt != null && Tgt.Alive == true && Tgt.MType != 1 && MyMath.PointDistance(PosX, PosY, Tgt.PosX, Tgt.PosY) <= 10)
Move2();
}
if (!Alive)
{
if (Revive == false)
{
if (DateTime.Now > Death.AddMilliseconds(3000))
Dissappear();
}
else
{
if (MType == 2)
{
if (Map == 1015)
{
if (DateTime.Now > Death.AddMilliseconds(60000))
ReSpawn();
}
if (Map != 1015)
{
if (DateTime.Now > Death.AddMilliseconds(600000))
ReSpawn();
}
}
if (MType == 0)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 1)
{
if (DateTime.Now > Death.AddMilliseconds(250))
ReSpawn();
}
if (MType == 4)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 3)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 5)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
if (MType == 6)
{
if (DateTime.Now > Death.AddMilliseconds(25000))
ReSpawn();
}
}
}
}
|
Does anyone know how to fix it?:confused: