[Request]Guides

09/26/2008 01:18 vietkidd510#121
hey Haydz i was wondering if you can release a script on LuckyTime? please?
09/26/2008 05:47 konkizta#122
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:D
09/26/2008 07:20 stephanyd#123
Quote:
Originally Posted by konkizta View Post
in packets.cs add its



Very easy:D
Thank you very much Mate;):handsdown:
09/26/2008 08:07 pauldexter#124
@konkizta
I already tried it last day and it won't work, but i try it again.
09/26/2008 08:15 pauldexter#125
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
[Only registered and activated users can see links. Click Here To Register...]
09/26/2008 11:20 YukiXian#126
Quote:
Originally Posted by © Haydz View Post
jah he does but hes currently busy doing Dis city for his friend :handsdown:
After than you can help us? :handsdown:
09/26/2008 15:46 Kratos59#127
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
09/26/2008 16:50 © Haydz#128
Okay what do you need?
09/26/2008 17:23 YukiXian#129
Quote:
Originally Posted by © Haydz View Post
Okay what do you need?
We need to get the Spouse in the CharacterInfo works, :p:mofo:
So if you could help us, That would be great! :p:p:p

When we change it to :
Quote:
string Spouse = Charr.Spouse;
Than nothing changes, Still says : Spouse : "None"
You know how to fix this?
09/26/2008 18:08 © Haydz#130
Quote:
Originally Posted by YukiXian View Post
We need to get the Spouse in the CharacterInfo works, :p:mofo:
So if you could help us, That would be great! :p:p:p

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];
                }
09/26/2008 21:24 YukiXian#131
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]);
}
}
09/26/2008 21:39 © Haydz#132
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
09/26/2008 22:23 YukiXian#133
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...
09/26/2008 23:00 © Haydz#134
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?...
09/26/2008 23:10 Zanzibar#135
If you don't know what that means.. GG KTHNXBAI