|
You last visited: Today at 19:46
Advertisement
[Help] Flower Packet
Discussion on [Help] Flower Packet within the CO2 Private Server forum part of the Conquer Online 2 category.
10/08/2009, 06:06
|
#1
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
[Help] Flower Packet
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
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CoEmu_v2_GameServer.Packets
{
public partial class ConquerPacket
{
public static byte[] Flower(Structs.Struct.Flowers Flower,int Type,int Pos)
{
CoEmu_v2_GameServer.Handlers.Handler.COPacket Packet = new CoEmu_v2_GameServer.Handlers.Handler.COPacket(new byte[124 + 8[COLOR="Red"]]);<<< NOT THIS IS BULLSHIT UNTIL I CAN ACTUALLY ADD IT UP[/COLOR]
Packet.WriteUInt16(124);
Packet.WriteUInt16(1150);
Packet.WriteUInt32((uint)10);
Packet.WriteUInt16(0);
Packet.WriteUInt16(Flower.FlowersUID);
Packet.WriteUInt16(Type);
Packet.WriteUInt16(Pos);
Packet.WriteUInt32((uint)Flower.FlowersUID);
Packet.WriteUInt32((uint)Flower.FlowerAmount);
}
}
That was handlers
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CoEmu_v2_GameServer.Structs
{
public partial class Struct
{
public class Flowers
{
public int FlowersUID = 0;[COLOR="Red"]<< may be wrong[/COLOR]
public int CharId = 0; [COLOR="red"]<<< may be wrong[/COLOR]
public int FlowerAmount = 0; [COLOR="red"]<< may be wrong[/COLOR]
public string [COLOR="red"]<<<< Not sure what to string here[/COLOR]
}
}
}
This is what i have done its no where near being ready i think i might have messed it up but i know for sure the packet id is 1150 << at least thats what kinshi told me
Anyways any help will be appreciated
Btw i am still learning packets so dont freak out saying noob and shit
|
|
|
10/08/2009, 23:04
|
#2
|
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
|
Heh i've been waiting all day to see if someone actually have the guts besides the known coders to post something.
Ehh right let's get back on the thread's point.
You should have a struct like this
int FlowerSendedBy = 0; // CSocket.Client.ID When sended
int FlowerReceivedBy = 0; // ClientSocket TSocket = Nano.ClientPool[Target]; when sended and received so TSocket.Client.ID
int FlowersReceived = 0;
int FlowersSended = 0;
That's all you would need for it.
and about the packet is it causing some errors while using the catch method?
if not you should try to use the temp data method to know the id needed for it.
I'm looking forward to a feedback,
Yashi.
|
|
|
10/08/2009, 23:30
|
#3
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
|
Quote:
Originally Posted by ImmortalYashi
int FlowerSendedBy = 0; // CSocket.Client.ID When sended
int FlowerReceivedBy = 0; // ClientSocket TSocket = Nano.ClientPool[Target]; when sended and received so TSocket.Client.ID
int FlowersReceived = 0;
int FlowersSended = 0;
|
Indeed.
You also need to add a duration of 24 hours for each time a client send a flower.
That's basically it, I started my flower system about a week ago.
|
|
|
10/09/2009, 01:24
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Flowers are the most f*cking annoying and pointless system TQ's ever added to Conquer.
Shouldn't they work on not sucking at game making?
|
|
|
10/09/2009, 01:37
|
#5
|
elite*gold: 0
Join Date: May 2009
Posts: 151
Received Thanks: 29
|
I have to agree, why is everyone trying to mimic what TQ has done, the first purpose of private servers is to try to run a server, without TQ's feeble ideas.
Why would you want to add a flower system in the server? what is the point? so the most dude acting like a girl that talks in a sexual way gets the flowers? umm, may i ask also ask what is the reward for it?
|
|
|
10/09/2009, 01:39
|
#6
|
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 441
|
when u get enuf you get a special flower at the beggining and end of ur txt everytime u chat
|
|
|
10/09/2009, 01:41
|
#7
|
elite*gold: 0
Join Date: May 2009
Posts: 151
Received Thanks: 29
|
Quote:
Originally Posted by raidenx123
when u get enuf you get a special flower at the beggining and end of ur txt everytime u chat 
|
You can also copy the flowers and paste them everytime you want to chat
|
|
|
10/09/2009, 01:48
|
#8
|
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 441
|
thats to much work when ur just having a conversation
|
|
|
10/09/2009, 01:53
|
#9
|
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 141
|
Pmed you my flower packet you should be able to use it to figure out you problem.
|
|
|
10/09/2009, 05:19
|
#10
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
Originally Posted by ImmortalYashi
Heh i've been waiting all day to see if someone actually have the guts besides the known coders to post something.
Ehh right let's get back on the thread's point.
You should have a struct like this
int FlowerSendedBy = 0; // CSocket.Client.ID When sended
int FlowerReceivedBy = 0; // ClientSocket TSocket = Nano.ClientPool[Target]; when sended and received so TSocket.Client.ID
int FlowersReceived = 0;
int FlowersSended = 0;
That's all you would need for it.
and about the packet is it causing some errors while using the catch method?
if not you should try to use the temp data method to know the id needed for it.
I'm looking forward to a feedback,
Yashi.
|
Yeah well like i said im trying just not real well with packets yet : /
|
|
|
10/09/2009, 06:32
|
#11
|
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
|
waw a 124 Packet length ??? that surly will disconnect the client u send it that packet coz the data u send is less than the length given,, and i think your actual length for the data u posted is 24 not 124 , i can't really help with flowers coz i know nothing about it yet , my packet processor doesn't even give me the Target ID when i send a flower to a player  surly i still missing some , anyway try to correct the length and try again
|
|
|
10/09/2009, 08:28
|
#12
|
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
|
Quote:
Originally Posted by samehvan
...
|
You should do it yourself when sending a flower if you check my post you will see what's used for it, Add me on msn i will give you the thing i promised to you and i will help with the flowers  .
Cya'round,
Yashi.
|
|
|
10/09/2009, 13:18
|
#13
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
|
Quote:
Originally Posted by CurseOfExcalibur
I have to agree, why is everyone trying to mimic what TQ has done, the first purpose of private servers is to try to run a server, without TQ's feeble ideas.
Why would you want to add a flower system in the server? what is the point? so the most dude acting like a girl that talks in a sexual way gets the flowers? umm, may i ask also ask what is the reward for it?
|
One reason, to test our skill.
Then we improve on these systems to show that we are truly greater than TQ.
|
|
|
10/10/2009, 01:51
|
#14
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
Originally Posted by Zion~
One reason, to test our skill.
Then we improve on these systems to show that we are truly greater than TQ.
|
Exactly everyone asks me why i even try to put flowers in my server
for me its like a pride thing to see if i can do it
|
|
|
10/10/2009, 02:50
|
#15
|
elite*gold: 0
Join Date: May 2009
Posts: 151
Received Thanks: 29
|
Quote:
Originally Posted by Zion~
One reason, to test our skill.
Then we improve on these systems to show that we are truly greater than TQ.
|
There are millions of other ways to prove the same point instead of trying to mimic the flower system..
Where is creativity?
|
|
|
Similar Threads
|
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)
|
[REQ] Nobility icon byte and flower packet
10/18/2009 - CO2 Private Server - 13 Replies
#DELETED
Got it myself by logging!
|
All times are GMT +1. The time now is 19:46.
|
|