Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions > CO2 PServer Guides & Releases
You last visited: Today at 09:17

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Release] Show how much "Money,CPs,VPs" did you got From the command

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
[Release] Show how much "Money,CPs,VPs" did you got From the command

It is easy and need nothing ..

All in Client.cs
Silvers/Money
Search for
Code:
if (Splitter[0] == "/silvers")
under this line :
Code:
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
Add
Code:
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Added " + NewSilvers + " Silvers.", 2005));
So the command will be
Code:
                                        if (Splitter[0] == "/silvers")
                                        {
                                            uint NewSilvers = uint.Parse(Splitter[1]);

                                            MyChar.Silvers = NewSilvers;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
                                            SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Added " + NewSilvers + " Silvers.", 2005));
                                        }
CPs
Search for
Code:
if (Splitter[0] == "/cps")
under this line
Code:
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
Add
Code:
 SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Added " + NewCPs + " CPs.", 2005));
VPs
Search for
Code:
if (Splitter[0] == "/vp")
Under this line
Code:
MyChar.VP = NewVP;
Add
Code:
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Added " + NewVP + " Virtue Points.", 2005));
Press thanks if i helped you ..



danielachraf is offline  
Thanks
2 Users
Old   #2
 
elite*gold: 0
Join Date: Jul 2006
Posts: 1,931
Received Thanks: 662
This is really useless, but I like to see that people are coming back from binaries


KraHen is offline  
Old   #3
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by ElDeRnEcRo View Post
This is really useless, but I like to see that people are coming back from binaries
lol i hate TQ binaries too ... but All servers are using it why ??
danielachraf is offline  
Thanks
1 User
Old   #4
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
This is not useless. a noob who is just learning could find this thread and it would be a perfect spot for him to start. It's very short and simple.


CIRASH is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
nice i guess..=]
CoAttack is offline  
Old   #6
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by CIRASH View Post
This is not useless. a noob who is just learning could find this thread and it would be a perfect spot for him to start. It's very short and simple.
Thanks
danielachraf is offline  
Thanks
1 User
Old   #7
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
Yeah good job on this. These are the kinds of little things we should show noobs. Not how to code whole quests and stuff. This is a good thread for newcomers.
CIRASH is offline  
Old   #8
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
Quote:
Originally Posted by CIRASH View Post
Yeah good job on this. These are the kinds of little things we should show noobs. Not how to code whole quests and stuff. This is a good thread for newcomers.
check out my video guides!!!
CoAttack is offline  
Old   #9
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,159
Maybe a bit easier:

Quote:
if (Splitter[0] == "/silvers")
{
MyChar.Silvers += uint.Parse(Splitter[1]);
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 4, MyChar.Silvers));
}
if (Splitter[0] == "/cps")
{
MyChar.CPs += uint.Parse(Splitter[1]);
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 30, MyChar.CPs));
}
if (Splitter[0] == "/silvers" || Splitter[0] == "/cps")
{
if (Splitter[0] == "/silvers")
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You gained " + Splitter[1] + " silvers!", 2005));
else
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You gained " + Splitter[1] + " ConquerPoints!", 2005));
}
_Emme_ is offline  
Old   #10
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by EmmeTheCoder View Post
Maybe a bit easier:
Yea it is good but long .. and i am lazy
danielachraf is offline  
Thanks
1 User
Old   #11
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,159
Quote:
if (Splitter[0] == "/silvers")
{
uint NewSilvers = uint.Parse(Splitter[1]);

MyChar.Silvers = NewSilvers;
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 4, MyChar.Silvers));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Added " + NewSilvers + " Silvers.", 2005));
}
if (Splitter[0] == "/cps")
{
uint NewCPs = uint.Parse(Splitter[1]);

MyChar.CPs = NewCPs;
SendPacket(General.MyPackets.Vital((long)MyChar.UI D, 30, MyChar.CPs));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Added " + NewVP + " Virtue Points.", 2005));
}
That's your code for Silvers/CPs. Besides, it's not even working properly, you're setting the characters silver to the newsilver, so you're not adding anything, just replacing.
_Emme_ is offline  
Old   #12
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
Quote:
Originally Posted by EmmeTheCoder View Post
That's your code for Silvers/CPs. Besides, it's not even working properly, you're setting the characters silver to the newsilver, so you're not adding anything, just replacing.
well that is how its first in the LOTF , he didn't make the command for /cps or /silvers he just added how much it tells you.. that is what he is releasing
CoAttack is offline  
Old   #13
 
elite*gold: 0
Join Date: Jul 2006
Posts: 1,931
Received Thanks: 662
IMO it`s easier to just do :

MyChar.CPs += uint.Parse(Splitter[0]);

And then you use /silvers XY or /silvers -XY


KraHen is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[RELEASE] "Pumaloco", "Style Fox" & "Brasil" GC
Not care about my English because I'm not very good, I'm Brazilian. Hello everybody, first of all let me say that I'm new here. But to help you I...
19 Replies - Grand Chase Hacks, Bots, Cheats & Exploits



All times are GMT +2. The time now is 09:17.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.