|
You last visited: Today at 17:24
Advertisement
Possible flower packet conversion for 5165 NCS
Discussion on Possible flower packet conversion for 5165 NCS within the CO2 Private Server forum part of the Conquer Online 2 category.
02/04/2010, 17:33
|
#1
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
Possible flower packet conversion for 5165 NCS
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
Code:
public static byte[] FlowerPacket(string Flowers,bool CreateInstance)
{// all in order of what they would be on the game from top to bttom never added in client to have them indivudaly yet
//The Flower should be in that order
//AllRedRoses TodayRedRoses AllLilies 2DayLilies AllOrchades 2DayOrchades AllTulips 2day Tulipes
PacketBuilder P = new PacketBuilder(1150, 21 + Flowers.Length);
if (CreateInstance)
{
P.Long(1);
P.Long(0);
P.Long(0);
P.Int(1);
P.Text(Flowers);
P.Long(0);
}
return P.getFinal();
}
public static byte[] TryFlower(string Flowers,int Rank)
{// all in order of what they would be on the game from top to bttom never added in client to have them indivudaly yet
//The Flower should be in that order
//AllRedRoses TodayRedRoses AllLilies 2DayLilies AllOrchades 2DayOrchades AllTulips 2day Tulipes
PacketBuilder P = new PacketBuilder(1150, 21 + Flowers.Length);
P.Long(2);
P.Long(Rank);
P.Long(0);
P.Int(1);
P.Text(Flowers);
P.Long(0);
return P.getFinal();
}
public static byte[] Flower2(int Id,int Type,int Rank,int RoseType)
{
string Flowers = Id.ToString();
PacketBuilder P = new PacketBuilder(1151, 21 + Flowers.Length);
P.Long(Type);
P.Long(Rank);
P.Long(RoseType);
P.Int(1);
P.Text(Flowers);
P.Long(0);
return P.getFinal();
}
public static byte[] SendFlowerScreen(int Id)
{
PacketBuilder Packet = new PacketBuilder(0x3f2, 28);
Packet.Long(0);
Packet.Long(Id);
Packet.Short(0x4e0);
Packet.Short(0);
Packet.Short(0);
Packet.Short(0);
Packet.Short(0);
Packet.Short(0x74);
Packet.Long(0);
return Packet.getFinal();
}
This is the code that I kept pressing buttons until the red lines went away.
(My perfected noob method)
Code:
public static byte[] FlowerPacket(string Flowers, bool CreateInstance)
{
COPacket P = new COPacket(1150, 21 + Flowers.Length);
if (CreateInstance)
{
P.WriteInt32(1);
P.WriteInt32(0);
P.WriteInt32(0);
P.WriteInt16(1);
P.WriteString(Flowers);
P.WriteInt32(0);
}
return P.GetGet();
}
public static byte[] TryFlower(string Flowers, int Rank)
{
COPacket P = new COPacket(1150, 21 + Flowers.Length);
P.WriteInt32(2);
P.Move(Rank);
P.WriteInt32(0);
P.WriteInt16(1);
P.WriteString(Flowers);
P.WriteInt32(0);
return P.GetGet();
}
public static byte[] Flower2(int Id, int Type, int Rank, int RoseType)
{
string Flowers = Id.ToString();
COPacket P = new COPacket(1151, 21 + Flowers.Length);
P.Move(Type);
P.Move(Rank);
P.Move(RoseType);
P.WriteInt16(1);
P.WriteString(Flowers);
P.WriteInt32(0);
return P.GetGet();
}
public static byte[] SendFlowerScreen(int Id)
{
COPacket Packet = new COPacket(0x3f2, 28);
Packet.WriteInt32(0);
Packet.Move(Id);
Packet.WriteInt16(0x4e0);
Packet.WriteInt16(0);
Packet.WriteInt16(0);
Packet.WriteInt16(0);
Packet.WriteInt16(0);
Packet.WriteInt16(0x74);
Packet.WriteInt32(0);
return Packet.GetGet();
}
And the "GetGet" method
Code:
public byte[] GetGet()
{
return PData;
}
Did I do this right?
If so can we move on to actually adding the functions to this packet?
The packet ID is 1150 cause I made a new packet handler that would make an npc talk to me if the packet id was used...
And the npc wouldn't shut up after I used a flower
So I'm sure that is it.
|
|
|
02/04/2010, 18:04
|
#2
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Quote:
On sending (1150)
On logon(used for sending the flower data(1151))
|
Seeya,
ImmuneOne.
|
|
|
02/04/2010, 18:08
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
|
The correct 'translation':
PHP Code:
public static COPacket FlowerPacket(string flowers) { byte[] packet = new byte[21 + flowers.Length + 8]; COPacket p = new COPacket(packet); p.WriteInt16((ushort)(21 + flowers.Length)); p.WriteInt16(1150); p.WriteInt32(1); p.Move(8); p.WriteByte(1); p.WriteString(flowers); return p; } public static COPacket RankFlowerPacket(string flowers, uint Rank) { byte[] packet = new byte[21 + flowers.Length + 8]; COPacket p = new COPacket(packet); p.WriteInt16((ushort)(21 + flowers.Length)); p.WriteInt16(1150); p.WriteInt32(2); p.WriteInt32(Rank); p.Move(4); p.WriteByte(1); p.WriteString(flowers); return p; } public static COPacket ReceiveFlower(int ID, uint Type, uint Rank, uint FlowerType) { string flowers = ID.ToString(); byte[] packet = new byte[21 + flowers.Length + 8]; COPacket p = new COPacket(packet); p.WriteInt16((ushort)(21 + flowers.Length)); p.WriteInt16(1151); p.WriteInt32(Type); p.WriteInt32(Rank); p.WriteInt32(FlowerType); p.WriteByte(1); p.WriteString(flowers); return p; } public static COPacket ShowFlowerEffect(uint UID) { return GeneralData(UID, 0x4e0, 0, 0, 0x74); }
|
|
|
02/04/2010, 23:32
|
#4
|
elite*gold: 0
Join Date: Dec 2009
Posts: 36
Received Thanks: 1
|
I do not work TT
Some viewers on the code?
Why not go? jeje
|
|
|
02/04/2010, 23:46
|
#5
|
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
|
Code:
public static COPacket ShowFlowerEffect(uint UID)
{
return GeneralData(UID, 0x4e0, 0, 0, 0x74);
}
Apparently that doesn't work, any help?
|
|
|
02/04/2010, 23:58
|
#6
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Why does everyone want flowers.... i mean seriously
|
|
|
02/05/2010, 00:50
|
#7
|
elite*gold: 0
Join Date: Dec 2009
Posts: 36
Received Thanks: 1
|
Hmmm, good question, in my case because it gives you a touch more original server
please help :P xddd
|
|
|
02/05/2010, 00:52
|
#8
|
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
|
I'm doing it for the ladies I guess bro. I really could care less about flowers.
But the girls in darkside wanted to throw flowers at each other, heh.
Why not?
Btw, Immune, impulse.... <3. From the girls of darkside.
Ahem, not from me I was asked to pass it on.
|
|
|
02/05/2010, 01:21
|
#9
|
elite*gold: 0
Join Date: Dec 2009
Posts: 36
Received Thanks: 1
|
Mentalis, you've got to put it? if so please say something: S
Thanks
|
|
|
02/05/2010, 08:38
|
#10
|
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
|
Apparently
in:
PHP Code:
public static COPacket ShowFlowerEffect(uint UID) { return GeneralData(UID, 0x4e0, 0, 0, 0x74); }
0x74(116) is the type and it stays at its place. I'm not sure about 0x4eo(1248). I'd say you should try these :
return GeneralData(UID, 0, 0x4e0, 0, 0x74);
OR
return GeneralData(UID, 0, 0, 0x4e0, 0x74);
Someone check if they are working and post the results here please.
|
|
|
02/05/2010, 12:41
|
#11
|
elite*gold: 0
Join Date: Dec 2009
Posts: 36
Received Thanks: 1
|
Neither option works, it leaves me no roses, nor in boys or girls
:l
|
|
|
02/06/2010, 05:02
|
#12
|
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
|
Hello,
Please I must add or coding for flowers?
|
|
|
02/06/2010, 20:00
|
#13
|
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
|
Up here
(Sorry for my double post)
I'm still not where I should go and paste the code for flowers is in packet.cs it seems to me, but I'm not on, help me if you like it, thank you.
|
|
|
02/09/2010, 02:55
|
#14
|
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
|
yah, I'm a newbie i try to copy it and paste it ang got a huge error in my C#. but i'll just wait this releases to complete.
|
|
|
02/09/2010, 22:45
|
#15
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Keep waiting cause its not gonna be released
|
|
|
Similar Threads
|
[Release] Flower System (5165)
09/25/2010 - CO2 PServer Guides & Releases - 71 Replies
Heya!
Mostly complete... just figure a way to save it on your server....
ScreenShots:
http://img98.imageshack.us/img98/1949/164947279.j pg
http://img714.imageshack.us/img714/5372/64922998. jpg
http://img59.imageshack.us/img59/1025/64930238.jp g
|
some1 have 5165 source with flower system please post download link here
01/31/2010 - CO2 Private Server - 7 Replies
some1 have 5165 source with flower system please post download link here:(
|
[REQ] Nobility icon byte and flower packet
10/18/2009 - CO2 Private Server - 13 Replies
#DELETED
Got it myself by logging!
|
[Help] Flower Packet
10/10/2009 - CO2 Private Server - 21 Replies
Ok so most of you in this community wont no what im doing
But some will and i am asking those people who do for a little bit of help
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CoEmu_v2_GameServer.Packets
|
All times are GMT +2. The time now is 17:24.
|
|