[Small-Release] A few nice commands for LOTF

09/16/2010 17:39 jackpotsvr#1
~~ 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 :confused::confused:
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. :)
09/16/2010 19:36 dowhatuwant#2
Ive seen some peoples starting with 5017 again.
Cool :)
09/16/2010 23:13 jackpotsvr#3
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
09/16/2010 23:52 dowhatuwant#4
If u want alots event, or things i released a source on zTREME that gots.
09/16/2010 23:59 -Fáng-#5
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!
09/17/2010 00:14 Arcо#6
Quote:
Originally Posted by -Fáng- 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.
09/17/2010 00:29 dowhatuwant#7
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
09/17/2010 01:07 -Fáng-#8
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?
09/17/2010 02:20 CptSky#9
You need to update the value on the client. (Attrib. command)
09/17/2010 03:41 Arcо#10
Quote:
Originally Posted by -Fáng- 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,
09/17/2010 07:33 jackpotsvr#11
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.
09/17/2010 07:39 -Fáng-#12
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? =]
09/17/2010 07:55 ØnëwïngëÐ#13
Quote:
Originally Posted by -Fáng- 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.
09/18/2010 08:35 Arcо#14
Quote:
Originally Posted by -Fáng- 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 CRAP. 'Nuff said.
04/26/2011 18:37 JobvdH#15
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));
                                            }