|
You last visited: Today at 14:19
Advertisement
Flower chats
Discussion on Flower chats within the CO2 Private Server forum part of the Conquer Online 2 category.
01/24/2012, 19:53
|
#1
|
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
|
Flower chats
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
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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
|
#3
|
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
|
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 **** that aint working,
|
|
|
01/24/2012, 20:03
|
#4
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
#2, line one is the correct way to write those strings.
|
|
|
01/24/2012, 20:17
|
#5
|
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
|
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.
|
|
|
01/24/2012, 21:07
|
#6
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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
|
#7
|
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
|
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
How can i get the sending client to see the #64 ?
|
|
|
01/24/2012, 22:22
|
#8
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
*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 ******* server that DDOS attacks everyone.
|
|
|
01/25/2012, 01:05
|
#9
|
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
|
Quote:
Originally Posted by Fаng
*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 ******* 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
|
#10
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
Quote:
Originally Posted by sonofskeletor
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
|
#11
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
@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
|
#12
|
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
|
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
|
#13
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
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
|
|
|
 |
Similar Threads
|
[B] Chats
11/02/2011 - elite*gold Trading - 12 Replies
Chats
http://img842.imageshack.us/img842/8020/trennlini e2.png
Hallo,
hier möchte ich Euch nun meinen neuen Chat zum Verkauf anbieten. Er ist akutell nicht fertig. Wenn Ihr einen kauft, wird er individuell auf euch eingestellt.
Funktion | Basic 25http://www.elitepvpers.com/images/tbm/gold.gif | Pro 50http://www.elitepvpers.com/images/tbm/gold.gif
Farbl hervorhebungen | http://www.elitepvpers.com/images/list_n.gif | http://www.elitepvpers.com/images/list_y.gif
Kick Funktion |...
|
Special Chats
01/04/2011 - CO2 Exploits, Hacks & Tools - 30 Replies
Little tool I made to do various special functions with chat. Also auto spams messages.
http://dl.dropbox.com/u/2041912/chatbotss.jpg
I think the buttons explain themselves..
Spam with delay will continuously spam with the set delay until you change the radio button to the other option.
NOTICE:
I have added where you can manually change the hero base pointer if the client gets updated and the address moves. Some things to know about this: If it says ConquerOnline instead of your...
|
Seeing Past Chats?
08/15/2010 - Shaiya Private Server - 20 Replies
is there a way i can see what people say in game? is it recorded anywhere into a .txt file or something that i can find, open and read through?
|
Flower
06/12/2010 - EO PServer Hosting - 2 Replies
IN my server when a player from the flowers to another player, the effect of flowers is visible to the entire server.
it draws when taking this event or while going up a pk
can someone help me put the effect only to the person receiving the flowers?
Tank you :handsdown::handsdown::handsdown::handsdown::hands down:
|
Help team chats or something
03/04/2010 - CO2 Private Server - 3 Replies
hi i am the owner of a server and i was wondering if there was something like team speak but free that me and my team can just connect and talk FREE<--
it would e great! :)
and i want it something like were people don't have to add people as friends...
just connect switch rooms :)
thanks
5mutny team
|
All times are GMT +1. The time now is 14:23.
|
|