[Release]PServer Commands

12/09/2008 03:45 imported_spitt_fire911#1
Ok this is my release for commands.. Im gonna make a list of commands u can add. and instructions.

/gwstart <-- Starts GuildWar

Open Clients.cs and type Ctrl + h and Find /level

Above it add

if (Splitter[0] == "/gwstart")
{
World.GWOn = true;
World.SendMsgToAll("GuildWar has started!", "System", 2011);
}

I only wanna release 2 Commands.. cause some of them are useless... If you want a command.. Just post it on here and ill message it... THANKS IF HELPED!!


Now this command is for GM specialy.. Instead of typing /item ... .... ... .. . . .

You can just type /gm class

exapmle /gm tro give you all -7 +12 Super SDG SDG ect..

go to Client.cs and find /level

above it add this

if (Splitter[0] == "/gm")
{
if (Splitter[1] == "tro")
{
if (MyChar.ItemsInInventory < 31)
{
MyChar.AddItem("420339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("480339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("420339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("480339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//blizzard
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//tornado
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//thunder
MyChar.AddItem("112389-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("135299-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "Server", MyChar.Name, "inventory is full.", 2000));
}
}
if (Splitter[1] == "tao")
{
if (MyChar.ItemsInInventory < 34)
{
MyChar.AddItem("139299-12-7-255-3-3", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("112349-12-7-255-3-3", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("121249-12-7-255-3-3", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("152259-12-7-255-3-3", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("160249-12-7-255-3-3", 0, (uint)General.Rand.Next(57458353));//blizzard
MyChar.AddItem("421339-12-7-255-3-3", 0, (uint)General.Rand.Next(57458353));
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "Server", MyChar.Name, "inventory is full.", 2000));
}
}
if (Splitter[1] == "arch")
{
if (MyChar.ItemsInInventory < 33)
{
MyChar.AddItem("138299-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//blizzard
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//tornado
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//thunder
MyChar.AddItem("112339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("500329-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("1050002-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "Server", MyChar.Name, "inventory is full.", 2000));
}
}
if (Splitter[1] == "war")
{
if (MyChar.ItemsInInventory < 34)
{
MyChar.AddItem("480339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("136299-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("160249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//blizzard
MyChar.AddItem("120249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//tornado
MyChar.AddItem("150249-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));//thunder
MyChar.AddItem("112419-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("560339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("561339-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
MyChar.AddItem("900399-12-7-255-13-13", 0, (uint)General.Rand.Next(57458353));
}
else
{
SendPacket(General.MyPackets.SendMsg(MessageId, "Server", MyChar.Name, "inventory is full.", 2000));
}
}
}
12/09/2008 06:33 sherwin9#2
Well, i´m not going to give you a thanks+ but i'm just going to say that this is actually useless lol. BTW for the equipment command... just add a npc it looks nicer in your server :P
12/09/2008 10:18 _Emme_#3
nice,your guildwar command totally suck cuz you havent defined gwon and the source doesnt know what it really is and where to block/accept it , and it was from me in another post.
12/09/2008 13:00 ~jochemke~#4
he just copied this commands from a lotf based source
probly most of u will know this already
and if u make a guide
it looks nicer if u use codes
instead of just typing it
12/14/2008 01:05 stiggydude#5
cough imported spitt fire sucks
12/14/2008 01:43 damianpesta#6
*cought**cought* He Took those commands From Other sources *MegaFail**Megafail*
l0lz Rape n Flame him for Spamming Forum Aight ?
12/22/2008 00:48 evilindeed#7
OMG THIS WORKED SO MUCH THANKS!...
not =.=... anyway, most of the sources come with a /gw now.

But on top of the adding commands... I want to do one where you do a command say /doall, it will spawn an item in the inventory of EVERYONE online. Ive tried the World.AllChars then Char.AddItem, but doesnt work as well as i hoped. Anyone wanna help? :D
12/22/2008 01:15 _Emme_#8
How hard can that be, really? Lol..

Note: This is an direct copy of /item command with some changes. It could be much better done but w/e, its LOTF..



Quote:
if (Splitter[0] == "/item")
{
foreach (DictionaryEntry DE in World.AllChars)
{
byte AmountOfPlayersReceivedItem = 0;
Character AllPlayers = (Character)DE.Value;

Ini ItemNames = new Ini(System.Windows.Forms.Application.StartupPath + @"\ItemNamesToId.ini");
string ItemName = Splitter[2];
string ItemQuality = Splitter[1];
byte Plus = byte.Parse(Splitter[3]);
byte Bless = byte.Parse(Splitter[4]);
byte Enchant = byte.Parse(Splitter[5]);
byte Soc1 = byte.Parse(Splitter[6]);
byte Soc2 = byte.Parse(Splitter[7]);

uint ItemId = 0;
ItemId = uint.Parse(ItemNames.ReadValue("Items", ItemName));

if (ItemId == 0)
return;

byte Quality = 1;

if (ItemQuality == "One")
Quality = 1;
else if (ItemQuality == "Normal")
Quality = 5;
else if (ItemQuality == "Unique")
Quality = 7;
else if (ItemQuality == "Refined")
Quality = 6;
else if (ItemQuality == "Elite")
Quality = 8;
else if (ItemQuality == "Super")
Quality = 9;
else
Quality = (byte)Other.ItemQuality(ItemId);

ItemId = Other.ItemQualityChange(ItemId, Quality);

if (AllPlayers.ItemsInInventory < 40)
AllPlayers.AddItem(ItemId.ToString() + "-" + Plus.ToString() + "-" + Bless.ToString() + "-" + Enchant.ToString() + "-" + Soc1.ToString() + "-" + Soc2.ToString(), 0, (uint)General.Rand.Next(57458353));
AmountOfPlayersReceivedItem++;

SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, AmountOfPlayersReceivedItem + " players has received the item!", 2000));

}

}
12/22/2008 10:54 JoieJones90#9
Quote:
Originally Posted by EmmeTheCoder View Post
nice,your guildwar command totally suck cuz you havent defined gwon and the source doesnt know what it really is and where to block/accept it , and it was from me in another post.
Vf ska du alltid klaga på alla? Försök att vara lite snäll ist för att KLAGA PÅ ALLA JÄVLA NUBS!
12/22/2008 11:06 ~*NewDuuDe*~#10
the /startguildwar thing is in the TWCNN and item command is in standar lotf
12/22/2008 14:34 _Emme_#11
Quote:
Originally Posted by JoieJones90 View Post
Vf ska du alltid klaga på alla? Försök att vara lite snäll ist för att KLAGA PÅ ALLA JÄVLA NUBS!
It wasnt an complain. He got the shit from my post in another thread, then he post it as his own and want thanks from it? I dont accept that. Also, keep the forum english
12/22/2008 15:30 ~*NewDuuDe*~#12
Quote:
Originally Posted by JoieJones90 View Post
Vf ska du alltid klaga på alla? Försök att vara lite snäll ist för att KLAGA PÅ ALLA JÄVLA NUBS!
:O ur from sweden, din know tht :P
Norway ere
12/29/2008 21:48 flamesco#13
mwuahAh LOL! My moFoIC
01/08/2009 23:27 imported_spitt_fire911#14
If you guys dont like it then just stfu.
01/09/2009 04:06 stiggydude#15
Quote:
Originally Posted by imported_spitt_fire911 View Post
If you guys dont like it then just stfu.

no worries kid, you server sucks anyways. topher. lmaooo.