Possible flower packet conversion for 5165 NCS

02/04/2010 17:33 .Ocularis#1
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

This is the code that I kept pressing buttons until the red lines went away.
(My perfected noob method)


And the "GetGet" method

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 ImmuneOne#2
Quote:
On sending (1150)
On logon(used for sending the flower data(1151))
Seeya,
ImmuneOne.
02/04/2010 18:08 -impulse-#3
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 flowersuint 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 IDuint Typeuint Rankuint 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(UID0x4e0000x74);
        } 
02/04/2010 23:32 |_Beetle_|#4
I do not work TT

Some viewers on the code?
Why not go? jeje
02/04/2010 23:46 walmartboi#5
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 hunterman01#6
Why does everyone want flowers.... i mean seriously
02/05/2010 00:50 |_Beetle_|#7
Hmmm, good question, in my case because it gives you a touch more original server

please help :P xddd
02/05/2010 00:52 .Ocularis#8
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 |_Beetle_|#9
Mentalis, you've got to put it? if so please say something: S

Thanks;)
02/05/2010 08:38 -impulse-#10
Apparently

in:
PHP Code:
public static COPacket ShowFlowerEffect(uint UID)
        {
            return 
GeneralData(UID0x4e0000x74);
        } 
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 |_Beetle_|#11
Neither option works, it leaves me no roses, nor in boys or girls

:l
02/06/2010 05:02 jitus2#12
Hello,

Please I must add or coding for flowers?
02/06/2010 20:00 jitus2#13
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 salem rey#14
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. :D
02/09/2010 22:45 hunterman01#15
Keep waiting cause its not gonna be released