Register for your free account! | Forgot your password?

You last visited: Today at 01:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] flower packets V5165

Discussion on [Release] flower packets V5165 within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
TheLeGend209's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
[Release] flower packets V5165

Credits goto me Thanks and btw skynightco is down ryu f*d me over...AGAIN

Quote:
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();
}
TheLeGend209 is offline  
Thanks
2 Users
Old 01/23/2010, 10:21   #2
 
~quablerist~'s Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 40
Received Thanks: 0
Im sorry for asking this but I have no idea where I haveto paste this

Anyway nice
~quablerist~ is offline  
Old 01/23/2010, 11:29   #3
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
You just copied it out of samehvans source I clearly remember how it's written, because I gave him the packet myself.
ImmuneOne is offline  
Old 01/23/2010, 11:42   #4
 
felipeboladao's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
public static COPacket Flower2(uint Id, uint Type, uint Rank, uint RoseType)
{
string Flowers = Id.ToString();
byte[] Packet = new byte[1151 + 21 + Flowers.Length];
COPacket P = new COPacket(Packet);
P.WriteInt32(Type);
P.WriteInt32(Rank);
P.WriteInt32(RoseType);
P.WriteInt32(1);
P.WriteString(Flowers);
P.WriteInt64(0);

return P;
}
public static COPacket FlowerPacket(string Flowers, bool CreateInstance)
{
byte[] Packet = new byte[1150 + 21 + Flowers.Length];
COPacket P = new COPacket(Packet);
if (CreateInstance)
{
P.WriteInt16(1);
P.WriteInt16(0);
P.WriteInt16(0);
P.WriteInt32(1);
P.WriteString(Flowers);
P.WriteInt16(0);
}
return P;
}
public static COPacket SendFlowerScreen(uint Id)
{
byte[] Packet = new byte[0x3f2 + 28];
COPacket P = new COPacket(Packet);
P.WriteInt64(0);
P.WriteInt32(Id);
P.WriteInt16((ushort)0x4e0);
P.WriteInt16(0);
P.WriteInt16(0);
P.WriteInt16(0);
P.WriteInt16(0);
P.WriteInt16(0x74);
P.WriteInt64(0);

return P;
}

case 1150:
{
uint TargetID = BitConverter.ToUInt32(Data, 4);
GC.LocalMessage(2005, "Sending flower to target " + TargetID + ".");
if (Game.World.H_Chars.Contains(TargetID))
{
Game.World.H_Chars.Contains(TargetID);
GC.AddSend(Packets.SendFlowerScreen(GC.MyChar.Enti tyID));
}
break;
}
case 1151:
{
Features.Struct.Flowers F = GC.MyChar.Flowers;
string ToSend = F.RedRoses.ToString() + " " + F.RedRoses2day.ToString() + " " + F.Lilies.ToString() + " " + F.Lilies2day.ToString() + " ";
ToSend += F.Orchads.ToString() + " " + F.Orchads2day.ToString() + " " + F.Tulips.ToString() + " " + F.Tulips2day.ToString();
GC.AddSend(Packets.FlowerPacket(ToSend, true));
break;
}
is my theory, not tested.
felipeboladao is offline  
Old 01/23/2010, 13:16   #5
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
thanks
QuickCo is offline  
Old 01/23/2010, 13:20   #6
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
Where do you put this...? I've looked for a place to put it and just can't figure it out
.Ocularis is offline  
Old 01/23/2010, 13:47   #7
 
TheLeGend209's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
This is just the start of the Code...You Just Have to Change Packetbuilder and then find out were to put it if you dont know im sorry but u dont need to have a pserver
TheLeGend209 is offline  
Old 01/23/2010, 14:01   #8
 
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
Quote:
Originally Posted by TheLeGend209 View Post
This is just the start of the Code...You Just Have to Change Packetbuilder and then find out were to put it if you dont know im sorry but u dont need to have a pserver
Unless of course your going to explain where to put it this isn't a release and you should change the title.

I couldn't care less, I won't be adding to any server I work on, flowers are for girls.
Hanibal is offline  
Old 01/23/2010, 22:41   #9
 
a7x.'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 43
Received Thanks: 4
I agree with Hanibal, although as Immune said, this was taken directly from the SwordCo source (5101). I was browsing the source a couple days ago.
a7x. is offline  
Old 01/24/2010, 06:18   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Hanibal View Post
Unless of course your going to explain where to put it this isn't a release and you should change the title.

I couldn't care less, I won't be adding to any server I work on, flowers are for girls.
Lol'd

Why take credit for something you didn't code, as others have said, this is a direct copy+paste from the SwordCo source.
Arcо is offline  
Old 01/24/2010, 12:37   #11
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Hepatitis C View Post
Lol'd

Why take credit for something you didn't code, as others have said, this is a direct copy+paste from the SwordCo source.
yea that is true he just copy + paste from SwordCo
QuickCo is offline  
Old 01/26/2010, 14:08   #12
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
So does anyone know how to actually put this in a 5165 server...? Cause if so it would be nice to let everyone know including me since there are no lilies coded into the newestcoserver... and there are alot of ladies that would love to get a bunch of 99 lilies.

So could someone kindly figure out how this could be added please
.Ocularis is offline  
Thanks
1 User
Old 01/26/2010, 16:27   #13
 
elite*gold: 0
Join Date: Dec 2009
Posts: 87
Received Thanks: 2
where i make
i need help
Where else Aaht the code if permitted want know the place
alaa410 is offline  
Old 02/08/2010, 16:56   #14
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
I Hope that code will be release soon.
thanks in advance hehehehe more power 5165 coders. love you all
salem rey is offline  
Old 02/08/2010, 20:51   #15
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
omg use [ code ] instead of [ quote ]
copz1337 is offline  
Reply


Similar Threads 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
[Release] V5165 RegPage 100% Worken
02/15/2010 - CO2 PServer Guides & Releases - 18 Replies
This is a 100% worken regpage for though's who have 5165 severs or want 1 and dont know how 2 make the regpage for it. (=^_^=) People said that the first one register.rar, and if it really doesn't work properly try the new one i added.
[Release] SkyNightCo V5165 Source[REAL ONE]
01/24/2010 - CO2 PServer Guides & Releases - 8 Replies
Reason for closed: I dont want some faggit out there trying to start anohter 5165 server like jose skynightco is going to be the only good 5165 server out there and this was our out dated source #Closed



All times are GMT +2. The time now is 01:30.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.