Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 07:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] 5095 Guards & Revive Problem.

Discussion on [Help] 5095 Guards & Revive Problem. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
[Help] 5095 Guards & Revive Problem.

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:

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
And what I have in that line is this code(the error is in red):

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;
                                    }
                                }
                            }
                        }
                    }
any ideas??? Help would be appreciated!
killersub is offline  
Old 10/04/2010, 02:37   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Try debugging it and see if the map is actually valid.

(Click to the left of the line on the gray margin - a red dot should appear and the line should be highlighted in red. Then debug (f5) the server and do what is causing the bug. The server should freeze and now switch back to visual studio and the line should be highlighted yellow. Hold your cursor over [Map] and see what the value of Map is. Post it here/look up to see if its valid. If it isn't valid - find the source of setting an invalid map. If it is valid, you're not loading the dmap for said valid map).
_tao4229_ is offline  
Thanks
3 Users
Old 10/04/2010, 22:24   #3
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by _tao4229_ View Post
Try debugging it and see if the map is actually valid.

(Click to the left of the line on the gray margin - a red dot should appear and the line should be highlighted in red. Then debug (f5) the server and do what is causing the bug. The server should freeze and now switch back to visual studio and the line should be highlighted yellow. Hold your cursor over [Map] and see what the value of Map is. Post it here/look up to see if its valid. If it isn't valid - find the source of setting an invalid map. If it is valid, you're not loading the dmap for said valid map).
haha thanks buddy boy, I didn't really have time to fix the source so I just asked. I fixed my problem anyways.

#request close
killersub is offline  
Reply


Similar Threads Similar Threads
boner/revive necro d2nt problem
06/28/2010 - Diablo 2 Programming - 6 Replies
mein bonernecro hat ein problem mit seinen revives. jedesmal wenn ich durch die gegend porte, knubbeln sich die summons alle auf dem necro und greifen nicht an. wie kann ich das fixen?
[Help]About making Revive Guards
06/26/2010 - CO2 Private Server - 1 Replies
Hello every one i have database 5095 in the cq_monster tables if any one can help me wat is the value to put in attack_user table to hit a dead player ( ghost player )
[Help]About making Revive Guards
06/25/2010 - CO2 Private Server - 0 Replies
Hello every one i have database 5095 in the cq_monster tables if any one can help me wat is the value to put in attack_user table to hit a dead player ( ghost player )
[Problem] With Guards attcking Rb guards
07/03/2009 - CO2 Private Server - 5 Replies
Ok i seem to be having a problem with Guards Attcking Rb guards so i had to take out where guards attck mobs is there anyway i can fix this?
[Need Help] Made stigma guards need help with revive guards
09/17/2008 - CO2 Private Server - 2 Replies
hey i made stigma guards (guards that are stigging you) but i need help with revive guards, the guards are using Pray skill (to revive) but how to make it so they use the skill when you are death? because they do nothing when you are death (they can only attack alive things;s) THIS IS NOT FOR A PRIVATE SERVER I PUBLIC MY SOURCE WHEN IM DONE ;)



All times are GMT +1. The time now is 07:05.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.