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:
Save it
3.-Find Database.cs
4.-Find the lines
And Replace with the following
5.-Update more mobspawns
If not liberation but they seem to serve some ;)
Sorry for my bad English:cool::p
credits to zerovb.com
Here a pics
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
:)
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; }
}
}
}
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");
*/
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");
If not liberation but they seem to serve some ;)
Sorry for my bad English:cool::p
credits to zerovb.com
Here a pics
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
:)