how to change the price of broadcast message please say the way to do that and thanks
case Broadcast.BroadcastMessage:
Quote:
ini\StrRes.ini
Quote:
i donot wanna to change the message of the price i wanna change the price it is self like make the broadcast for 10000cps per message ??
thanks alot for your tring to help me but first point : i cannot find what are you talking about in source side and about changing client side the message that appear it will cost 5 cps it is easy to edit but i cannot really find how to do or edit the price after all your tring to help if u can explain more i will be thankfull to you .Quote:
Take the hint.
I don't know why I'm explaining this to you, probably because I've had about 8 cans of redbull and my hands are going fucking crazy.
You have two places to change the price.
1) The source (Where it checks if you have x cps and then if you do takes x CPs, be default 5)
2) Client side, To change the string where it says it will cost 5 CPs to send this message, it is not server side controlled. Though you could turn it serverside but I'm not getting into that.
In the source you just need to find out where it is handled(Normally packethandler) and change the check for CPs and the CPs removal.
In the client goto where I Don't have a username(aka problem) said, Client/Ini/StrRes.ini and find the default message(Something like "To send this message it will cost you 5CPs) find it, change it, save it.
It could be saved as a variable though, in that case you need to find the message and the variable name then find the variable and change it, though knowing conquer it could well affect other things.
If you need more help, then do ask.
loljk, kill yourself.
Ignore loader.exe, it has nothing to do with "it" iirc.Quote:
thanks alot for your tring to help me but first point : i cannot find what are you talking about in source side and about changing client side the message that appear it will cost 5 cps it is easy to edit but i cannot really find how to do or edit the price after all your tring to help if u can explain more i will be thankfull to you .
and some one tell me it is need to edit the loader.exe he say it is control this .
if (client.CPs >= 5)
{
client.CPs -= 5;
--Send broadcast stuff or w/e--
}
It's normally handled in PacketHandler.cs.Quote:
Ignore loader.exe, it has nothing to do with "it" iirc.
So you know how to change the message client-side, as for serverside you need to find where broadcasts are handled and it will be like
Just change the 5's to the new value.PHP Code:if (client.CPs >= 5)
{
client.CPs -= 5;
--Send broadcast stuff or w/e--
}