Register for your free account! | Forgot your password?

You last visited: Yesterday at 23:58

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

Advertisement



[Request]Guides

Discussion on [Request]Guides within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 09/26/2008, 01:18   #121
 
elite*gold: 0
Join Date: Jul 2005
Posts: 157
Received Thanks: 14
hey Haydz i was wondering if you can release a script on LuckyTime? please?
vietkidd510 is offline  
Old 09/26/2008, 05:47   #122
 
elite*gold: 0
Join Date: Aug 2008
Posts: 77
Received Thanks: 63
Quote:
Originally Posted by YukiXian View Post
How you did that? That others see ur spouse?
in packets.cs add its

Quote:
public byte[] ViewEquip(Character Char)
{
ushort PacketType = 0x3f7;
string spouse = Char.Spouse; <<==

byte[] Packet = new byte[11 + spouse.Length];

fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)Char.UID;
*(p + 8) = 0x10;
*(p + 9) = 0x01;
*(p + 10) = (byte)spouse.Length;

for (int i = 0; i < spouse.Length; i++)
{
*(p + 11 + i) = Convert.ToByte(spouse[i]);
}

}
return Packet;
}
Very easy
konkizta is offline  
Thanks
1 User
Old 09/26/2008, 07:20   #123
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Quote:
Originally Posted by konkizta View Post
in packets.cs add its



Very easy
Thank you very much Mate
stephanyd is offline  
Old 09/26/2008, 08:07   #124
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
@konkizta
I already tried it last day and it won't work, but i try it again.
pauldexter is offline  
Old 09/26/2008, 08:15   #125
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
An accident sorry for double post
Quote:
Originally Posted by Kratos59 View Post
In database, i have add u code and in database i have add that :

.......

but the line : if (World.SaveAllChars()) it's say a error : Impossible to convert the type void in bool

Thank u for helping ^^
sorry for my long reply, you will get error because you didn't use the guide of Rechocto
pauldexter is offline  
Thanks
1 User
Old 09/26/2008, 11:20   #126
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by © Haydz View Post
jah he does but hes currently busy doing Dis city for his friend
After than you can help us?
YukiXian is offline  
Old 09/26/2008, 15:46   #127
 
elite*gold: 0
Join Date: Jun 2007
Posts: 20
Received Thanks: 0
Thank you paul, i have build solution and Work but a little problem for a Table Spouse, i have put : Spouse int 10 not null 0 but no work in game i have connect and screen black

Thank u for helping
Kratos59 is offline  
Old 09/26/2008, 16:50   #128
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Okay what do you need?
© Haydz is offline  
Old 09/26/2008, 17:23   #129
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by © Haydz View Post
Okay what do you need?
We need to get the Spouse in the CharacterInfo works,
So if you could help us, That would be great!

When we change it to :
Quote:
string Spouse = Charr.Spouse;
Than nothing changes, Still says : Spouse : "None"
You know how to fix this?
YukiXian is offline  
Old 09/26/2008, 18:08   #130
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by YukiXian View Post
We need to get the Spouse in the CharacterInfo works,
So if you could help us, That would be great!

When we change it to :

Than nothing changes, Still says : Spouse : "None"
You know how to fix this?
Post me your Charinfo packet... and i'll correct it for you...

or if your capable replace the last part of yours to:

Code:
 p[68] = (byte)Charr.Name.Length;
                Packet[69 + Charr.Name.Length] = (byte)Charr.Spouse.Length;
                for (sbyte i = 0; i < Charr.Name.Length; i++)
                {
                    *(p + 69 + i) = (byte)Charr.Name[i];
                }
                for (sbyte i = 0; i < Charr.Spouse.Length; i++)
                {
                    *(p + 70 + Charr.Name.Length + i) = (byte)Charr.Spouse[i];
                }
© Haydz is offline  
Old 09/26/2008, 21:24   #131
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Here it is :

Quote:
public byte[] CharacterInfo(Character Charr)
{
ushort PacketType = 0x3ee;
string Spouse = Charr.Spouse; //"None"
short Length = (short)(70 + Charr.Name.Length + Spouse.Length);

byte[] Packet = new byte[Length];

long Model = Convert.ToInt64(Convert.ToString(Charr.Avatar) + Convert.ToString(Charr.Model));

fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)Charr.UID;
*((uint*)(p + 8)) = (uint)Model;
*((ushort*)(p + 12)) = (ushort)Charr.Hair;
*((uint*)(p + 14)) = (uint)Charr.Silvers;
*((uint*)(p + 18)) = (uint)Charr.CPs;
*((uint*)(p + 22)) = (uint)Charr.Exp;
*((ushort*)(p + 42)) = (ushort)5130;
*((ushort*)(p + 46)) = (ushort)Charr.Str;
*((ushort*)(p + 48)) = (ushort)Charr.Agi;
*((ushort*)(p + 50)) = (ushort)Charr.Vit;
*((ushort*)(p + 52)) = (ushort)Charr.Spi;
*((ushort*)(p + 54)) = (ushort)Charr.StatP;
*((ushort*)(p + 56)) = (ushort)Charr.CurHP;
*((ushort*)(p + 58)) = (ushort)Charr.MaxMana();
*((ushort*)(p + 60)) = (ushort)Charr.PKPoints;

*(p + 62) = Charr.Level;
*(p + 63) = Charr.Job;
*(p + 66) = 1;
*(p + 67) = 2;
*(p + 68) = (byte)Charr.Name.Length;

for (int i = 0; i < Charr.Name.Length; i++)
{
*(p + 69 + i) = Convert.ToByte(Charr.Name[i]);
}

*(p + 70 + Charr.Name.Length) = (byte)Spouse.Length;

for (int i = 0; i < Spouse.Length; i++)
{
*(p + Charr.Name.Length + 71 + i) = Convert.ToByte(Spouse[i]);
}
}
YukiXian is offline  
Old 09/26/2008, 21:39   #132
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by YukiXian View Post
Here it is :
Code:
public byte[] CharacterInfo(Character Charr)
{
byte[] Packet = new byte[70 + Charr.Name.Length + Charr.Spouse.Length];
long Model = Convert.ToInt64(Convert.ToString(Charr.Avatar) + Convert.ToString(Charr.Model));

fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = 1006;
*((uint*)(p + 4)) = (uint)Charr.UID;
*((uint*)(p + 8)) = (uint)Model;
*((ushort*)(p + 12)) = (ushort)Charr.Hair;
*((uint*)(p + 14)) = (uint)Charr.Silvers;
*((uint*)(p + 18)) = (uint)Charr.CPs;
*((uint*)(p + 22)) = (uint)Charr.Exp;
*((ushort*)(p + 42)) = (ushort)5130;
*((ushort*)(p + 46)) = (ushort)Charr.Str;
*((ushort*)(p + 48)) = (ushort)Charr.Agi;
*((ushort*)(p + 50)) = (ushort)Charr.Vit;
*((ushort*)(p + 52)) = (ushort)Charr.Spi;
*((ushort*)(p + 54)) = (ushort)Charr.StatP;
*((ushort*)(p + 56)) = (ushort)Charr.CurHP;
*((ushort*)(p + 58)) = (ushort)Charr.MaxMana();
*((ushort*)(p + 60)) = (ushort)Charr.PKPoints;
*(p + 62) = Charr.Level;
*(p + 63) = Charr.Job;
*(p + 66) = 1;
*(p + 67) = 2;
*(p + 68) = (byte)Charr.Name.Length;
Packet[69 + Charr.Name.Length] = (byte)Charr.Spouse.Length;
for (sbyte i = 0; i < Charr.Name.Length; i++)
{
*(p + 69 + i) = (byte)Charr.Name[i];
}
for (sbyte i = 0; i < Charr.Spouse.Length; i++)
{
*(p + 70 + Charr.Name.Length + i) = (byte)Charr.Spouse[i];
}
Okay Fixed
© Haydz is offline  
Thanks
2 Users
Old 09/26/2008, 22:23   #133
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Thanks, I'll try it now, And.... Here's another request :

How to show the ItemNames on lotto when someone wins something? I'f already got the other stuff done... Only need to know how to change it <ItemId>-0-0-0-0-0-0 into an name...
YukiXian is offline  
Old 09/26/2008, 23:00   #134
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by YukiXian View Post
Thanks, I'll try it now, And.... Here's another request :

How to show the ItemNames on lotto when someone wins something? I'f already got the other stuff done... Only need to know how to change it <ItemId>-0-0-0-0-0-0 into an name...
Does your source have a Name variable in your item structure?...
© Haydz is offline  
Old 09/26/2008, 23:10   #135
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
If you don't know what that means.. GG KTHNXBAI
Zanzibar is offline  
Reply


Similar Threads Similar Threads
[Request]Richtige Guides ??
09/10/2010 - Starcraft 2 - 5 Replies
Hey Stracraft Suchtis :P , Wollte mal fragen wo es denn richtige Guides gibt. Sprich Baureihenfolge usw. Habe bis jetzt nur einen gefunden der nicht wirklich hilfreich war xD Bedanke mich schon mal im Voraus.
Request Guides! :D
08/16/2010 - Runescape - 11 Replies
Guides! Hey. I've been trying as hard as I can to help you with all of your needs, now it is time for you to help me you. You can do this simply by posting here any guides you want me to make, I will either make a video, or picture, or both. I need this to be organized, so I will be monitoring this thread daily, and i will be posting new polls, and deleting poll to see what i should make my number one priority. How to Post!: Posting should be like this:
[REQUEST] Killer guides
09/15/2009 - Aion - 15 Replies
moin, hat jmd die Killer guides für aion parat? (Aion Complete Guide Package) komplett oder einzeln ich, alle gern gesehn :) ooooder:
[Request]More Coding Guides. C#
08/29/2009 - CO2 Private Server - 13 Replies
Yo guys, if you want less people asking questions/leaching then just make "how to code guides". Not only are you keeping people from taking other people's work, but your also giving other people the chance to create more stuff and ideas so we can all be pros at coding to make our own servers. Honestly, if you people released useful guides, I will read everyone of them until I know how to code then I'll take my time to complete servers 100%. Well thats it, I hope this encouraged people to take...



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


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.