sry for my noobness but i cant logging to my own server, why? it froze at "Logging in to server, please wait..." something like that,...i created a character tho and the XYThreadPool.vbproj doesn't work either, help?
Originally posted by nyboy159@Jul 24 2006, 06:11 sry for my noobness but i cant logging to my own server, why? it froze at "Logging in to server, please wait..." something like that,...i created a character tho and the XYThreadPool.vbproj doesn't work either, help?
what is ur Version?....this server files work only with 4311 or low
Originally posted by master15+Jul 24 2006, 07:08--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (master15 @ Jul 24 2006, 07:08)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--nyboy159@Jul 24 2006, 06:11 sry for my noobness but i cant logging to my own server, why? it froze at "Logging in to server, please wait..." something like that,...i created a character tho and the XYThreadPool.vbproj doesn't work either, help?
what is ur Version?....this server files work only with 4311 or low [/b][/quote]
oh nvm it worked i use the patch packets 4925-4302 =D thanks for the help tho i thought no one would help me so i just went through the forum and saw the solution.
Originally posted by aidas2004@Jun 18 2006, 14:45 I remember i promised to post my scripts, so here we go...
All scripts are for UCCO Old Server
& All Credits of scripts content goes to me - IDEO (aidas2004)
so if u going to post them somewhere please put Credits at the end.
Some Script usage/ideas are taken from so if u think that in credits must be added the person of script ideas please Contact me.
1) Adding commands to: World.cs
* Will edit your current job
if (Splitter[0] == "/JOB" || Splitter[0] == "/Job" || Splitter[0] == "/job")
{
byte[] SpawnData = PacketBuilder.SpawnEntity(Client.Char);
string Class_S = Splitter[1];
if (Class_S == "10") { Client.Char.Class = ClassType.InternTrojan; }
else if (Class_S == "11") { Client.Char.Class = ClassType.Trojan; }
else if (Class_S == "12") { Client.Char.Class = ClassType.VeteranTrojan; }
else if (Class_S == "13") { Client.Char.Class = ClassType.TigerTrojan; }
else if (Class_S == "14") { Client.Char.Class = ClassType.DragonTrojan; }
else if (Class_S == "15") { Client.Char.Class = ClassType.TrojanMaster; }
else if (Class_S == "20") { Client.Char.Class = ClassType.InternWarrior; }
else if (Class_S == "21") { Client.Char.Class = ClassType.Warrior; }
else if (Class_S == "22") { Client.Char.Class = ClassType.BrassWarrior; }
else if (Class_S == "23") { Client.Char.Class = ClassType.SilverWarrior; }
else if (Class_S == "24") { Client.Char.Class = ClassType.GoldWarrior; }
else if (Class_S == "25") { Client.Char.Class = ClassType.WarriorMaster; }
else if (Class_S == "40") { Client.Char.Class = ClassType.InternArcher; }
else if (Class_S == "41") { Client.Char.Class = ClassType.Archer; }
else if (Class_S == "42") { Client.Char.Class = ClassType.EagleArcher; }
else if (Class_S == "43") { Client.Char.Class = ClassType.TigerArcher; }
else if (Class_S == "45") { Client.Char.Class = ClassType.ArcherMaster; }
else if (Class_S == "100") { Client.Char.Class = ClassType.InternTaoist; }
else if (Class_S == "101") { Client.Char.Class = ClassType.Taoist; }
else if (Class_S == "132") { Client.Char.Class = ClassType.WaterTaoist; }
else if (Class_S == "133") { Client.Char.Class = ClassType.WaterWizard; }
else if (Class_S == "134") { Client.Char.Class = ClassType.WaterMaster; }
else if (Class_S == "135") { Client.Char.Class = ClassType.WaterSaint; }
else if (Class_S == "142") { Client.Char.Class = ClassType.FireTaoist; }
else if (Class_S == "143") { Client.Char.Class = ClassType.FireWizard; }
else if (Class_S == "144") { Client.Char.Class = ClassType.FireMaster; }
else if (Class_S == "145") { Client.Char.Class = ClassType.FireSaint; }
else { Client.SendData(PacketBuilder.Message(Client.Messa geID, "SYSTEM", Client.Char.Name, "Usage: /job ClassID | (look in ProfessionalName.ini for numbers)", ChatType.Talk)); }
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
* Will change your name
if (Splitter[0] == "/CHANGENAME" || Splitter[0] == "/ChangeName" || Splitter[0] == "/changename")
{
string Name = Splitter[1];
Client.Char.Name = Name;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
BackendDB.SynchronizeCharacter(Client.Char);
}
* Will exit from the the game and go to Server Select Screen
if (Splitter[0] == "/EXIT" || Splitter[0] == "/Exit" || Splitter[0] == "/exit")
{
BackendDB.SynchronizeCharacter(Client.Char); // saving chars info
World.DropClient(Client, "Closing the client"); // & closing the client
}
* Will edit your money amount
if (Splitter[0] == "/Gold" || Splitter[0] == "/gold")
{
string Money_S = Splitter[1];
int Money_I = Convert.ToInt32(Money_S);
Client.Char.Money = Money_I;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
* Will edit your current level
if (Splitter[0] == "/Level" || Splitter[0] == "/level")
{
string Level_S = Splitter[1];
int Level_I = Convert.ToInt32(Level_S);
Client.Char.Level = Level_I;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
* Will change your mode for attacking
if (Splitter[0] == "/pk")
{
Client.SendData(PacketBuilder.SetPKMode(0, Client.Char.CharID, PKMode.PK));
}
if (Splitter[0] == "/peace")
{
Client.SendData(PacketBuilder.SetPKMode(0, Client.Char.CharID, PKMode.Peace));
}
if (Splitter[0] == "/team")
{
Client.SendData(PacketBuilder.SetPKMode(0, Client.Char.CharID, PKMode.Team));
}
if (Splitter[0] == "/capture")
{
Client.SendData(PacketBuilder.SetPKMode(0, Client.Char.CharID, PKMode.Capture));
}
* Will edit your stats
if (Splitter[0] == "/STR" || Splitter[0] == "/Str" || Splitter[0] == "/str")
{
string Str_S = Splitter[1];
int Str_I = Convert.ToInt32(Str_S);
Client.Char.Strength = Str_I;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
* Will edit your model. Be carefully with this, becouse if u will enter incorrect model number you will get error & your client will be disconnected
if (Splitter[0] == "/TYPE" || Splitter[0] == "/Type" || Splitter[0] == "/type")
{
string Model_S = Splitter[1];
int Model_I = Convert.ToInt32(Model_S);
Client.Char.Model = Model_I;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
* Will edit your model. The same as /type just this are used for chars & /type are used to change model as you choose like monster model, npcs...
if (Splitter[0] == "/MODEL" || Splitter[0] == "/Model" || Splitter[0] == "/model")
{
if (Splitter[1] == "SMALE" || Splitter[1] == "Smale" || Splitter[1] == "smale")
{
Client.Char.Model = 671003;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
else if (Splitter[1] == "LMALE" || Splitter[1] == "Lmale" || Splitter[1] == "lmale")
{;
Client.Char.Model = 671004;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
else if (Splitter[1] == "SFEMALE" || Splitter[1] == "Sfemale" || Splitter[1] == "sfemale")
{
Client.Char.Model = 2012001;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
else if (Splitter[1] == "LFEMALE" || Splitter[1] == "Lfemale" || Splitter[1] == "lfemale")
{
Client.Char.Model = 2012002;
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
}
else { Client.SendData(PacketBuilder.Message(Client.Messa geID, "SYSTEM", Client.Char.Name, "Usage: /model <Size & Sex> | Size & Sex: smale, lmale, sfemale, lfemale", ChatType.Talk)); }
}
* Will give you full stamina
if (Splitter[0] == "/stamina")
{
Client.SendData(PacketBuilder.Vital(Client.Char.Ch arID, Vitals.Stamina, 100));
}
* Will teleport you to specifed place. Usage: /mm Map_ID Cordinate_X Cordinate_Y
if (Splitter[0] == "/MM" || Splitter[0] == "/Mm" || Splitter[0] == "/mm")
{
Client.SendData(PacketBuilder.CharacterInfo(Client .Char));
Character Char = Client.Char;
ArrayList[,] Target;
byte[] SpawnData = PacketBuilder.SpawnEntity(Char);
Target = TCLocHash;
string X_S = Splitter[2];
int X_I = Convert.ToInt32(X_S);
string Y_S = Splitter[3];
int Y_I = Convert.ToInt32(Y_S);
Char.CurrentLoc = new Location(X_I, Y_I);
string Maps_S = Splitter[1];
uint Maps_I = Convert.ToUInt32(Maps_S);
Char.Map = (World.Maps)Maps_I;
Target[X_I, Y_I].Add(Client);
World.SpawnCharacter(Client);
Client.SendData(PacketBuilder.Message(Client.Messa geID, "SYSTEM",
}
* Will spawn NPC/Monster to specifed location. For TEST purpose. Usage /spawn id model cordinate_x cordinate_y
* Spawned mobs ID's must be different.
* If u look in the code - i made this to spawn Guard, his Model: 900 But you can use this command to spawn mob/npc whatever u whant.
* I Personaly tested this command with guards!
if (Splitter[0] == "/spawn")
{
string Guard_ID_S = Splitter[1];
int Guard_ID_I = Convert.ToInt32(Guard_ID_S);
string Guard_Model_S = Splitter[2];
int Guard_Model_I = Convert.ToInt32(Guard_Model_S);
string Guard_x_S = Splitter[3];
int Guard_x_I = Convert.ToInt32(Guard_x_S);
string Guard_y_S = Splitter[4];
int Guard_y_I = Convert.ToInt32(Guard_y_S);
Client.SendData(PacketBuilder.SpawnGuard(Guard_ID_ I, Guard_Model_I, Guard_x_I, Guard_y_I));
}
As you know this are not all my scripts. (I didn't posted all coz some similar scripts already posted Hybris) I think u learned something from this tutorial & now u are able to make some other commands by u'rself
hey sry for my noobness but i cant get these codes to work, please help me
i did that, i added the /changename command code then i logged in to my server and type in /changename alsdnlasnd but then my name didn't change, tried doing /job codes too i type in /job 15 i didn't go to trojan master tried /job 135 but i didn't get promoted to watersaint. i stood as intern trojan.
You dont just stick it at the top, you need to post it with the other / codes.
If you cant do this, I suggest that you dont try making one, since it will require you to code NPCs and mobs, and all kinds of things.
Originally posted by nyboy159@Jul 25 2006, 20:57 i did post the codes in world.cs and packet.cs, but it still doesn't work...sry to bother but i really need help on my private server.
They dont just have to be put in World.cs and PacketBuilder.cs but in a special place of these files. PacketBuilder.cs is quite easy to understand, and for World.cs the commands are place near the end of the file. Just try to find some older commands and put these near em. You'll have to modify em a bit so that it works.
Like :
Code:
"else if" instead of "if"
and some things like that. By the way, you can make em better cose these arent finished yet (even these from aidas).