[Help] Flower Packet

10/08/2009 06:06 hunterman01#1
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 ImmortalYashi#2
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 Zion~#3
Quote:
Originally Posted by ImmortalYashi View Post

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 _tao4229_#4
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 CurseOfExcalibur#5
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 raidenx123#6
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 CurseOfExcalibur#7
Quote:
Originally Posted by raidenx123 View Post
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 raidenx123#8
thats to much work when ur just having a conversation
10/09/2009 01:53 ImFlamedCOD#9
Pmed you my flower packet you should be able to use it to figure out you problem.
10/09/2009 05:19 hunterman01#10
Quote:
Originally Posted by ImmortalYashi View Post
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 samehvan#11
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 :p surly i still missing some , anyway try to correct the length and try again
10/09/2009 08:28 ImmortalYashi#12
Quote:
Originally Posted by samehvan View Post
...
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 Zion~#13
Quote:
Originally Posted by CurseOfExcalibur View Post
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 hunterman01#14
Quote:
Originally Posted by Zion~ View Post
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 CurseOfExcalibur#15
Quote:
Originally Posted by Zion~ View Post
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?