Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 02:18

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

Advertisement



[Small-Release] A few nice commands for LOTF

Discussion on [Small-Release] A few nice commands for LOTF within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 04/27/2011, 22:10   #16
 
elite*gold: 0
Join Date: Apr 2011
Posts: 73
Received Thanks: 12
Quote:
Originally Posted by JobvdH View Post
The reason you need to log off is because you forgot to update the character.
This will fix the code and you wont need to log off!
(NOTE: This is tested on Re-UnitedCo Source/CoMy)

Code:
                                            if (Splitter[0] == "/str")
                                            {
                                                ushort NewStr = ushort.Parse(Splitter[1]);
                                                MyChar.Str = NewStr;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 16, NewStr));
                                            }

                                            if (Splitter[0] == "/agi")
                                            {
                                                ushort NewAgi = ushort.Parse(Splitter[1]);
                                                MyChar.Agi = NewAgi;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 17, NewAgi));
                                            }

                                            if (Splitter[0] == "/vit")
                                            {
                                                ushort NewVit = ushort.Parse(Splitter[1]);
                                                MyChar.Vit = NewVit;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 15, NewVit));
                                            }

                                            if (Splitter[0] == "/spi")
                                            {
                                                ushort NewSpi = ushort.Parse(Splitter[1]);
                                                MyChar.Spi = NewSpi;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 14, NewSpi));
                                            }
Why not just do?
Code:
                                            if (Splitter[0] == "/str")
                                            {
                 SendPacket(General.MyPackets.Vital(MyChar.UID, 16, ushort.Parse(Splitter[1])));
                                            }
Secured is offline  
Old 04/28/2011, 20:19   #17
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Thats possible too, but i show him the way of updating to make him learn it and not to show him difficult lines
JobvdH is offline  
Reply

Tags
commands for lotf


Similar Threads Similar Threads
[Small Release] 5017 PHP Status Checker (LOTF)
12/01/2011 - CO2 PServer Guides & Releases - 11 Replies
THIS IS FOR LOTF!! I Tested It And It Works!! <?php require ("connect.php"); $res = mysql_query("SELECT count(*) FROM accounts;"); $val = mysql_fetch_array($res); echo "<div style='top'><font color='white'>Accounts Created: ".$val."</div>";
[Release]Super commands for LOTF
01/26/2010 - CO2 PServer Guides & Releases - 11 Replies
Here is alot commands for lotf. That you can use. They might be in source already, but these are fixed =] Some are also jsut some new commands =] Botjail if (Splitter == "/botjail") {
[RELEASE]Some New LOTF commands
07/06/2009 - CO2 PServer Guides & Releases - 9 Replies
Very simple go to where all ur other commands and are put these 2 in or what ever one u want in ////////CREDITS Go To Pete//////////////// if (Splitter == "/givecps") { foreach (DictionaryEntry DE in World.AllChars) { ...
Commands for LOTF server?
08/13/2008 - Conquer Online 2 - 11 Replies
Can some1 post Fully commands for LOTF server? i got some problems with making items.. i cant make em:/...



All times are GMT +1. The time now is 02:18.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.