okay so I am fixing this coemu 5095 base (released from andyd) and added a ton of features and bug fixes to it...that's okay cuz its not the problem. but now I'm trying everything but when I walk for about 5 seconds a the guards continually kill me and kill me over and over again...I changed all the names in the source and in navicat my sql but still nothing...
Guards Error:
And what I have in that line is this code(the error is in red):
any ideas??? Help would be appreciated!
Guards Error:
Code:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary'2.get_Item<Tkey key>
at CoEmuV2.GameServer.Entities.Monster.AttackMove<Int32 Target, Boolean First> in Monster.cs line 840
Code:
if (this.Info.Name != "Watcher1")
{
if (this.Info.Name != "Watcher1")
{
[COLOR="Red"]DMap DMap = Nano.DMaps[Map];[/COLOR]
if (!DMap[X + AddX, Y + AddY, DMapObjectType.MOB])
{
trys++;
if (trys < 2)
{ ToDir = (byte)Nano.Rand.Next(1, 7); goto Go; }
Move = null;
Moving = false;
return;
}
else
{
if (Handler.PlaceFree(Map, X, Y, ToDir))
{
X += AddX;
Y += AddY;
ConquerPacket.ToLocal(ConquerPacket.Walk(ToDir, UID), X, Y, Map, 0, 0);
Move.Start();
}
else
{
trys2++;
if (trys2 < 2)
{ ToDir = (byte)Nano.Rand.Next(1, 7); goto Go; }
Move = null;
Moving = false;
return;
}
}
}
}
}