~~ 16-9-2010 ~~
The CPS and GOLD 2 all commands :)
BOTJAIL, This send you to one of the mines of the game, in LOTF THOSE ARE UNUSED CHANGE MAP ID IF YOU WANT
/bj to botjail, /release to release it also say something in console
/log log things into your console! (I used this because everything in console comes into serverlog.txt and if i had some notes to anything i used that :)
WHERE TO PUT ALL THOSE CODES :confused::confused:
Actually,, search for and put it below that
NEW
___---*** NOTE *** ~~I DIDN'T TEST THOSE~~ *** NOTE *** ---___
/str for strength, /spi for spirit , /vit for vitality, /agi for agility, as i said i didn't test em yet because my client is messed up, im pretty sure it works ;)
You have to relog before those working,, im working too fix that. :)
The CPS and GOLD 2 all commands :)
Code:
if (Splitter[0] == "/cps2all")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
{
uint NewCPs = uint.Parse(Splitter[1]);
Char.CPs += NewCPs;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
Console.WriteLine(MyChar.Name + " gave away " + Splitter[1] + " CPs");
}
}
}
if (Splitter[0] == "/gold2all")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
{
uint Newsilvers = uint.Parse(Splitter[1]);
Char.WHSilvers += Newsilvers;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.Silvers));
Console.WriteLine(MyChar.Name + " gave away " + Splitter[1] + " gold");
}
}
}
BOTJAIL, This send you to one of the mines of the game, in LOTF THOSE ARE UNUSED CHANGE MAP ID IF YOU WANT
/bj to botjail, /release to release it also say something in console
Code:
if (Splitter[0] == "/bj")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
Char.Teleport(6001, 25, 75);
Console.WriteLine(Splitter[1] + " has been botjailed.");
break;
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
if (Splitter[0] == "/release")
{
foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char.Name == Splitter[1])
{
Char.Teleport(1002, 438, 380);
Console.WriteLine(Splitter[1] + " has been released.");
break;
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Sorry the Character:" + Splitter[1] + " is offline...Please try again later", 2000));
}
}
}
/log log things into your console! (I used this because everything in console comes into serverlog.txt and if i had some notes to anything i used that :)
Code:
if (Splitter[0] == "/log") // Used to log things into Console. Everything in Console comes in ServerLog so also this.
{
Message = Message.Remove(0, 5);
Console.WriteLine(Message, MyChar.Name, 2011);
if (Splitter[0] == "/xp")
{
MyChar.XpList = true;
SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
}
Actually,, search for and put it below that
ILL KEEP THIS UP TOO DATE MAKING LOT OF COMMANDS :)Quote:
if (Splitter[0] == "/changename")
{
string newname = Splitter[1];
MyChar.Name = newname;
SendPacket(General.MyPackets.CharacterInfo(MyChar) );
World.SpawnMeToOthers(MyChar, false);
MyChar.SendEquips(false);
}
NEW
___---*** NOTE *** ~~I DIDN'T TEST THOSE~~ *** NOTE *** ---___
/str for strength, /spi for spirit , /vit for vitality, /agi for agility, as i said i didn't test em yet because my client is messed up, im pretty sure it works ;)
Code:
if (Splitter[0] == "/str")
{
ushort NewStr = ushort.Parse(Splitter[1]);
MyChar.Str = NewStr;
}
if (Splitter[0] == "/agi")
{
ushort NewAgi = ushort.Parse(Splitter[1]);
MyChar.Agi = NewAgi;
}
if (Splitter[0] == "/vit")
{
ushort NewVit = ushort.Parse(Splitter[1]);
MyChar.Vit = NewVit;
}
if (Splitter[0] == "/spi")
{
ushort NewSpi = ushort.Parse(Splitter[1]);
MyChar.Spi = NewSpi;
}