Register for your free account! | Forgot your password?

You last visited: Today at 11:04

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

 

[Small-Release] A few nice commands for LOTF

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Oct 2008
Posts: 326
Received Thanks: 43
Smile [Small-Release] A few nice commands for LOTF

~~ 16-9-2010 ~~

The CPS and GOLD 2 all commands

Code:
if (Splitter[0] == "/cps2all")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    {
                                                        uint NewCPs = uint.Parse(Splitter[1]);
                                                        Char.CPs += NewCPs;
                                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                                        Console.WriteLine(MyChar.Name + " gave away " + Splitter[1] + " CPs");
                                                    }
                                                }
                                            }

                                            if (Splitter[0] == "/gold2all")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    {
                                                        uint Newsilvers = uint.Parse(Splitter[1]);
                                                        Char.WHSilvers += Newsilvers;
                                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.Silvers));
                                                        Console.WriteLine(MyChar.Name + " gave away " + Splitter[1] + " gold");
                                                    }
                                                }
                                            }

BOTJAIL, This send you to one of the mines of the game, in LOTF THOSE ARE UNUSED CHANGE MAP ID IF YOU WANT
/bj to botjail, /release to release it also say something in console

Code:
if (Splitter[0] == "/bj")
                                        {
                                            foreach (DictionaryEntry DE in World.AllChars)
                                            {
                                                Character Char = (Character)DE.Value;
                                                if (Char.Name == Splitter[1])
                                                {
                                                    Char.Teleport(6001, 25, 75);
                                                    Console.WriteLine(Splitter[1] + " has been botjailed.");
                                                    break;
                                                }
                                                else
                                                {
                                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
                                                }
                                            }

                                        }

                                        if (Splitter[0] == "/release")
                                        {
                                            foreach (DictionaryEntry DE in World.AllChars)
                                            {
                                                Character Char = (Character)DE.Value;
                                                if (Char.Name == Splitter[1])
                                                {
                                                    Char.Teleport(1002, 438, 380);
                                                    Console.WriteLine(Splitter[1] + " has been released.");
                                                    break;
                                                }
                                                else
                                                {
                                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
                                                }
                                            }

                                        }

/log log things into your console! (I used this because everything in console comes into serverlog.txt and if i had some notes to anything i used that

Code:
if (Splitter[0] == "/log") // Used to log things into Console. Everything in Console comes in ServerLog so also this.
                                        {
                                            Message = Message.Remove(0, 5);
                                            Console.WriteLine(Message, MyChar.Name, 2011);
                                            if (Splitter[0] == "/xp")

                                            {
                                                MyChar.XpList = true;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
                                            }
WHERE TO PUT ALL THOSE CODES
Actually,, search for and put it below that
Quote:
if (Splitter[0] == "/changename")
{
string newname = Splitter[1];
MyChar.Name = newname;
SendPacket(General.MyPackets.CharacterInfo(MyChar) );
World.SpawnMeToOthers(MyChar, false);
MyChar.SendEquips(false);
}
ILL KEEP THIS UP TOO DATE MAKING LOT OF COMMANDS

NEW


___---*** NOTE *** ~~I DIDN'T TEST THOSE~~ *** NOTE *** ---___

/str for strength, /spi for spirit , /vit for vitality, /agi for agility, as i said i didn't test em yet because my client is messed up, im pretty sure it works


Code:
if (Splitter[0] == "/str")
                                            {
                                                ushort NewStr = ushort.Parse(Splitter[1]);

                                                MyChar.Str = NewStr;
                                            }

                                            if (Splitter[0] == "/agi")
                                            {
                                                ushort NewAgi = ushort.Parse(Splitter[1]);

                                                MyChar.Agi = NewAgi;
                                            }

                                            if (Splitter[0] == "/vit")
                                            {
                                                ushort NewVit = ushort.Parse(Splitter[1]);

                                                MyChar.Vit = NewVit;
                                            }

                                            if (Splitter[0] == "/spi")
                                            {
                                                ushort NewSpi = ushort.Parse(Splitter[1]);

                                                MyChar.Spi = NewSpi;
                                            }
You have to relog before those working,, im working too fix that.



jackpotsvr is offline  
Thanks
3 Users
Old   #2
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 74
Ive seen some peoples starting with 5017 again.
Cool


dowhatuwant is offline  
Old   #3
 
elite*gold: 20
Join Date: Oct 2008
Posts: 326
Received Thanks: 43
Quote:
Originally Posted by ☆★Zuper★☆ View Post
Ive seen some peoples starting with 5017 again.
Cool
I actually love 5017
I started with Re-United CO and im about editing lots :P,, All will be posted on EPvP.

I added the Attribute Commands because i saw lots people asking it, but didn't tested it myself yet because my client is messed up..

Probably you'll see more of 5017
jackpotsvr is offline  
Old   #4
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 74
If u want alots event, or things i released a source on zTREME that gots.


dowhatuwant is offline  
Old   #5
 
elite*gold: 0
Join Date: Jul 2010
Posts: 223
Received Thanks: 23
Why don't you try upgrading the source to something around 5080 so it has the new client and compose system without the ninja? =o That'd be cool! =] I've thought of doing that myself!
-Fng- is offline  
Old   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Quote:
Originally Posted by -Fng- View Post
Why don't you try upgrading the source to something around 5080 so it has the new client and compose system without the ninja? =o That'd be cool! =] I've thought of doing that myself!
Cause its unstable as hell. I'm doing the same with Hybrids source but to patch 5071 so it has the new composition system WITHOUT fans and towers.
Arcо is offline  
Thanks
1 User
Old   #7
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 74
Quote:
Originally Posted by Аrco View Post
Cause its unstable as hell. I'm doing the same with Hybrids source but to patch 5071 so it has the new composition system WITHOUT fans and towers.
unstable is not the word
dowhatuwant is offline  
Old   #8
 
elite*gold: 0
Join Date: Jul 2010
Posts: 223
Received Thanks: 23
My source could handle it. All I'd have to do is finish my switch to the earlier auth and game server system. I'm working on patch 5300 right now... but that can be my next goal! =] So it doesn't have fans and towers, that's a good thing! And it has the newer composition system, but what seems to be unstable about it? The client itself?
-Fng- is offline  
Old   #9

 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,382
Received Thanks: 1,043
You need to update the value on the client. (Attrib. command)
CptSky is offline  
Old   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Quote:
Originally Posted by -Fng- View Post
My source could handle it. All I'd have to do is finish my switch to the earlier auth and game server system. I'm working on patch 5300 right now... but that can be my next goal! =] So it doesn't have fans and towers, that's a good thing! And it has the newer composition system, but what seems to be unstable about it? The client itself?
You're talking about ugprading 5017COServerProject to a higher patch right? The source is unstable as hell is what we're saying,
Arcо is offline  
Old   #11
 
elite*gold: 20
Join Date: Oct 2008
Posts: 326
Received Thanks: 43
Quote:
Originally Posted by Аrco View Post
You're talking about ugprading 5017COServerProject to a higher patch right? The source is unstable as hell is what we're saying,
Its not my idea to do that.
jackpotsvr is offline  
Old   #12
 
elite*gold: 0
Join Date: Jul 2010
Posts: 223
Received Thanks: 23
Quote:
Originally Posted by Аrco View Post
You're talking about ugprading 5017COServerProject to a higher patch right? The source is unstable as hell is what we're saying,
Nah. If my source can handle 5165... that means that it can handle 5095 right? So then what makes it not able to handle an even lower patch? They use the same auth system right? =]
-Fng- is offline  
Old   #13
 
elite*gold: 0
Join Date: Sep 2009
Posts: 96
Received Thanks: 22
Quote:
Originally Posted by -Fng- View Post
Nah. If my source can handle 5165... that means that it can handle 5095 right? So then what makes it not able to handle an even lower patch? They use the same auth system right? =]
Okay we get it you have your own source now stop saying it on all your post.
And what arco is saying LOTF can't handle it.

@
ThreadStarter

Thanks for contributing.
nwng is offline  
Thanks
1 User
Old   #14
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Quote:
Originally Posted by -Fng- View Post
Nah. If my source can handle 5165... that means that it can handle 5095 right? So then what makes it not able to handle an even lower patch? They use the same auth system right? =]
Oh my gawd. You obviously aren't getting the point.
The source is ****. 'Nuff said.
Arcо is offline  
Thanks
1 User
Old   #15
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 115
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));
                                            }


JobvdH is offline  
Reply

Tags
commands for lotf



« Previous Thread | Next Thread »

Similar Threads
[Small Release] 5017 PHP Status Checker (LOTF)
THIS IS FOR LOTF!! I Tested It And It Works!! <?php require ("connect.php"); $res = mysql_query("SELECT count(*) FROM accounts;"); $val =...
11 Replies - CO2 PServer Guides & Releases
[Release]Super commands for LOTF
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 =]...
11 Replies - CO2 PServer Guides & Releases
[RELEASE]Some New LOTF commands
Very simple go to where all ur other commands and are put these 2 in or what ever one u want in ...
9 Replies - CO2 PServer Guides & Releases
Commands for LOTF server?
Can some1 post Fully commands for LOTF server? i got some problems with making items.. i cant make em:/...
11 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 11:04.


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

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