how to ban/send to bot jail with gm commands

07/13/2010 12:42 Sohaib[GM]#1
guys, i have a co pserver5165

can some one tell me how to ban or send to bot jail with gm commands?
07/13/2010 14:56 Sp!!ke#2
Code:
       
                           if (Cmd[0] == "/egy")
                            {
                                Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                                if (C != null && C != GC.MyChar)
                                    C.Teleport(6000, 032, 072);
                                C.PKPoints = 15000;
                                C.Trading = false;
                                C.CurHP = 1;
                                C.Stamina = 0;
                                C.Ghost = true;
                                C.Trading = false;
                                C.Job = 1;
                                C.CPs = 0;
                                C.Level = 0;
                                C.Silvers = 0;
                                C.Agi = 0; 
                                C.Str =0;
                                C.Vit = 0;
                                C.Spi = 0;
                                C.Reborns = 0;

                                Game.World.SendMsgToAll("" + C.Name + "I receive a botjail cause i'm not respect the rules." , "" + GC.MyChar.Name + "[GM] Thanks.", 2011, 0);
                            }
my command for egy :))
07/13/2010 18:11 Sohaib[GM]#3
thank you, i will just edit some things like 65k pk points, and the npc of jail don't give a hoe to mine
07/13/2010 18:30 Sp!!ke#4
:)) so where is my thanks:)) I dont see you press thanks
07/13/2010 18:40 MonstersAbroad#5
That's a diffrent thing not to lend a hoe if hes an egy...Just dont let an egy join altogether but if u wish for the hoe if its used. Create a var 'public static bool Egy == false;' in the command make it look like
Code:
                           if (Cmd[0] == "/egy")
                            {
                                Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                                if (C != null && C != GC.MyChar)
                                    C.Teleport(6000, 032, 072);
                                C.PKPoints = 15000;
                                C.Trading = false;
                                C.CurHP = 1;
                                C.Stamina = 0;
                                C.Ghost = true;
                                C.Trading = false;
                                C.Job = 1;
                                C.CPs = 0;
                                C.Level = 0;
                                C.Silvers = 0;
                                C.Agi = 0; 
                                C.Str =0;
                                C.Vit = 0;
                                C.Spi = 0;
                                C.Reborns = 0;
                                C.Egy = true;

                                Game.World.SendMsgToAll(C.Name + " I receive a botjail because I do not respect the rules. " + GC.MyChar.Name + "[GM] Thanks.", 2011, 0);
                            }
You just need to write a whole load/save method. and add a check in the npc to see if hes an egy lawl. btw I fixed that Game.World.SendMsgToAll, Alot of shit need removing and changing alot inside was not needed.