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
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.
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.
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?
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 : /
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
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.
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.
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)