Register for your free account! | Forgot your password?

You last visited: Today at 19:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]PServer Commands

Discussion on [Release]PServer Commands within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
[Release]PServer Commands

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));
}
}
}
imported_spitt_fire911 is offline  
Thanks
8 Users
Old 12/09/2008, 06:33   #2
 
sherwin9's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 222
Received Thanks: 27
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
sherwin9 is offline  
Thanks
1 User
Old 12/09/2008, 10:18   #3
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
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.
_Emme_ is offline  
Old 12/09/2008, 13:00   #4
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
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
~jochemke~ is offline  
Thanks
2 Users
Old 12/14/2008, 01:05   #5
 
elite*gold: 0
Join Date: Jul 2007
Posts: 59
Received Thanks: 0
cough imported spitt fire sucks
stiggydude is offline  
Old 12/14/2008, 01:43   #6
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
*cought**cought* He Took those commands From Other sources *MegaFail**Megafail*
l0lz Rape n Flame him for Spamming Forum Aight ?
damianpesta is offline  
Old 12/22/2008, 00:48   #7
 
elite*gold: 0
Join Date: Dec 2008
Posts: 7
Received Thanks: 2
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?
evilindeed is offline  
Old 12/22/2008, 01:15   #8
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
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));

}

}
_Emme_ is offline  
Old 12/22/2008, 10:54   #9
 
elite*gold: 20
Join Date: Feb 2007
Posts: 660
Received Thanks: 79
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!
JoieJones90 is offline  
Old 12/22/2008, 11:06   #10
 
~*NewDuuDe*~'s Avatar
 
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
the /startguildwar thing is in the TWCNN and item command is in standar lotf
~*NewDuuDe*~ is offline  
Old 12/22/2008, 14:34   #11
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
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 **** 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
_Emme_ is offline  
Old 12/22/2008, 15:30   #12
 
~*NewDuuDe*~'s Avatar
 
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
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
~*NewDuuDe*~ is offline  
Old 12/29/2008, 21:48   #13
 
flamesco's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 21
Received Thanks: 0
mwuahAh LOL! My moFoIC
flamesco is offline  
Old 01/08/2009, 23:27   #14
 
elite*gold: 0
Join Date: Jun 2006
Posts: 114
Received Thanks: 30
If you guys dont like it then just stfu.
imported_spitt_fire911 is offline  
Old 01/09/2009, 04:06   #15
 
elite*gold: 0
Join Date: Jul 2007
Posts: 59
Received Thanks: 0
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.
stiggydude is offline  
Reply




All times are GMT +1. The time now is 19:12.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.