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");
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 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)
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
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)
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..
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..
[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 :)