Register for your free account! | Forgot your password?

You last visited: Today at 13:34

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

Advertisement



Release Spawns sistem for Hellmouth

Discussion on Release Spawns sistem for Hellmouth within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Release Spawns sistem for Hellmouth

Hi I hope you understand me, I do not know much English :P im mexican
ok...
1.-Open The proyet Hellmouth with VisualStudio c# 2010 =)
2.-Find Monster.cs and replace Everything That there for:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hellmouth
{
    public class Mob : EntityObject
    {
        public uint Mesh;
        private string _Name;
        public DateTime Killed;
        public bool Alive;
        public BaseMob BaseMob;
        public ulong Status;
        public Spawn Spawn;
        public uint Amount;
        public ushort Spread;
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
    }
}
Save it

3.-Find Database.cs
4.-Find the lines
Code:
                   public static void GetSpawns()
        {
            //I've changed mob spawn code like 5 times.. this should still work though so w/e.
            /*MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT);
            cmd.Select("MobSpawns");
            uint Count = 0;
            MySqlReader r = new MySqlReader(cmd);
            while (r.Read())
            {
                MobSpawn S = new MobSpawn(r.ReadUInt16("Amount"), Dictionary.BaseMobs[r.ReadUInt16("SpawnMob")], r.ReadUInt16("X"), r.ReadUInt16("Z"), r.ReadUInt16("Spread"), r.ReadUInt16("Map"));
                Count += (uint)S.Members.Count;
            }
            Console.WriteLine(Program.Title + " Spawning " + Count + " monsters into the world");
        */
And Replace with the following

Code:
            public static void GetSpawns()
            {
                MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT);
                cmd.Select("mobspawns");
                uint Count = 0;
                MySqlReader r = new MySqlReader(cmd);
                while (r.Read())
                {
                    Mob Mon = new Mob();

                    Mon.Amount = r.ReadUInt16("Amount");
                    Mon.BaseMob = Dictionary.BaseMobs[r.ReadUInt16("SpawnMob")];
                    Mon.X = r.ReadUInt16("X");
                    Mon.Y = r.ReadUInt16("Y");
                    Mon.Spread = r.ReadUInt16("Spread");
                    Mon.Map = r.ReadUInt16("Map");
                    Mon.MobLevel = r.ReadByte("Level");
                    Mon.MobHP = r.ReadUInt16("HP");
                    Mon.UID = r.ReadUInt32("UID");
                    Mon.Name = r.ReadString("Name");
                    Mon.Mesh = r.ReadUInt16("Mesh");
                    Mon.Instance = r.ReadUInt16("Instance");
                    Count++;

                    if (!Dictionary.Maps.ContainsKey(Mon.Map))
                        Dictionary.Maps.ThreadSafeAdd(Mon.Map, new Map(0));
                    Dictionary.Maps[Mon.Map].AddMonster(Mon, Handler.SetCoord(Mon.X, Mon.Y));

                }
                Console.WriteLine(Program.Title + " Spawning " + Count + " monsters into the world Mysterious");
5.-Update more mobspawns

If not liberation but they seem to serve some

Sorry for my bad English

credits to zerovb.com

Here a pics




thesamuraivega is offline  
Thanks
8 Users
Old 03/15/2011, 00:17   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 36
Received Thanks: 1
Thats is so good, thanks very much
|_Beetle_| is offline  
Old 03/15/2011, 00:41   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You are doing it wrong...

I suggest fixing the monsterspawn class. The way you posted works but has a number of problems.

#1: you don't have any of the functionality of knowing the mob spawns (spread info for respawn information, base mob for the spawn to avoid regenerating mob info, pulling number in spawn that are dead... etc)

#2: you dont have the dmap/object checking. The way I wrote the spawn class it ensures monsters never get located in the wrong spot (ontop of other monsters or in invalid coords)

#3: you have no reference for where spawns are and their members. Makes coding the mob ai system much more difficult.

#4: you are only generating 1 monster per spawn in db....

#5: you are not generating the monster uid (why hp doesn't show)
pro4never is offline  
Old 03/15/2011, 00:48   #4
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by pro4never View Post
You are doing it wrong...

I suggest fixing the monsterspawn class. The way you posted works but has a number of problems.

#1: you don't have any of the functionality of knowing the mob spawns (spread info for respawn information, base mob for the spawn to avoid regenerating mob info, pulling number in spawn that are dead... etc)

#2: you dont have the dmap/object checking. The way I wrote the spawn class it ensures monsters never get located in the wrong spot (ontop of other monsters or in invalid coords)

#3: you have no reference for where spawns are and their members. Makes coding the mob ai system much more difficult.

#4: you are only generating 1 monster per spawn in db....

#5: you are not generating the monster uid (why hp doesn't show)
xD is a basic sistem bro
thesamuraivega is offline  
Old 03/15/2011, 00:58   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Loled, from where did you got this code?!
i don't suggest it at all it only make a big mess with the spawn system.
mohamedkhaled is offline  
Old 03/15/2011, 01:10   #6
 
chickmagnet's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 372
Received Thanks: 53
Quote:
Originally Posted by mohamedkhaled View Post
Loled, from where did you got this code?!
i don't suggest it at all it only make a big mess with the spawn system.
kinda and kinda not it got the monster to spawn now all u gotta do is fix it
chickmagnet is offline  
Old 03/15/2011, 01:21   #7
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
actually, i am the one who wrote it from lets say when this source have been released to test it only soo i released it as a base for people Lol, but i have coded a very nice mob system after i realized how it works in the source ^^!

<EDIT>
Note: i didn't code the full Mob system yet, i suggest not to annoy me right!?(don't get it wrong guys!!!!!) i mean don't ask for the mob system
mohamedkhaled is offline  
Old 03/15/2011, 03:19   #8
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by chickmagnet View Post
kinda and kinda not it got the monster to spawn now all u gotta do is fix it
nope all you gota do is counting/reading

Plas hleb bug/ i can see mob hp mob dont atak,

lmao

here is some lovely mobs spwan


{ Angelius } is offline  
Old 03/15/2011, 07:50   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
Quote:
Originally Posted by pro4never View Post
You are doing it wrong...

I suggest fixing the monsterspawn class. The way you posted works but has a number of problems.

#1: you don't have any of the functionality of knowing the mob spawns (spread info for respawn information, base mob for the spawn to avoid regenerating mob info, pulling number in spawn that are dead... etc)

#2: you dont have the dmap/object checking. The way I wrote the spawn class it ensures monsters never get located in the wrong spot (ontop of other monsters or in invalid coords)

#3: you have no reference for where spawns are and their members. Makes coding the mob ai system much more difficult.

#4: you are only generating 1 monster per spawn in db....

#5: you are not generating the monster uid (why hp doesn't show)
i think it wrong too..

but it can test the mobspawn will be work real
262315610 is offline  
Old 03/15/2011, 08:54   #10
 
elite*gold: 0
Join Date: Apr 2009
Posts: 101
Received Thanks: 1
can you upload your Spwan mob bro4never
koko20 is offline  
Old 03/15/2011, 09:06   #11
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Quote:
Originally Posted by { Angelius } View Post
nope all you gota do is counting/reading

Plas hleb bug/ i can see mob hp mob dont atak,

lmao

here is some lovely mobs spwan


That what i call mob spawn ^^!!
mohamedkhaled is offline  
Old 03/15/2011, 10:14   #12
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
and if releases like this keep up everyone is going to have sources almost as bad as lotf... Cause you know they are just going to copy&paste it. Making the Old HellmouthCo source even more unstable..
BioHazarxPaul is offline  
Old 03/15/2011, 10:46   #13
 
CØĐ£Ř||Mã©hÍñє's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 248
Received Thanks: 36
Quote:
Originally Posted by koko20 View Post
can you upload your Spwan mob bro4never
huh you kidding us? bro4never ahaha last time i saw it was pro4never nt bro


go back to zerovb **** sloppy noob
CØĐ£Ř||Mã©hÍñє is offline  
Thanks
1 User
Old 03/15/2011, 11:18   #14
 
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
Quote:
Originally Posted by BioHazarxPaul View Post
and if releases like this keep up everyone is going to have sources almost as bad as lotf... Cause you know they are just going to copy&paste it. Making the Old HellmouthCo source even more unstable..
Agree ^^!
mohamedkhaled is offline  
Old 03/15/2011, 12:00   #15
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
Quote:
Originally Posted by CØĐ£Ř||Mã©hÍñє View Post
huh you kidding us? bro4never ahaha last time i saw it was pro4never nt bro


go back to zerovb **** sloppy noob
hahahaha

Thx For A nice Topic
|xabi| is offline  
Reply


Similar Threads Similar Threads
[Release] "New Arena" on HellMouth Server
03/17/2011 - CO2 PServer Guides & Releases - 4 Replies
Hi guys! If you want your arena like this, go to http://localhost/YOURphpmyadminFOLDER and click on your game database. Now, go to table NPC and add this code: INSERT INTO `npcs` (`UID`, `ID`, `Mesh`, `Name`, `Map`, `X`, `Y`, `Direction`, `Flag`) VALUES (99999, 99999, 420, '', 1005, 40, 40, 21, 21), (99910, 99910, 420, '', 1005, 41, 40, 21, 21), (99911, 99911, 420, '', 1005, 42, 40, 21, 21), (99912, 99912, 420, '', 1005, 43, 40, 21, 21),
[Release]Lab NPC and Spawns 5165
02/15/2011 - CO2 PServer Guides & Releases - 21 Replies
Hey guys i finaly figured out the mob spawns for the 5165 source rofl, And i thot i release them here on epvp Im not sure if its been released for it but i did it :P Ill allso have the NPC so lets start with the NPC #region Simon case 1152: {
[Release] Fix Client become Hell Slow at big spawns!
09/19/2010 - CO2 PServer Guides & Releases - 11 Replies
Fix Client become Hell Slow at big spawns! Q:Why do the FPS go to 00-01-02? A: Because there are to many items to load. Q: How to fix that? A: Easily make them disapear faster cause 90 seconds is extreme long, you could also decrease loot rate. But we do the first way in this Release/Tutorial. 5017 Search for DestroyTimer.Interval =
[Release]lab1-4 mob spawns
02/18/2010 - CO2 PServer Guides & Releases - 13 Replies
added to my labnpc for 5165 thread http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/404465-release-labnpcs.html
other plvl spawns than main spawns
01/15/2009 - Conquer Online 2 - 3 Replies
hi there, im on epvp since 3 years now but this is my first thread so dont kill me for sharing only :) well what i wanted to know is, since gms work alot by hunting down botters, if someone can give me spawns (in coords) or maybe in the map(s) of serps, alienserps and basi which are not the mains. so noone else would find me afk on bot for plvl :o thnx for your replies :)



All times are GMT +1. The time now is 13:34.


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.