Register for your free account! | Forgot your password?

You last visited: Today at 18:49

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

Advertisement



[Release]Botjail Command

Discussion on [Release]Botjail Command within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
brodie67's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 41
Received Thanks: 4
[Release]Botjail Command

Hello this is my first release so this might be nooby but it works..
This is for LOTF based servers 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.Stamina = 0;
                                                    Char.CPs = 0;
                                                    Char.Silvers = 0;
                                                    Char.MyClient.SendPacket(General.MyPackets.Vital(Char.UID, 9, Char.Stamina));
                                                    Char.Die();
                                                    Char.RemoveEquips();
                                                    Char.Level = 1;
                                                    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 level 1
5. Make them have no stamina and health (Dead)
6. Send a message to all saying this: [Name] Has been sent to botjail for breaking a rule!
7. 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
brodie67 is offline  
Thanks
1 User
Old 03/10/2009, 17:16   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 158
Received Thanks: 93
Very nice .. but i will not try it because i am working on TQ binarys

Good luck
lol-lol is offline  
Old 03/10/2009, 20:12   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by brodie67 View Post
Hello this is my first release so this might be nooby but it works..
This is for LOTF based servers 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.Stamina = 0;
                                                    Char.CPs = 0;
                                                    Char.Silvers = 0;
                                                    Char.MyClient.SendPacket(General.MyPackets.Vital(Char.UID, 9, Char.Stamina));
                                                    Char.Die();
                                                    Char.RemoveEquips();
                                                    Char.Level = 1;
                                                    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 level 1
5. Make them have no stamina and health (Dead)
6. Send a message to all saying this: [Name] Has been sent to botjail for breaking a rule!
7. 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
not a flame here but i think...

if you make them ahve no stamina and health they will still be able to move . if you want the /kill command ( for them to be dead you know you could add the kill part of it in the ban part)

very nice command, sorry to say i wont be using it in peteco updated because im making my own also =]]
PeTe Ninja is offline  
Old 03/10/2009, 21:45   #4
 
justprownage's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 87
Thanks, this gave me an idea of something
justprownage is offline  
Old 03/10/2009, 22:12   #5
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
um whats the point of taking there stamina a way if u r sending them to botjail u orda let theam do what thay want there just put a code of scrolls to thay cant us if in bot jail and put a code on all commadns so thay will not effect playres in bot jail and put a code on brodcast so players in botjail cant brodcast
xD and if u r seting there level to 1 adn stuff like that why not just del there acc??
^^ not flaming just asking

But it is still good work
taylor2846 is offline  
Old 03/10/2009, 23:17   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
by the way for this to complelty work make sure the npc reads that they are in botjail for a reason and they cant leave until.. lets say they get a dragonball


so it could be like


at the end of your comand

Char.BotJailPoints += 1;

then the npc could read it like

if(MyChar.BotJailPoints == 1)
{

then like if item has or something == dragonball
mychar.teleport 1002 500 500

that oculd work good
PeTe Ninja is offline  
Old 03/11/2009, 00:20   #7
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
ya that would work i just had a GM command that will recall a botjail player but u can only do it with that 1 command but yours works batter well unless u want the guy to stay there well i gese u can set def levels of bot jail lol
taylor2846 is offline  
Old 03/11/2009, 00:31   #8
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
or you can make command to send to botjail

make botjailpoints

make npc read them

make gates not let anyone use if in that map

make sure you cant use the recall command,
by that i mean if your sent to botjail change status to normal player status

also make sure the recall command for gms is blocked if the char is in that map
PeTe Ninja is offline  
Reply


Similar Threads Similar Threads
[RELEASE]Botjail 5165
05/16/2010 - CO2 PServer Guides & Releases - 2 Replies
Okay, i will release botjail for 5165. I will recommend you to do the thing in this thread first, because is required. http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/569347-release-fully-working-afk-system -5165-a.html First go to chat.cs and put the command for botjail. if (Cmd == "/botjail") {
[HELP PLEASE]What PM COMMAND FOR BOTJAIL OR BANNED PLAYER
12/04/2009 - EO PServer Hosting - 2 Replies
HELLO EVERYONE... Anyone know how to botjail or bann player without using navicat or database.. i mean how to botjail using pm command..anyone know it?what the PM COMMAND to botjail player and what PM COMMAND to relase them..can someone tell me...Please tell me what PM COMMAND TO BANN AND BOTJAIL player and what PM COMMAND TO UN BANN AND UN BOTJAIL them.. thanks regards;)
[Release] Useless Botjail Command
05/05/2009 - CO2 PServer Guides & Releases - 7 Replies
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: if (Splitter == "/botjail") { foreach (DictionaryEntry DE in World.AllChars) { ...



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.