[Release] Useless Botjail Command

05/04/2009 23:45 DiegoTehCoder#1
Hello this is my first release so this might be nooby but it works..

This is for LOTF based servers I don't use LOTF or Binaries (Never Did)
Anymore so I am releasing some of my codes! but here is the command I coded this myself:

Code:
                                             if (Splitter[0] == "/botjail")
                                        {
                                            foreach (DictionaryEntry DE in World.AllChars)
                                            {
                                                Character Char = (Character)DE.Value;

                                                if (Char.Name == Splitter[1])
                                                {
                                                    World.SendMsgToAll(Splitter[1] + " has been sent to botjail for breaking a rule.", "SYSTEM", 2011);
                                                    World.SendMsgToAll("Note: Please follow all the rules!", "SYSTEM", 2005);
                                                    Char.Teleport(6001, 30, 75);
                                                    Char.CurHP = 0;
                                                    Char.Alive = false;
                                                    Char.MyClient.SendPacket(General.MyPackets.Status1(Char.UID, 0));
                                                    Char.MyClient.SendPacket(General.MyPackets.Status3(Char.UID));
                                                    Char.MyClient.SendPacket(General.MyPackets.Vital(Char.UID, 26, Char.GetStat()));
                                                    Char.MyClient.SendPacket(General.MyPackets.CharacterInfo(Char));
                                                    Char.MyClient.SendPacket(
                                                    General.MyPackets.Vital(Char.UID, 26, Char.GetStat()));
                                                    Char.CPs = 0;
                                                    Char.Silvers = 0;
                                                    Char.MyClient.SendPacket(General.MyPackets.Vital(Char.UID, 9, Char.Stamina));
                                                    Char.Die();
                                                    World.UpdateSpawn(Char);
                                                    Char.MyClient.Drop();
                                                    
                                                }
                                                else
                                                {
                                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character: " + Splitter[1] + " is offline...Please try again later", 2000));
                                                }
                                            }
                                        }
This command should do this:

1. Send the person to a jail type place
2. Delete there cps so they cant broadcast
3. Remove there silvers
4. Make them have no health (Dead)
5. Send a message to all saying this: [Name] Has been sent to botjail for breaking a rule!
6. And Please follow the rules.

This is a command I made in 5 minutes so please don't flame.

If this worked for you please press the magic button "Thanks" xD

How to use command: /botjail ExampleName
05/04/2009 23:50 becko713#2
Quote:
Originally Posted by DiegoTehCoder View Post
Hello this is my first release so this might be nooby but it works..

This is for LOTF based servers I don't use LOTF or Binaries (Never Did)
Anymore so I am releasing some of my codes! but here is the command I coded this myself:

Code:
                                             if (Splitter[0] == "/botjail")
                                        {
                                            foreach (DictionaryEntry DE in World.AllChars)
                                            {
                                                Character Char = (Character)DE.Value;

                                                if (Char.Name == Splitter[1])
                                                {
                                                    World.SendMsgToAll(Splitter[1] + " has been sent to botjail for breaking a rule.", "SYSTEM", 2011);
                                                    World.SendMsgToAll("Note: Please follow all the rules!", "SYSTEM", 2005);
                                                    Char.Teleport(6001, 30, 75);
                                                    Char.CurHP = 0;
                                                    Char.Alive = false;
                                                    Char.MyClient.SendPacket(General.MyPackets.Status1(Char.UID, 0));
                                                    Char.MyClient.SendPacket(General.MyPackets.Status3(Char.UID));
                                                    Char.MyClient.SendPacket(General.MyPackets.Vital(Char.UID, 26, Char.GetStat()));
                                                    Char.MyClient.SendPacket(General.MyPackets.CharacterInfo(Char));
                                                    Char.MyClient.SendPacket(
                                                    General.MyPackets.Vital(Char.UID, 26, Char.GetStat()));
                                                    Char.CPs = 0;
                                                    Char.Silvers = 0;
                                                    Char.MyClient.SendPacket(General.MyPackets.Vital(Char.UID, 9, Char.Stamina));
                                                    Char.Die();
                                                    World.UpdateSpawn(Char);
                                                    Char.MyClient.Drop();
                                                    
                                                }
                                                else
                                                {
                                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character: " + Splitter[1] + " is offline...Please try again later", 2000));
                                                }
                                            }
                                        }
This command should do this:

1. Send the person to a jail type place
2. Delete there cps so they cant broadcast
3. Remove there silvers
4. Make them have no health (Dead)
5. Send a message to all saying this: [Name] Has been sent to botjail for breaking a rule!
6. And Please follow the rules.

This is a command I made in 5 minutes so please don't flame.

If this worked for you please press the magic button "Thanks" xD

How to use command: /botjail ExampleName
Delete Cps is bad
you can just Make a Code to make him can't broadcast

make them have no health is bad idea too
just say my idea not ask for make it
05/04/2009 23:53 DiegoTehCoder#3
#Edited by poster Triple Post my bad
05/04/2009 23:57 damianpesta#4
Quote:
Originally Posted by DiegoTehCoder View Post
Did I say I coded lotf? No I didn't o.O
Still this has been released as well geez... search before releasing , double releases are useless if they r exacly the same...
05/05/2009 00:00 DiegoTehCoder#5
#Edited by poster Triple Post my bad
05/05/2009 00:04 taylor2846#6
lol why not just put a command to send them to botjail and then put a code on the telporting code to make it so no one in botjail can be telported and make a def telport code to telport pepple out but only gms can us like i did lol
or easy way put a code on all the telport sutff like scrolls recall and that sutff and bloke commands in botjail just encase u need to botjail someone with a command lol
05/05/2009 00:13 Pete1990#7
Quote:
Originally Posted by taylor2846 View Post
lol why not just put a command to send them to botjail and then put a code on the telporting code to make it so no one in botjail can be telported and make a def telport code to telport pepple out but only gms can us like i did lol
or easy way put a code on all the telport sutff like scrolls recall and that sutff and bloke commands in botjail just encase u need to botjail someone with a command lol
Yep Agree or add them into the banlist works just as well no need for all those commands only commands you need /ban everthing else can be done inside the Char file:)
05/05/2009 00:34 hok30#8
Quote:
Originally Posted by DiegoTehCoder View Post
Hello this is my first release so this might be nooby but it works..

This is for LOTF based servers I don't use LOTF or Binaries (Never Did)
Anymore so I am releasing some of my codes! but here is the command I coded this myself:
Do you think you could provide a specific source? Looks good though.