Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 08:38

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

Advertisement



[Release] Fix MobSpawns (AnimeCO Source)

Discussion on [Release] Fix MobSpawns (AnimeCO Source) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
[Release] Fix MobSpawns (AnimeCO Source)

change the LoadMonterSpawns for this only:

Code:
public static void LoadMonsterSpawns()
        {
            lock (DatabaseConnection.Connection)
            {
                MySqlCommand Cmd = new MySqlCommand("SELECT * FROM `mobspawns`", DatabaseConnection.Connection);

                MySqlDataReader DR = Cmd.ExecuteReader();
                int TotalSpawns = 0;
                while (DR.Read())
                {
                    MonsterSpawn MS = new MonsterSpawn();
                    MS.Map = Convert.ToInt32(DR["Map"]);
                    MS.MobID = Convert.ToInt32(DR["ID"]);
                    MS.SpawnID = Convert.ToInt32(DR["UniSpawnID"]);
                    MS.SpawnNumber = Convert.ToInt32(DR["NumberToSpawnf"]);
                    MS.MaxSpawnNumber = MS.SpawnNumber;
                    TotalSpawns += MS.SpawnNumber;
                    MS.X = Convert.ToInt32(DR["x-start"]);
                    MS.XStop = Convert.ToInt32(DR["x-stop"]);
                    MS.Y = Convert.ToInt32(DR["y-start"]);
                    MS.YStop = Convert.ToInt32(DR["y-stop"]);
                    if (!Nano.MonsterSpawns.ContainsKey(MS.SpawnID))
                    {
                        Nano.MonsterSpawns.Add(MS.SpawnID, MS);
                    }
                }
                Console.WriteLine("[GameServer] Loaded " + Nano.MonsterSpawns.Count + " unique monster spawns.");
                Console.WriteLine("[GameServer] Will theoretically spawn " + TotalSpawns + " monsters into the world.");
                DR.Close();
            }
        }
12tails is offline  
Thanks
4 Users
Old 11/08/2009, 22:56   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 156
Received Thanks: 20
nice bro
_legitimate_ is offline  
Old 11/18/2009, 22:38   #3
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
nice
shadow8994 is offline  
Old 11/18/2009, 22:38   #4
 
elite*gold: 0
Join Date: Nov 2009
Posts: 149
Received Thanks: 22
Good work
#*=DarkAngeL=*# is offline  
Old 02/19/2010, 09:05   #5
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
Nice
sawickas is offline  
Reply


Similar Threads Similar Threads
[Request]MobSpawns
02/19/2010 - CO2 Private Server - 4 Replies
^^^^^^^
[help]Ayone have commands for animeco source?
10/22/2009 - CO2 Private Server - 2 Replies
If anyone one has commands for animeco source post here:D
[help]Dis City MobSpawns/Mobs
06/19/2009 - CO2 Private Server - 3 Replies
Well im about 95% done with dis city and all i have todo is add the mobspawns in but for dis city Part 2 & 3 can sombody please list the name of the monsters that spawn in there? Thanks, TheLeGend209 http://skynightco.com
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...



All times are GMT +2. The time now is 08:38.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.