|
You last visited: Today at 19:44
Advertisement
[Commands]
Discussion on [Commands] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
02/22/2010, 09:07
|
#1
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
[Commands]
Well I've come across and made some commands that are pretty useful.
Here they are
Code:
if (Cmd[0] == "/award")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.CPs += uint.Parse(Cmd[2]);
}
if (Cmd[0] == "/unaward")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.CPs -= uint.Parse(Cmd[2]);
}
if (Cmd[0] == "/attr")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.StatPoint += uint.Parse(Cmd[2]);
}
if (Cmd[0] == "/zebra")
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 300000;
I.Plus = 12;
I.MaxDur = I.DBInfo.Durability;
I.CurDur = I.MaxDur;
I.Effect = NewestCOServer.Game.Item.RebornEffect.Horsie;
I.TalismanProgress = BitConverter.ToUInt32(new byte[4] { 46, 39, 142, 0 }, 0);
I.UID = (uint)Program.Rnd.Next(10000000);
GC.MyChar.AddItem(I);
}
if (Cmd[0] == "/screen")
{
Game.World.ScreenColor = uint.Parse(Cmd[1]);
foreach (Game.Character C in Game.World.H_Chars.Values)
try
{
C.MyClient.AddSend(Packets.GeneralData(C.EntityID, Game.World.ScreenColor, 0, 0, 104));
}
catch { }
}
Currently look through right now to see if I have anymore commands.
I'll keep it updated.
Noobish releases I know, but they are useful.
|
|
|
02/22/2010, 11:12
|
#2
|
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
|
What do they do?
|
|
|
02/22/2010, 11:17
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by Decker_
What do they do?
|
If its not obvious enough...
/award lets you award cps to a character.
/unaward does the opposite
/zebra puts a zebra in your inventory
/attr lets you award attribute points to a character.
|
|
|
02/22/2010, 12:35
|
#4
|
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
|
Nice good job!
|
|
|
02/22/2010, 14:36
|
#5
|
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
|
nice arco but i have error
Quote:
if (Cmd[0] == "/attr")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.StatPoint += uint.Parse(Cmd[2]);
}
|
|
|
|
02/22/2010, 17:10
|
#6
|
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
|
Quote:
Originally Posted by .Arco
If its not obvious enough...
/award lets you award cps to a character.
/unaward does the opposite
/zebra puts a zebra in your inventory
/attr lets you award attribute points to a character.
|
explain more plz u mean when i type
Example:
/award BlackKnight 500
it will give the char named BlackKnight 500 cps?!
and when i type
/attr BlackKnight Str 500
it will give the char named BlackKnight 500 Str points?!
|
|
|
02/22/2010, 17:42
|
#7
|
elite*gold: 0
Join Date: May 2008
Posts: 66
Received Thanks: 0
|
lol need a definition for statpoint
and i also need a definition for Get
how to make these
Quote:
Error 1 'object' does not contain a definition for 'Get' and no extension method 'Get' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) C:\Weird-CoV2\PacketHandler.cs 48 101 NewestCOServer
Error 2 'NewestCOServer.Game.Character' does not contain a definition for 'StatPoint' and no extension method 'StatPoint' accepting a first argument of type 'NewestCOServer.Game.Character' could be found (are you missing a using directive or an assembly reference?) C:\Weird-CoV2\PacketHandling\Chat.cs 287 39 NewestCOServer
|
|
|
|
02/22/2010, 23:38
|
#8
|
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
|
Quote:
Originally Posted by Decker_
What do they do?
|
SERIOUSLY?
IF YOU MUST ASK THIS QUESTION, THEN ASK YOURSELF WHY YOU'RE TRYING TO CODE A PRIVATE SERVER.
|
|
|
02/23/2010, 00:29
|
#9
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by walmartboi
SERIOUSLY?
IF YOU MUST ASK THIS QUESTION, THEN ASK YOURSELF WHY YOU'RE TRYING TO CODE A PRIVATE SERVER.
|
not to take sides here but arco asked questions like this once before and i bet you have too.
|
|
|
02/23/2010, 02:37
|
#10
|
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
|
Quote:
Originally Posted by .Arco
Well I've come across and made some commands that are pretty useful.
Here they are
Code:
if (Cmd[0] == "/award")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.CPs += uint.Parse(Cmd[2]);
}
if (Cmd[0] == "/unaward")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.CPs -= uint.Parse(Cmd[2]);
}
if (Cmd[0] == "/attr")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.StatPoint += uint.Parse(Cmd[2]);
}
if (Cmd[0] == "/zebra")
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 300000;
I.Plus = 12;
I.MaxDur = I.DBInfo.Durability;
I.CurDur = I.MaxDur;
I.Effect = NewestCOServer.Game.Item.RebornEffect.Horsie;
I.TalismanProgress = BitConverter.ToUInt32(new byte[4] { 46, 39, 142, 0 }, 0);
I.UID = (uint)Program.Rnd.Next(10000000);
GC.MyChar.AddItem(I);
}
if (Cmd[0] == "/screen")
{
Game.World.ScreenColor = uint.Parse(Cmd[1]);
foreach (Game.Character C in Game.World.H_Chars.Values)
try
{
C.MyClient.AddSend(Packets.GeneralData(C.EntityID, Game.World.ScreenColor, 0, 0, 104));
}
catch { }
}
Currently look through right now to see if I have anymore commands.
I'll keep it updated.
Noobish releases I know, but they are useful.
|
Nice Job .Arco =]
|
|
|
02/23/2010, 15:25
|
#11
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Quote:
Originally Posted by PeTe Ninja
not to take sides here but arco asked questions like this once before and i bet you have too.
|
how true
|
|
|
01/06/2011, 01:09
|
#12
|
elite*gold: 0
Join Date: Nov 2010
Posts: 32
Received Thanks: 5
|
No bumping old threads.
|
|
|
01/06/2011, 12:50
|
#13
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
|
|
|
|
01/06/2011, 16:45
|
#14
|
elite*gold: 0
Join Date: Jul 2010
Posts: 146
Received Thanks: 82
|
if u cant read simple code then
/award Charname 500
gives him/her 500 cp
/attr Charname 500
gives him/her 500 atribute points
|
|
|
01/06/2011, 18:37
|
#15
|
elite*gold: 0
Join Date: Dec 2010
Posts: 162
Received Thanks: 31
|
This is a little bit TOO EASY to be done.. anyways good job
|
|
|
|
Similar Threads
|
RF Up5 GM Commands
10/30/2010 - RFO Hacks, Bots, Cheats, Exploits & Guides - 49 Replies
For who know how to do GM commands w/o be a GM (not like me :( ) or for owner of server
//E2P1G5 Updated RF GM commands
ALT+B (Opens observer menu which enables fly/noclip mode.)
/add <USERNAME> (Add the user to your player list, only usable in observer mode, must have player targeted when you do it.)
/remove <USERNAME> (Remove player from observer list.)
/add (Use this command to add a...
|
GM Commands
07/03/2010 - General Gaming Discussion - 6 Replies
Was wondering if anyone would be kind enough to leak the GM commands??? Or provide any insight on how to find them. If so pls post or PM. TY
|
[Key Commands] Default Key Commands for the beginners
10/01/2008 - General Gaming Releases - 0 Replies
Default keybindings:
Abilities Window V
Backpack Window: B
Career Window: K
Character Window: C
Battlegroup Window: Left Alt + R
Developer Window: ;
Guild Window: G
Help Window: H
|
new GM Commands,most of EO
05/06/2008 - EO PServer Hosting - 6 Replies
There is some new gamemaster commands.
set to gm, type follow your player name, like youname.
You can link to 天晴魔域技术论坛 - - powered by bbsmax for more help of Chinese
The text "未知" is unknow in english.
:eek:
/amount_limit 未知
/attach ?查询奖品
/auto_pathfind 未知
/awardattrib1info 未知
|
/commands
12/18/2007 - Conquer Online 2 - 6 Replies
Does anyone know how to get the /look commands to work for the new patch, any help would be much apreciated.
Chem.
|
All times are GMT +2. The time now is 19:44.
|
|