Register for your free account! | Forgot your password?

You last visited: Today at 11:34

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


[?] 5017 to 4267

Discussion on [?] 5017 to 4267 within the CO2 PServer - Discussions / Questions forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 74
Received Thanks: 65
Question [?] 5017 to 4267

I haven't asked a question in a while. I am trying to convert the CharacterInfo packet to work on a 4267. I attempted to convert but I am still failing! So if anyone can help, it will be well appreciated thank you. Here is my attempt below.
Code:
        public static byte[] CharacterInfo(GameClient Client)
        {
            byte[] Packet = new byte[((66 + Client.Spouse.Length) + Client.Entity.Name.Length)];
            WriteUInt16((ushort)Packet.Length, Packet, 0);
            WriteUInt16(1006, Packet, 2);
            WriteUInt32(Client.Entity.UID, Packet, 4);
            WriteUInt32(Client.Entity.Model, Packet, 8);
            WriteUInt16(Client.Entity.HairStyle, Packet, 12);
            WriteUInt32((uint)Client.Money, Packet, 14);
            WriteUInt64(Client.Experience, Packet, 16);
            WriteUInt16(Client.Strength, Packet, 20);
            WriteUInt16(Client.Agility, Packet, 28);
            WriteUInt16(Client.Vitality, Packet, 32);
            WriteUInt16(Client.Spirit, Packet, 36);
            WriteUInt16(Client.StatPoints, Packet, 40);
            WriteUInt16((ushort)Client.Entity.Hitpoints, Packet, 42);
            WriteUInt16(Client.Mana, Packet, 44);
            WriteUInt16(Client.PKPoints, Packet, 46);
            Packet[48] = Client.Entity.Level;
            Packet[50] = Client.Job;
            Packet[52] = (byte)Client.Entity.Reborn;
            Packet[54] = 1;
            Packet[56] = 2;
            WriteStringWithLength(Client.Entity.Name, Packet, 57); 
            WriteStringWithLength(Client.Spouse, Packet, (ushort)(58 + Packet[59]));
            return Packet;
        }



BasicCoder is offline  
Old 02/13/2010, 22:34   #2
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,504
*Points to the wiki link in his sig*

Im working on a 4267 server myself, the packet is on there.


Korvacs is offline  
Thanks
1 User
Old 02/13/2010, 22:42   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 74
Received Thanks: 65
Re: [?] 5017 to 4267

Sorry for the double post,
But thank you. +k for you!
BasicCoder is offline  
Old 02/14/2010, 00:59   #4
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,276
Quote:
Originally Posted by BasicCoder View Post
Sorry for the double post,
But thank you. +k for you!
Since you got your answer is it okay if we,
#requestclose


Arcо is offline  
Old 02/14/2010, 05:05   #5
 
elite*gold: 20
Join Date: May 2007
Posts: 1,122
Received Thanks: 330
Although you already were helped, you should look in the released co1 source as a reference if joo need help on co1-related stuff D:


LetterX is offline  
Closed Thread



« Need the command CPS! | 2 Things please... »

Similar Threads
[Help]Converting From 5017 to 4267
06/16/2010 - CO2 PServer - Discussions / Questions - 0 Replies
im trying to convert Extremely basic (but working/bugless) C# Source TO 4267 what all do i need to Chang to do this? it goes into AuthReceive but it goes to see if it IsValidAccount but then clint disconnects as if it was not a VialidAccount but when im using Clint 5017 it connects Help with this please? and are there any thang wrong with my CharINFO public static byte CharacterInfo(GameClient Client) { Console.WriteLine(Client.Entity.Name + "geting his...
4267 client error...
02/20/2010 - CO2 PServer - Discussions / Questions - 6 Replies
I`m getting an error when trying to connect with the client to a source, saying "Armet003119432 not found in ini/Armet.ini!". I suppose that this is a client-side problem, anyone could help me with fixing it, or providing a link to working files?
[?] Conversion 5017 to 4267
02/15/2010 - CO2 PServer - Discussions / Questions - 1 Replies
I have converted packets I know it is client sided issues, but when I go to log in I get some sort of error click the "Spoiler" below to see some pictures of it. http://i46.tinypic.com/2u40hoh.jpg If someone could help it would be well appreciated!
Map Problem with the 4267 Source
12/12/2009 - CO2 PServer - Discussions / Questions - 11 Replies
Hey! I need help =\ I downloaded the 4267 source and found out that the map had quadrant lines all over it. This is the download location for the source and for the client. The database connection is located in the code: DatabaseConnection = new MySqlConnection("Server=localhost;Database='conque r_server';Username='root';Password='root'"); The database sql file is below in the attachment. Please help me, i know a bit of coding but I couldn't find anything wrong =[ PS: I need the 4268...
[RELEASE]Big Project..5095,5065,5017,5017 (command Server)
10/01/2009 - CO2 PServer Guides & Releases - 23 Replies
Hi, Yes i made a big project with my self by my self i host i edit i control i code. The Project contain 3 Co plvling Servers and 1 Command server the plvling servers are Snow Server and Treasure island . snow server works with 5065 client and it have alot of edits , adds , well i have made 135 gears and you can upgrade it in market from De La Vega for 250k CPS for each item also you should get 1 blessing amulet to make dmg -1 and you can get it by killing 1000 Birdman or 1000 Snake man or...



All times are GMT +2. The time now is 11:34.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.