|
You last visited: Today at 07:37
Advertisement
[Help Request] Broadcasting Messages [5165]
Discussion on [Help Request] Broadcasting Messages [5165] within the CO2 Private Server forum part of the Conquer Online 2 category.
03/13/2010, 03:36
|
#1
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
[Help Request] Broadcasting Messages [5165]
Hey Everyone!
I decided that I'm going to just keep my 5165 source, thus I'm picking up where I left off. =]
This is my goal in the Broadcast System:
I want to be able to broadcast a message without CPs.
I started by doing this:
Code:
case 2050:
{
if (Data[4] == 3 && GC.MyChar.Silvers >= 100000)
{
if (Game.World.BroadCastCount <= 100)
{
GC.MyChar.Silvers -= 100000;
string Message = "";
for (byte i = 0; i < Data[13]; i++)
Message += Convert.ToChar(Data[14 + i]);
Game.BroadCastMessage B = new NewestCOServer.Game.BroadCastMessage();
B.Name = GC.MyChar.Name + GC.AuthInfo.Status;
B.Message = Message;
B.Place = Game.World.BroadCastCount;
Game.World.BroadCasts[Game.World.BroadCastCount] = B;
Game.World.BroadCastCount++;
Data[8] = B.Place;
GC.AddSend(Data);
}
}
break;
}
After that, I tested it with 100 CPs in my pocket.
It worked....
Then my testers tried it and couldn't use it.
It requires 5 Cps to get to the Broadcast window (Packet 2050).
Help? =\
|
|
|
03/13/2010, 03:40
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by -NewDawn-
Hey Everyone!
I decided that I'm going to just keep my 5165 source, thus I'm picking up where I left off. =]
This is my goal in the Broadcast System:
I want to be able to broadcast a message without CPs.
I started by doing this:
Code:
case 2050:
{
if (Data[4] == 3 && GC.MyChar.Silvers >= 100000)
{
if (Game.World.BroadCastCount <= 100)
{
GC.MyChar.Silvers -= 100000;
string Message = "";
for (byte i = 0; i < Data[13]; i++)
Message += Convert.ToChar(Data[14 + i]);
Game.BroadCastMessage B = new NewestCOServer.Game.BroadCastMessage();
B.Name = GC.MyChar.Name + GC.AuthInfo.Status;
B.Message = Message;
B.Place = Game.World.BroadCastCount;
Game.World.BroadCasts[Game.World.BroadCastCount] = B;
Game.World.BroadCastCount++;
Data[8] = B.Place;
GC.AddSend(Data);
}
}
break;
}
After that, I tested it with 100 CPs in my pocket.
It worked....
Then my testers tried it and couldn't use it.
It requires 5 Cps to get to the Broadcast window (Packet 2050).
Help? =\
|
Are you sure you used the right exe after you debugged?
|
|
|
03/13/2010, 04:17
|
#3
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by .Arco
Are you sure you used the right exe after you debugged?
|
yes. rofl. I'm not that nooby =P
and why did someone thank you for that? rofl!
|
|
|
03/13/2010, 04:24
|
#4
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
You need to edit the client-side part...
|
|
|
03/13/2010, 04:28
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by CptSky
You need to edit the client-side part...
|
I'm pretty sure he didn't do any clientside edits or he would have tried that already. He was able to do it no problems.
|
|
|
03/13/2010, 04:38
|
#6
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by .Arco
I'm pretty sure he didn't do any clientside edits or he would have tried that already. He was able to do it no problems.
|
Well yah, I did try client side edits. I changed a few lines in the StrRes Configuration File so that the client said "Cost: 100k" instead of "Cost: 5 CPs".
How does that have to do with the problem though? It can't be client based. The server is what communicates with the character.
|
|
|
03/13/2010, 04:39
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by -NewDawn-
Well yah, I did try client side edits. I changed a few lines in the StrRes Configuration File so that the client said "Cost: 100k" instead of "Cost: 5 CPs".
How does that have to do with the problem though? It can't be client based. The server is what communicates with the character.
|
There are alot of things that are server side that involve client side shiz.
Give one of your players your strres and see if that works.
|
|
|
03/13/2010, 04:50
|
#8
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by .Arco
There are alot of things that are server side that involve client side shiz.
Give one of your players your strres and see if that works.
|
strres?
|
|
|
03/13/2010, 04:50
|
#9
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by -NewDawn-
strres?
|
.ini
|
|
|
03/13/2010, 05:14
|
#10
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
Quote:
Originally Posted by .Arco
.ini
|
Oh, no. I tried it on mine and it doesn't work when I have 0 CPs. It can't be client sided anyways. The client can't check your CPs...
And all I changed in that is so it SAYS that it costs 100k.
The problem is, people with 0 CPs can't even get to that window.
(at a friend's house for a few hours... afk)
|
|
|
03/13/2010, 05:21
|
#11
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by -NewDawn-
Oh, no. I tried it on mine and it doesn't work when I have 0 CPs. It can't be client sided anyways. The client can't check your CPs...
And all I changed in that is so it SAYS that it costs 100k.
The problem is, people with 0 CPs can't even get to that window.
(at a friend's house for a few hours... afk)
|
It sure as heck can be clientsided. Idk why you're saying it can't lol.
|
|
|
03/13/2010, 05:48
|
#12
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
Quote:
Originally Posted by -NewDawn-
Well yah, I did try client side edits. I changed a few lines in the StrRes Configuration File so that the client said "Cost: 100k" instead of "Cost: 5 CPs".
How does that have to do with the problem though? It can't be client based. The server is what communicates with the character.
|
StrRes -> String Ressource... You think that the check of the CPs is in a string? If you really want to use money, just remove the client-side check. For the moment, before sending the packet, the client check if your character have enough CPs. You can change it for money, but its more easy to remove the check and anyway, the server already check the value...
Nothing to add... If you can't understand that, its that you are not ready.
|
|
|
03/14/2010, 05:46
|
#13
|
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
|
Quote:
Originally Posted by -NewDawn-
Well yah, I did try client side edits. I changed a few lines in the StrRes Configuration File so that the client said "Cost: 100k" instead of "Cost: 5 CPs".
How does that have to do with the problem though? It can't be client based. The server is what communicates with the character.
|
Hint hint: StrRes.ini (It's your best friend in the Private Server world)
|
|
|
03/15/2010, 02:47
|
#14
|
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
|
That won't work. I'll try it but it won't work. Those are only strings that replace a code.
...
Didn't work. It's just a string that goes into the client. I'm telling you guys that it's server side... i just can't figure out what triggers it.
|
|
|
03/15/2010, 03:09
|
#15
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by -NewDawn-
That won't work. I'll try it but it won't work. Those are only strings that replace a code.
...
Didn't work. It's just a string that goes into the client. I'm telling you guys that it's server side... i just can't figure out what triggers it.
|
Off topic but how are you going to tell people that have been coding for +1year that its not something, when you only been coding for >1month.
|
|
|
 |
|
Similar Threads
|
[liveStream] show your live broadcasting
07/10/2010 - EO PServer Hosting - 2 Replies
hey all
i was wondering a small thing
most users are always wondering how the game looks , what is differend and so on
so i wanted to realease this small thing
there is a program called LiveStream and it allows you to stream your screen live (with audio)
i personal use it to make vids , as it only capture the video itself or the game itself with out your complete screen
|
[Request] Request all 5165 sources/npc dialog
02/28/2010 - CO2 Private Server - 0 Replies
so i want to do a good source like every1 right ? so i stay some time and i got a idea to take lot of 5165 and take what's not bugged and essentialy :mofo: i will release it :D
|
[REQUEST]5165 Client Request Help/ Question
12/18/2009 - CO2 Private Server - 5 Replies
hey yall its me TheLeGend Im Back in CO for a while but i gots a question
ok so i have a 5165 Client im editing for a server but the only problem is that stupid-ass popup page that comes up the Conquer Online - Official Site - co.91.com one well i was just wondering how can i edit that site orrr how can i make it not popup anymore???
Thanks so Much,
TheLeGend209
|
All times are GMT +1. The time now is 07:41.
|
|