for who start coding

11/17/2008 16:07 cocorawsha#1
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:
Console.Title
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
[Only registered and activated users can see links. Click Here To Register...]
11/17/2008 16:30 cocorawsha#2
how to put a commands
search for in client.cs
Quote:
if (Status == 8)
{
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 taguro#3
Do you smoke crack?
11/17/2008 16:42 cocorawsha#4
what's your mean?
11/17/2008 16:56 Sorsha#5
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 ass.
11/17/2008 17:23 Exia13#6
/agreed
11/17/2008 18:41 alexbigfoot#7
before all [Only registered and activated users can see links. Click Here To Register...] !!!!!!!!
11/17/2008 19:35 _Emme_#8
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 LetterX#9
Lawl...make the console look cool like mine...=O
(Yes, this is LOTF)

[Only registered and activated users can see links. Click Here To Register...]
11/17/2008 23:15 taylor2846#10
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 lostsolder05#11
Quote:
Originally Posted by LetterX View Post
Lawl...make the console look cool like mine...=O
(Yes, this is LOTF)

[Only registered and activated users can see links. Click Here To Register...]
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 View Post
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 kelvinwong208#12
g
11/18/2008 00:16 Sorsha#13
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 tao4229#14
General.DoStuff()

lmao.
11/18/2008 11:49 _Emme_#15
Just for boredom,I will release how to make console just as LetterX has his :)