Guide/Release: Conquer Server (CoFuture) Using MySql!

03/28/2008 23:37 walmartboi#631
Hey, I'm using the patch 5011 repack made by Junior on ******** forum, and I can't use any codes from here, does anyone know why? I'd very much appreciate it.
03/29/2008 02:26 nearmylimits#632
I get this error when ever I try to run the server

[Only registered and activated users can see links. Click Here To Register...]
03/29/2008 12:16 xxnikexx#633
Quote:
Originally Posted by walmartboi View Post
Hey, I'm using the patch 5011 repack made by Junior on ******** forum, and I can't use any codes from here, does anyone know why? I'd very much appreciate it.
Because thats source is not for patch 5011!
03/29/2008 12:34 Kiyono#634
Quote:
Originally Posted by walmartboi View Post
Hey, I'm using the patch 5011 repack made by Junior on ******** forum, and I can't use any codes from here, does anyone know why? I'd very much appreciate it.
he removed almost all the commands thats why if you just looked at the commands.cs you would have noticed
and NO you can't use the commands.cs from this one cause if you rebuild 2/3 codes won't function
03/29/2008 16:59 walmartboi#635
His repack doesn't have as many bugs as this source though.
03/29/2008 21:10 Kiyono#636
Quote:
Originally Posted by walmartboi View Post
His repack doesn't have as many bugs as this source though.
well then you need to choose between :
fixes or commands
03/30/2008 00:41 Craig25#637
PLEAAAAAASSSEEEEE HELP!!

I get this error on the [Only registered and activated users can see links. Click Here To Register...] page:

Code:
Welcome to phpMyAdmin 2.10.2

Error

MySQL said: Documentation
#2003 - The server is not responding
phpMyAdmin was unable to read your configuration file!
This might happen if PHP finds a parse error in it or PHP cannot find the file.
Please call the configuration file directly using the link below and read the PHP error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere.
If you receive a blank page, everything is fine.

./config.inc.php
Please help! :(
03/30/2008 14:37 Craig25#638
Please anyone help me?

Edit: I fixed it, i had this line twice in my config file xD

$cfg['blowfish_secret'] = 'Montgomery'

I'm loving my eyes right now xD
03/30/2008 17:12 g_elf#639
i found this mob package

public byte[] SpawnMob(int ID, int Mech, int mob_x, int mob_y, string Name, int HP, int LVL, int POS)
{
if (HP < 0)
HP = 0;
if (POS < 0)
POS = 0;
byte[] PacketData = new byte[67 + Name.Length];
PacketData[0] = (byte)(PacketData.Length & 0xff);
PacketData[1] = (byte)((PacketData.Length >> 8) & 0xff);
PacketData[2] = 0xf6;
PacketData[3] = 0x03;
PacketData[4] = (byte)(ID & 0xff);//id
PacketData[5] = (byte)((ID >> 8) & 0xff);//id
PacketData[6] = (byte)((ID >> 16) & 0xff);//id
PacketData[7] = (byte)((ID >> 24) & 0xff);//id
PacketData[0x8] = (byte)(Mech & 0xff);//Mech
PacketData[0x9] = (byte)((Mech >> 8) & 0xff);//Mech
PacketData[0xa] = (byte)((Mech >> 16) & 0xff);//Mech
PacketData[0xb] = (byte)((Mech >> 24) & 0xff);//Mech
PacketData[12] = 0x00;
PacketData[13] = 0x00;
PacketData[14] = 0x00;
PacketData[15] = 0x00;
PacketData[16] = 0x00;
PacketData[17] = 0x00;
PacketData[18] = 0x00;
PacketData[19] = 0x00;
PacketData[20] = 0x00;
PacketData[21] = 0x00;
PacketData[22] = 0x00;
PacketData[23] = 0x00;
PacketData[24] = 0x00;
PacketData[25] = 0x00;
PacketData[26] = 0x00;
PacketData[27] = 0x00;
PacketData[28] = 0x00;
PacketData[29] = 0x00;
PacketData[30] = 0x00;
PacketData[31] = 0x00;
PacketData[32] = 0x00;
PacketData[33] = 0x00;
PacketData[34] = 0x00;
PacketData[35] = 0x00;
PacketData[36] = 0x00;
PacketData[37] = 0x00;
PacketData[38] = 0x00;
PacketData[39] = 0x00;
PacketData[40] = 0x00;
PacketData[41] = 0x00;
PacketData[42] = 0x00;
PacketData[43] = 0x00;
PacketData[44] = 0x00;
PacketData[45] = 0x00;
PacketData[46] = 0x00;
PacketData[47] = 0x00;
PacketData[48] = (byte)(HP & 0xff); // Current HP
PacketData[49] = (byte)((HP >> 8) & 0xff);//
PacketData[50] = (byte)(LVL & 0xff); // Level
PacketData[51] = (byte)((LVL >> 8) & 0xff);//
PacketData[52] = (byte)(mob_x & 0xff); // x loc
PacketData[53] = (byte)((mob_x >> 8) & 0xff);//
PacketData[54] = (byte)(mob_y & 0xff); // y loc
PacketData[55] = (byte)((mob_y >> 8) & 0xff);//
PacketData[56] = 0x00;
PacketData[57] = 0x00;
PacketData[58] = (byte)(POS & 0xff); //Position
PacketData[59] = 0x00;
PacketData[60] = 0x00;
PacketData[61] = 0x00;
PacketData[62] = 0x00;
PacketData[63] = 0x00;
PacketData[64] = 0x00;
PacketData[65] = 0x01;
PacketData[66] = (byte)(Name.Length); //Length of the name
for (int x = 0; x < Name.Length; x++)
{
PacketData[67 + x] = Convert.ToByte(Name[x]);
}
return PacketData;
}

and i made a command for it

else if (Splitter[0] == "/spawnmob")
{
Client.SendData(CPacket.SpawnMob(Convert.ToInt32(S plitter[1]), Convert.ToInt32(Splitter[2]), Convert.ToInt32(Splitter[3]), Convert.ToInt32(Splitter[4]), Convert.ToString(Splitter[5]), Convert.ToInt32(Splitter[6]), Convert.ToInt32(Splitter[7]), Convert.ToInt32(Splitter[8])));
return 2;
}

i do can spawn mobs but they dont have a name nor HP bar can any1 give me a hand? tks.
03/30/2008 21:11 Kiyono#640
Quote:
Originally Posted by g_elf View Post
i found this mob package

public byte[] SpawnMob(int ID, int Mech, int mob_x, int mob_y, string Name, int HP, int LVL, int POS)
{
if (HP < 0)
HP = 0;
if (POS < 0)
POS = 0;
byte[] PacketData = new byte[67 + Name.Length];
PacketData[0] = (byte)(PacketData.Length & 0xff);
PacketData[1] = (byte)((PacketData.Length >> 8) & 0xff);
PacketData[2] = 0xf6;
PacketData[3] = 0x03;
PacketData[4] = (byte)(ID & 0xff);//id
PacketData[5] = (byte)((ID >> 8) & 0xff);//id
PacketData[6] = (byte)((ID >> 16) & 0xff);//id
PacketData[7] = (byte)((ID >> 24) & 0xff);//id
PacketData[0x8] = (byte)(Mech & 0xff);//Mech
PacketData[0x9] = (byte)((Mech >> 8) & 0xff);//Mech
PacketData[0xa] = (byte)((Mech >> 16) & 0xff);//Mech
PacketData[0xb] = (byte)((Mech >> 24) & 0xff);//Mech
PacketData[12] = 0x00;
PacketData[13] = 0x00;
PacketData[14] = 0x00;
PacketData[15] = 0x00;
PacketData[16] = 0x00;
PacketData[17] = 0x00;
PacketData[18] = 0x00;
PacketData[19] = 0x00;
PacketData[20] = 0x00;
PacketData[21] = 0x00;
PacketData[22] = 0x00;
PacketData[23] = 0x00;
PacketData[24] = 0x00;
PacketData[25] = 0x00;
PacketData[26] = 0x00;
PacketData[27] = 0x00;
PacketData[28] = 0x00;
PacketData[29] = 0x00;
PacketData[30] = 0x00;
PacketData[31] = 0x00;
PacketData[32] = 0x00;
PacketData[33] = 0x00;
PacketData[34] = 0x00;
PacketData[35] = 0x00;
PacketData[36] = 0x00;
PacketData[37] = 0x00;
PacketData[38] = 0x00;
PacketData[39] = 0x00;
PacketData[40] = 0x00;
PacketData[41] = 0x00;
PacketData[42] = 0x00;
PacketData[43] = 0x00;
PacketData[44] = 0x00;
PacketData[45] = 0x00;
PacketData[46] = 0x00;
PacketData[47] = 0x00;
PacketData[48] = (byte)(HP & 0xff); // Current HP
PacketData[49] = (byte)((HP >> 8) & 0xff);//
PacketData[50] = (byte)(LVL & 0xff); // Level
PacketData[51] = (byte)((LVL >> 8) & 0xff);//
PacketData[52] = (byte)(mob_x & 0xff); // x loc
PacketData[53] = (byte)((mob_x >> 8) & 0xff);//
PacketData[54] = (byte)(mob_y & 0xff); // y loc
PacketData[55] = (byte)((mob_y >> 8) & 0xff);//
PacketData[56] = 0x00;
PacketData[57] = 0x00;
PacketData[58] = (byte)(POS & 0xff); //Position
PacketData[59] = 0x00;
PacketData[60] = 0x00;
PacketData[61] = 0x00;
PacketData[62] = 0x00;
PacketData[63] = 0x00;
PacketData[64] = 0x00;
PacketData[65] = 0x01;
PacketData[66] = (byte)(Name.Length); //Length of the name
for (int x = 0; x < Name.Length; x++)
{
PacketData[67 + x] = Convert.ToByte(Name[x]);
}
return PacketData;
}

and i made a command for it

else if (Splitter[0] == "/spawnmob")
{
Client.SendData(CPacket.SpawnMob(Convert.ToInt32(S plitter[1]), Convert.ToInt32(Splitter[2]), Convert.ToInt32(Splitter[3]), Convert.ToInt32(Splitter[4]), Convert.ToString(Splitter[5]), Convert.ToInt32(Splitter[6]), Convert.ToInt32(Splitter[7]), Convert.ToInt32(Splitter[8])));
return 2;
}

i do can spawn mobs but they dont have a name nor HP bar can any1 give me a hand? tks.
wait a sec where did you find it? and t's not the on from CoEMU right?
btw where d you place it
03/30/2008 22:08 sagitarius2118#641
I HAVE A PROBLEM IN THE STEP 5 CAN YOU HELP ME Y DONT UNDERSTAND
03/31/2008 11:06 g_elf#642
Quote:
Originally Posted by Djago160 View Post
wait a sec where did you find it? and t's not the on from CoEMU right?
btw where d you place it
i took it from another release based on CoFuture and CoEmu.

the packet goes on the conquerpackets.cs file ans the command in the command.cs file
03/31/2008 12:56 Kiyono#643
Quote:
Originally Posted by g_elf View Post
i took it from another release based on CoFuture and CoEmu.

the packet goes on the conquerpackets.cs file ans the command in the command.cs file
oh that(5011) i looked at it before
03/31/2008 13:46 g_elf#644
Quote:
Originally Posted by Djago160 View Post
wait a sec where did you find it? and t's not the on from CoEMU right?
btw where d you place it
Quote:
Originally Posted by Djago160 View Post
oh that(5011) i looked at it before
do u have that packet decripted? something like this?

public byte[] TerrainNpc(int TNpcID, int MaxHp, int CurrentHp, Location TNpcLoc, int TNpcType)
{
Length(28);
Type(1109);
Long(TNpcID);
Long(MaxHp);
Long(CurrentHp);
Short(TNpcLoc.X);
Short(TNpcLoc.Y);
Short(TNpcType);
Short(26);//unknown, possibly subnpctype
ByteInt(21);//unknown, perhaps a packet switch >_>
ByteInt(0);
Short(0);
return getBytes();
}

tks
03/31/2008 13:55 tanelipe#645
I'm curious, Do you guys even bother to look what the type of Packet is?
Like the above SpawnMob Packet; Instead of trying to make it from scratch, look what Type it is; Tell me if you find the answer; (Hint : Has something to do with character spawning :rolleyes:)


Look for the packet 0x3F9 for example : It has alot subtypes (10+?) It would be incredibly messy to code these each on their own, but instead you just change the values...(and subtype ofcourse)

P.S This is more like for the future referrence.

@nearmylimits : Download .NET FrameWork 2 or higher;