|
You last visited: Today at 22:58
Advertisement
5165 SendStallItem packet
Discussion on 5165 SendStallItem packet within the CO2 Private Server forum part of the Conquer Online 2 category.
09/12/2010, 21:13
|
#1
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
5165 SendStallItem packet
hey guys I was wondering if anyone got the right packet to show the 2nd socket as i tried to edit it in many ways and it never worked...
Code:
public static COPacket AddStallItem(Game.Item I, Features.PersonalShops.ItemValue Val, uint StallID)
{
byte[] Packet = new byte[8 + 56];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)0x454);
P.WriteInt32(I.UID);
P.WriteInt32(StallID);
P.WriteInt32(Val.Value);
P.WriteInt32(I.ID);
P.WriteInt16(I.CurDur);
P.WriteInt16(I.MaxDur);
P.WriteInt32(Val.MoneyType);
P.WriteInt32(0);
P.WriteInt16((byte)I.Soc1);
P.WriteInt16((byte)I.Soc2);
[B]//item effect here?[/B]
P.WriteByte(I.Plus);
P.WriteInt16(I.Bless);
P.WriteByte(I.Enchant);
P.WriteInt32(I.TalismanProgress);
P.Move(4);
P.WriteInt32((uint)I.Color);
P.WriteInt32(I.Progress);
return P;
}
|
|
|
09/13/2010, 00:42
|
#2
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Code:
P.WriteByte((byte)I.Soc1);
P.WriteByte((byte)I.Soc2);
Tried that in place of your existing 2 socket entries?
|
|
|
09/13/2010, 02:20
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Wow, never though about that Jack.
They ARE single bytes in the packet, not two, so it should be written as one.
|
|
|
09/13/2010, 09:19
|
#4
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
Quote:
Originally Posted by Korvacs
Code:
P.WriteByte((byte)I.Soc1);
P.WriteByte((byte)I.Soc2);
Tried that in place of your existing 2 socket entries?
|
Yes I already tried that...didn't work (soc wouldn't show at all)
@Arco do you mean writing instead of 2 lines 1 line? ummm
|
|
|
09/13/2010, 10:01
|
#5
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Code:
P.WriteByte(0);
P.WriteByte((byte)I.Soc1);
P.WriteByte((byte)I.Soc2);
That?
|
|
|
09/13/2010, 10:40
|
#6
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
Quote:
Originally Posted by Korvacs
Code:
P.WriteByte(0);
P.WriteByte((byte)I.Soc1);
P.WriteByte((byte)I.Soc2);
That?
|
nope it doesn't work..
|
|
|
09/13/2010, 10:47
|
#7
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Code:
P.WriteInt16(0);
P.WriteByte((byte)I.Soc1);
P.WriteByte((byte)I.Soc2);
Has to be that then.
|
|
|
09/13/2010, 10:53
|
#8
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
nope...it's not...but i fixed it...it's just as i said in my first post...where i said //does the item effect goes here? and it did but now that i fixed it i dun wanna release it
|
|
|
09/13/2010, 11:13
|
#9
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Please post it, otherwise your going to force me to spend a few minutes fiddling with the packet in order to find the fix, and to be honest ive better things to be doing with my time.
|
|
|
09/13/2010, 11:30
|
#10
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
Quote:
Originally Posted by Korvacs
Please post it, otherwise your going to force me to spend a few minutes fiddling with the packet in order to find the fix, and to be honest ive better things to be doing with my time.
|
ok done
|
|
|
09/13/2010, 17:35
|
#11
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Korvacs
Code:
P.WriteInt16(0);
P.WriteByte((byte)I.Soc1);
P.WriteByte((byte)I.Soc2);
Has to be that then.
|
Isntead of writing a blank 2 bytes, you can just use the method P.Move(2);
Pretty much the same thing.
|
|
|
09/13/2010, 19:08
|
#12
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Quote:
Originally Posted by Аrco
Isntead of writing a blank 2 bytes, you can just use the method P.Move(2);
Pretty much the same thing.
|
Indeed, but like you say, makes no difference really if i used 5165 i might have been bothered about the difference lol.
|
|
|
09/13/2010, 19:40
|
#13
|
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
|
Quote:
Originally Posted by Аrco
Isntead of writing a blank 2 bytes, you can just use the method P.Move(2);
Pretty much the same thing.
|
I already tried P.Move(2) and it wasn't working...or if you weren't talking about this then...sry xD
|
|
|
09/13/2010, 20:00
|
#14
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
I'm just referring to what korvacs said.
|
|
|
Similar Threads
|
5165 is this Enemy guild packet?
02/21/2010 - CO2 Private Server - 8 Replies
Is this the packet of enemy guild? can anyone help me? how to add this in my sourve? im using 5165, and how to add this in npc.
public static COPacket GuildData(uint Type, int Data)
{
byte Packet = new byte;
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)1107);
P.WriteInt32(Type);
|
Possible flower packet conversion for 5165 NCS
02/20/2010 - CO2 Private Server - 19 Replies
Hey all,
I believe ImmuneOne released this packet(?)
So give him thanks if he posts here!
I believe I pressed enough buttons to make everything stop underlining in red....
Thing is I don't know how to test if I actually did the packet conversion correctly.
These are the original packets
public static byte FlowerPacket(string Flowers,bool CreateInstance)
|
All times are GMT +2. The time now is 22:58.
|
|