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.
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)
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.
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.
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.
[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
[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