Originally Posted by .Arco
I made this thread for people who have problems with the 5165 source that just recently became public.
First here's how's you set it up.
Download it from [Only registered and activated users can see links. Click Here To Register...].
And the client from [Only registered and activated users can see links. Click Here To Register...].
Open the folder, for me its Fixed Source.
Place the folder OldCODB in your C:/ drive.
Then you open OldCODB.
[Only registered and activated users can see links. Click Here To Register...]
Then in OldCODB open up config.ini.
[Only registered and activated users can see links. Click Here To Register...]
Edit config.ini to your settings.
Then go to your sources debug folder, for me its Fixed Source\rikardo updated\bin\Debug and double click NewestCOServer.exe.
And when the Cmd prompt opens up type in
PHP Code:
/newacc username password [PM]
For example:
PHP Code:
/newacc test 123 [PM]
[Only registered and activated users can see links. Click Here To Register...]
Then login with that account and you're good to go.
If you have any problems with the 5165 source post them here. I will try my hardest to help with these problems and if anyone knows any solutions to problems post them here as well.
FAQ:
Q.How do I clear the nobility table?
A.You go to your OldCODB and open Nobility.dat. Erase everything in it, then start up your server. In the console type in /exit then start your server up again and the nobility chart will be cleared.
Q.Is the MySQL information in the config.ini required?
A.Yes it is. I've realized if the information is wrong then you cannot create characters.
Q.Why can't GM's pk, trade, or drop items?
A.It is a system made by Tanel to keep the GM's from abusing their powers.
Q.How come once I make a character after I log in my client closes itself?
A.One possibility is you have a special character in your name.
Q.Where can I change the experience rates?
A.In World.cs look search for public uint ExperienceRate and change that to the number of your desire. That rate goes for character leveling as well as proficiency and spell leveling.
Q.How come I when I add new weapons I they are invisible?
A.I don't know too much on this topic, but from what is said by a lot of people, TQ uses a DBC file so a lot of stuff cannot be changed.
Q.I'm getting this error: How do I fix it?
A. [Only registered and activated users can see links. Click Here To Register...]
Q.Everything is setup right, why is my client crashing whenever I try to login?
A.This happens if you are using 127.0.0.1 as the GameServerIP.
Q.I'm getting an error saying the database folder does not exist, how do I fix this?
A.That means your OldCODB is not in the C:/ drive.
Commands:
/cps - Gives you CPs.(Max 999,999,999)
Ex: /cps 999999999
/silvers - Gives you silvers.(Max 999,999,999)
Ex: /silvers 999999999
/level - Makes you a level of your choice(Max 255)
Ex: /level 255
/job - Makes you a certain profession.
Ex:/Job 55
Jobs Id's:
10,InternTrojan
11,Trojan
12,VeteranTrojan
13,TigerTrojan
14,DragonTrojan
15,TrojanMaster
20,InternWarrior
21,Warrior
22,BrassWarrior
23,SilverWarrior
24,GoldWarrior
25,WarriorMaster
40,InternArcher
41,Archer
42,EagleArcher
43,TigerArcher
44,DragonArcher
45,ArcherMaster
50,InternNinja
51,Ninja
52,MiddleNinja
53,DarkNinja
54,MysticNinja
55,NinjaMaster
100,InternTaoist
101,Taoist
132,WaterTaoist
133,WaterWizard
134,WaterMaster
135,WaterSaint
142,FireTaoist
143,FireWizard
144,FireMaster
145,FireSaint
190,InternTaoist
/prof - Weapon proficiency of your choice.
Ex: /prof 410 20
Proficiency ID's:
000,Boxing
410,Blade
420,Sword
421,Backsword
430,Hook
440,Whip
441,Mace
450,Axe
460,Hammer
470,Crutch
480,Club
481,Scepter
490,Dagger
491,Prod
492,Fan
493,Flute
510,Glaive
511,Saber
520,Epee
521,Zither
522,Lute
530,Poleaxe
540,LongHammer
550,Scythe
560,Spear
562,Pickaxe
570,Spade
580,Halberd
561,Wand
500,Bow
601,Katana
700,Boxing
710,Blade
720,Sword
721,MagicSword
730,Hook
740,Whip
741,Mace
750,Axe
760,Hammer
770,Crutch
780,Club
781,Scepter
790,Dagger
791,Prod
792,Fan
793,Flute
900,Shield
422,Other
/item - Rewards you with the item of your choice.
Ex: /item ConquestArmor 12 7 255 13 13
12-Plus
7-Bless
255-Enchant
13-GemID
13-GemID
Problems:
Expball:Unlimited Times a day.
Code:
#region ExpBall
case 723700://This is for the expball 10 Times a day. This code makes it so you can use it as many times as you want. Replace your old expball code with this one.
{
if (Level < 137)
{
IncreaseExp(ExpBallExp, false);
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2000, "You are already the highest level.");
}
break;
}
#endregion
Pots:Now cannot be used when MP/HP is already full.
Code:
#region MP Pots//Replace your entire potion code with mine.
case 1001000:
{
if (CurMP <= MaxMP)
{
CurMP += 70;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
break;
}
case 1001010:
{
if (CurMP <= MaxMP)
{
CurMP += 200;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
break;
}
case 1001020:
{
if (CurMP <= MaxMP)
{
CurMP += 450;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
break;
}
case 1001030:
{
if (CurMP <= MaxMP)
{
CurMP += 1000;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
break;
}
case 1001040:
{
if (CurMP <= MaxMP)
{
CurMP += 2000;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
}
break;
case 1002030:
{
if (CurMP <= MaxMP)
{
CurMP += 3000;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
break;
}
case 1002040:
{
if (CurMP <= MaxMP)
{
CurMP += 4500;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You MP is currently full.");
}
break;
}
#endregion
#region HP Pots
case 1000000:
{
if (CurHP <= MaxHP)
{
CurHP += 70;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1000010:
{
if (CurHP <= MaxHP)
{
CurHP += 150;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1000020:
{
if (CurHP <= MaxHP)
{
CurHP += 250;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1000030:
{
if (CurHP <= MaxHP)
{
CurHP += 500;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1002000:
{
if (CurHP <= MaxHP)
{
CurHP += 800;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1002010:
{
if (CurHP <= MaxHP)
{
CurHP += 1200;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1002020:
{
if (CurHP <= MaxHP)
{
CurHP += 2000;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
case 1002050:
{
if (CurHP <= MaxHP)
{
CurHP +=3000;
RemoveItem(I);
}
else
{
MyClient.LocalMessage(2005, "You HP is currently full.");
}
break;
}
#endregion
Ladyluck:With this code you can do the lottery unlimited times.
Code:
case 923:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay(("Welcome to the Lottery Center! There are meny LuckyBoxes which have innumerable treasure such as super gems,two-socket gears, up to 500,000,000 silvers etc. in them. If you are level 70 or above, you are allowed to enter the Lottery Center as much as you want.")));
GC.AddSend(Packets.NPCSay(("And I charge you only 27 CPs for each admission.Come on, Try your luck right now!")));
GC.AddSend(Packets.NPCLink("Wow, good deal!", 1));
GC.AddSend(Packets.NPCLink("May I know the rules first?", 2));
GC.AddSend(Packets.NPCLink("No Thanks!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
GC.MyChar.Teleport(700, 40, 50);
return;
}
if (GC.MyChar.Level >= 70)
{
if (GC.MyChar.Inventory.Count < 40)
{
if (GC.MyChar.CPs >= 27)
{
GC.MyChar.Teleport(700, 40, 50);
GC.MyChar.CPs -= 27;
GC.MyChar.Lottery = true;
}
else
{
GC.AddSend(Packets.NPCSay("I'm sorry you do not have the required CPs."));
GC.AddSend(Packets.NPCLink("Okay, I will be back when I have 27 CPs.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("Please make some room in your item box first."));
GC.AddSend(Packets.NPCLink("Okay...", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("I'm sorry you do not have the required Level 70."));
GC.AddSend(Packets.NPCLink("Okay...", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 2)
{
GC.AddSend(Packets.NPCSay("You will be teleported to Lottery Center where there are many LuckyBoxes after you pay me 27 CPs. You may choose one box to try your luck at your will."));
GC.AddSend(Packets.NPCSay("Remeber you have only one chance to open a LuckyBox every time. If you want to open another box, you have to leave the room to re-enrol in Market."));
GC.AddSend(Packets.NPCLink("Okay...", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
Nearly Perfect Expball Calculations.
Code:
public uint ExpBallExp
{
get
{
if (Level < 30)
return (uint)(15000 + Level * 430);
else if (Level < 50)
return (uint)(40000 + Level * 430);
else if (Level < 80)
return (uint)(30000 + Level * 500);
else if (Level < 80)
return (uint)(30000 + Level * 600);
else if (Level < 100)
return (uint)(30000 + Level * 700);
else if (Level < 110)
return (uint)(30000 + Level * 900);
else if (Level < 120)
return (uint)(30000 + Level * 1100);
else if (Level < 125)
return (uint)(30000 + Level * 1500);
else if (Level < 130)
return (uint)(30000 + Level * 1000);
else
return (uint)(30000 + Level * 1000);
}
}
Little add-on:
Just as a little notice, use the function "search this thread", before asking any questions in top of this post.
Huseby
|