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));
}
}
}
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






