Flower chats

01/24/2012 19:53 sonofskeletor#1
Hi Folks i was wondering if someone could help me with this shit, ive tryed 3 different ways and there all failing.

Code:
                if (GC.MyChar.Flowers.Lilies > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, ("#55") + Message + ("#55"));
                else if (GC.MyChar.Flowers.RedRoses > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, ("#55") + Message + ("#55"));
                else if (GC.MyChar.Flowers.Orchids > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, ("#55") + Message + ("#55"));
                else if (GC.MyChar.Flowers.Tulips > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, ("#55") + Message + ("#55"));
                else
                {
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Message);
Code:
                if (GC.MyChar.Flowers.Lilies > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, "#55" + Message + "#55");
                else if (GC.MyChar.Flowers.RedRoses > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, "#55" + Message + "#55");
                else if (GC.MyChar.Flowers.Orchids > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, "#55" + Message + ("#55"));
                else if (GC.MyChar.Flowers.Tulips > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, "#55" + Message + "#55");
                else
                {
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Message);

AND FINALY

Code:
string Rose = ("#55");
Code:
                if (GC.MyChar.Flowers.Lilies > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Rose + Message + Rose);
                else if (GC.MyChar.Flowers.RedRoses > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Rose + Message + Rose);
                else if (GC.MyChar.Flowers.Orchids > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Rose + Message + Rose);
                else if (GC.MyChar.Flowers.Tulips > 1)
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Rose + Message + Rose);
                else
                {
                    Game.World.Chat(GC.MyChar, ChatType, From, To, Message);
Im using rose as a default for now just until i get it working.
01/24/2012 19:58 pro4never#2
What exactly goes wrong? Have you tried breakpointing it to see which packet you're actually sending?

Also... the ( ) is redundant... That's to sort order of operations when you're not even doing any operations...
01/24/2012 20:02 sonofskeletor#3
Well, Its just sending the messages ordanary, and yes i have break pointed it
The cheak works fine its the:

Game.World.Chat(GC.MyChar, ChatType, From, To, ("#55") + Message + ("#55"));
Game.World.Chat(GC.MyChar, ChatType, From, To, "#55" + Message + "#55");
Game.World.Chat(GC.MyChar, ChatType, From, To, Rose + Message + Rose);

Is the only shit that aint working,
01/24/2012 20:03 Spirited#4
#2, line one is the correct way to write those strings.
01/24/2012 20:17 sonofskeletor#5
Ok any idea where im going wrong then because it dont seem to be working altho the message does output, ahh mabey its just my client that cant see the messages, ill go cheak that now dident think of that before.

[Only registered and activated users can see links. Click Here To Register...]
01/24/2012 21:07 pro4never#6
You still haven't breakpointed and told us which statement actually is being executed.

For all we know your flower counts are all zero (because you never assigned them properly) and so it's always running the final else statement. Breakpoint them and we can help you. That screenshot shows ZERO information and is useless as far as debugging goes. There's no errors, no breakpoints and no information what so ever.
01/24/2012 22:17 sonofskeletor#7
I told you pro4never yes i have break pointed it and it works fine it just wasent outputing the #64 its working now, for other people to see appart from the local client aka the sender

[Only registered and activated users can see links. Click Here To Register...]

How can i get the sending client to see the #64 ?
01/24/2012 22:22 Spirited#8
*sigh* the problem is that you're trying to add the flowers AFTER the message has been sent to the clients.
And wait... you're the fucking server that DDOS attacks everyone.
01/25/2012 01:05 sonofskeletor#9
Quote:
Originally Posted by Fаng View Post
*sigh* the problem is that you're trying to add the flowers AFTER the message has been sent to the clients.
And wait... you're the fucking server that DDOS attacks everyone.
Thats actualy snow rofl aka catalyst conquer
i only crashed that 1 server.
and yes your right when i break pointed the message still went threw on the local client, any ideas where about i should be handling the flowers, chattypes mabey ?

Edit. Snow leached my client i designed watch the trailer the client credits are to me.
01/25/2012 01:45 Spirited#10
Quote:
Originally Posted by sonofskeletor View Post
Thats actualy snow rofl aka catalyst conquer
i only crashed that 1 server.
and yes your right when i break pointed the message still went threw on the local client, any ideas where about i should be handling the flowers, chattypes mabey ?

Edit. Snow leached my client i designed watch the trailer the client credits are to me.
If that picture is yours... then it's your server. "Gareth[PM]". I remember because a lot of people were complaining about "Gareth" hacking them. At first I thought they were talking about me (since my name is Gareth), but I soon found out it was from THAT server and THAT PM.
01/25/2012 03:43 pro4never#11
@OP: fairly sure client side effect is caused by flower packets... not editing the actual string. Structure the full flower packets and use them properly and I guarantee it will work.

The client does not need the message repeated back to itself. As you saw it will still show the message even if you breakpoint and don't send the client anything.
01/26/2012 19:53 sonofskeletor#12
Well umm i was adding the message string in the wrong place, i was doing it in chat.cs instead of world.cs
01/26/2012 22:26 { Angelius }#13
if the whole thing was about spawning the #Flower# Chat text #Flower# thing..

pro is right.

There is a mesh value for each type of flowers just like players/mobs/etc mesh's and it has to be used in the spawn packet 10014 and some other packets which i dont remember what they were in order to see those flowers while chatting/broadcasting/world chatting/next to the player name/etc

so simply what you are doing is wrong. or better say you are not doing it the right way :P