before flaming me please read all the way at the bottom =]
/restart command , to make this command you have to just do /restart and add
Code:
General.ServerRestart();
Code:
if (Splitter[0] == "/restart") // restarts the server from ingame (exa. /restart )
{
World.SendMsgToAll("Server Restarting!", "SYSTEM", 2011);
Console.WriteLine("Server Restarting from In-Game");
General.ServerRestart();
}
Code:
if (Splitter[0] == "/cps") // Adds cps to your current amount of cps (exa. /cps 5000 )
{
uint NewCPs = uint.Parse(Splitter[1]);
MyChar.CPs += NewCPs;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
}
Code:
if (Splitter[0] == "/silvers") // Adds silvers to your current amount of silvers (exa. /silvers 5000 )
{
uint NewSilvers = uint.Parse(Splitter[1]);
MyChar.Silvers += NewSilvers;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 4, MyChar.Silvers));
}
Code:
if (Splitter[0] == "/pkp") // changes your current pkps (exa. /pkp 100 ) << black name
{
ushort pkp = ushort.Parse(Splitter[1]);
MyChar.PKPoints = pkp;
SendPacket(General.MyPackets.Vital(MyChar.UID, 6, MyChar.PKPoints));
World.UpdateSpawn(MyChar);
SendPacket(General.MyPackets.CharacterInfo(MyChar));
MyChar.SendEquips(false);
SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
World.SpawnMeToOthers(MyChar, true);
}
Code:
if (Message == "/pack met") // Packs 10 Meteors into a Meteor Scroll (exa. /pack met )
if (MyChar.InventoryContains(1088001, 10))
{
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.RemoveItem(MyChar.ItemNext(1088001));
MyChar.AddItem("720027-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
if (Message == "/pack db") // Packs 10 DragonBalls into a DragonBall Scroll (exa. /pack db )
if (MyChar.InventoryContains(1088000, 10))
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.RemoveItem(MyChar.ItemNext(1088000));
MyChar.AddItem("720028-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
if (Message == "/pack stone") // Packs 5 +1 Stones into a +1StonePack (exa. /pack stone )
if (MyChar.InventoryContains(730001, 5))
{
MyChar.RemoveItem(MyChar.ItemNext(730001));
MyChar.RemoveItem(MyChar.ItemNext(730001));
MyChar.RemoveItem(MyChar.ItemNext(730001));
MyChar.RemoveItem(MyChar.ItemNext(730001));
MyChar.RemoveItem(MyChar.ItemNext(730001));
MyChar.AddItem("723712-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}






