|
You last visited: Today at 18:08
Advertisement
for who start coding
Discussion on for who start coding within the CO2 Private Server forum part of the Conquer Online 2 category.
11/17/2008, 16:07
|
#1
|
elite*gold: 0
Join Date: Aug 2007
Posts: 12
Received Thanks: 1
|
for who start coding
frist:how to change the server name
frist search for on client.cs:
Quote:
|
SendPacket(General.MyPackets.SendMsg
|
then change the things and type what u want to tell the players when they come online
how to change the things when u open the source goto general.cs
frist search for :
Quote:
second change the source name when u open it itis just like this
Quote:
|
Console.Title = "your server name";
|
Quote:
|
now search for Console.WriteLine
|
u will see the things it type for u on the source
now how to put line on the source on the welcome massage
frist goto client.cs and search for
Quote:
|
SendPacket(General.MyPackets.SendMsg
|
now copy this
Quote:
|
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "Welcome to TheDarkCo", 2000));
|
k now u see 2000 at your right u can change it to 2005 it will be up on the server and u can change it to 2011 it will be on the middle
after u code that press f5 to save it
soon i will put more things for newbie
oh and there's a good source most things on it work
|
|
|
11/17/2008, 16:30
|
#2
|
elite*gold: 0
Join Date: Aug 2007
Posts: 12
Received Thanks: 1
|
how to put a commands
search for in client.cs
Quote:
and put the commands under it and there's some commands
for getting vps
Quote:
if (Splitter[0] == "/vp")
{
uint NewVP = uint.Parse(Splitter[1]);
MyChar.VP = NewVP;
}
|
for change hair style
Quote:
if (Splitter[0] == "/hair")
{
ushort mid = ushort.Parse(Splitter[1]);
MyChar.Hair = mid;
SendPacket(General.MyPackets.Vital(MyChar.UID, 27, ulong.Parse(MyChar.Hair.ToString())));
World.UpdateSpawn(MyChar);
}
|
to update the area
Quote:
if (Splitter[0] == "/refresh")
{
MyChar.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "area updated!!", 20011));
}
|
for drop more than db or met on events
Quote:
if (Splitter[0] == "/drop")
{
uint MoneyDrops = 0;
byte Repeat = byte.Parse(Splitter[2]);
for (int i = 0; i < Repeat; i++)
{
if (Splitter[1] == "db")
{
string Item = "1088000-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(MyChar.LocY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
if (Splitter[1] == "met")
{
string Item = "1088001-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(MyChar.LocY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
}
}
|
for command /tele
Quote:
if (Splitter[0] == "/tele")
{
MyChar.Teleport(ushort.Parse(Splitter[1]), ushort.Parse(Splitter[2]), ushort.Parse(Splitter[3]));
}
|
for gw command and on the source i give u only u have to put the command
Quote:
if (Splitter[0] == "/gwstart")
{
World.GWOn = true;
World.SendMsgToAll("GuildWar has started!", "gm", 2011);
}
|
that was for start gw now for end gw
Quote:
if (Splitter[0] == "/gwstop")
{
GuildWarStop.Stop();
World.SendMsgToAll("GuildWar is over come back next time", "gm", 2011);
}
|
|
|
|
11/17/2008, 16:37
|
#3
|
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
|
Do you smoke crack?
|
|
|
11/17/2008, 16:42
|
#4
|
elite*gold: 0
Join Date: Aug 2007
Posts: 12
Received Thanks: 1
|
what's your mean?
|
|
|
11/17/2008, 16:56
|
#5
|
elite*gold: 0
Join Date: Nov 2008
Posts: 40
Received Thanks: 1
|
I would have to agree with Kenny. All u are doing is editing the names of the cmds and posting them here. This aint nothing coders already know and noobs i am sure know this aswell. Maybe if you know how to code you can go back write a custom crypto, or cipher, and teach noobs how it works or teach noobs how to code sockets? Without sockets there is no server.. Sorry just things i been working on thats a pain in the ***.
|
|
|
11/17/2008, 17:23
|
#6
|
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
|
/agreed
|
|
|
11/17/2008, 18:41
|
#7
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
before all  !!!!!!!!
|
|
|
11/17/2008, 19:35
|
#8
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
He thinks there's only one thing of each "thing", example:
frist search for on client.cs:
SendPacket(General.MyPackets.SendMsg
now search for Console.WriteLine
There are tons of console.writeline's etc etc, stupidity is the word of the day
|
|
|
11/17/2008, 23:10
|
#9
|
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
|
Lawl...make the console look cool like mine...=O
(Yes, this is LOTF)
|
|
|
11/17/2008, 23:15
|
#10
|
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
|
looks nice.. this is a noby but whar is the part of lotf that closes server when you press enter
|
|
|
11/17/2008, 23:21
|
#11
|
elite*gold: 20
Join Date: Jan 2006
Posts: 890
Received Thanks: 241
|
Quote:
Originally Posted by LetterX
Lawl...make the console look cool like mine...=O
(Yes, this is LOTF)
|
lol...? the colors r easy 2 do... and also the writting/console commands r 2...
console.writeline("hi");
Console.ForegroundColor = ConsoleColor.Red;
or u could import the .dll and do it that way, orrrr u could use a custom method like the 1 haydz showed me that he made
iconsole.writeline("hi", ConsoleColor.Green);
and for the console commands
string xxx;
xxx = Console.ReadLine();
if (xxx == "/save")
{
}
or with switch's, case's, and breaks :P
switch (Splitter[0])
{
string xxx;
xxx = Console.ReadLine();
case "/save":
break;
and ofc, there's prolly other ways 2 do this, that im not thinking of, that was just off the top of my head, lol
alltho, doing the console colors,etc in my opinion is quite useless, but eh i guess if ure bored enough, lol
o and
Quote:
Originally Posted by taylor2846
looks nice.. this is a noby but whar is the part of lotf that closes server when you press enter
|
prolly a /close command that does the same thing :P
|
|
|
11/17/2008, 23:21
|
#12
|
elite*gold: 0
Join Date: Oct 2008
Posts: 14
Received Thanks: 1
|
g
|
|
|
11/18/2008, 00:16
|
#13
|
elite*gold: 0
Join Date: Nov 2008
Posts: 40
Received Thanks: 1
|
To many topics are getting off topic. This topic was resolved. Letter-X if u want to post about your serer please make new topic and discuss it there.
|
|
|
11/18/2008, 04:34
|
#14
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
General.DoStuff()
lmao.
|
|
|
11/18/2008, 11:49
|
#15
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Just for boredom,I will release how to make console just as LetterX has his
|
|
|
All times are GMT +1. The time now is 18:09.
|
|