Official 5165 FAQ/Question thread

01/08/2010 02:23 bart2712#571
even the one for market upgrading? hes got an error on him too

ok, well i took out the one for LoveStone...still says theres errors in section for high market upgrade, and Shelby
01/08/2010 02:25 Arcо#572
Quote:
Originally Posted by bart2712 View Post
even the one for market upgrading? hes got an error on him too

ok, well i took out the one for LoveStone...still says theres errors in section for high market upgrade, and Shelby

Never seen these errors before.
Did you download a edited source or the original one?
01/08/2010 02:27 bart2712#573
the one i downloaded came directly from the link from your thread....actually i think it was from page1 of this thread.

I mean the server runs and i can connect and everything, just i cant edit anything if it wont let me compile it.

And I looked thru the errors, and if i removed each NPC that has an error, id be deleting the conversations for "market high upgrade", Shelby, and the one in tc that gives you the riding skill and some others.
01/08/2010 02:28 Arcо#574
Quote:
Originally Posted by bart2712 View Post
the one i downloaded came directly from the link from your thread....actually i think it was from page1 of this thread.

I mean the server runs and i can connect and everything, just i cant edit anything if it wont let me compile it

Did you implement LoveStone, Shelby, and MarketHighUpgrade yourself?
Because I didn't see those errors when I started the source.
01/08/2010 02:30 bart2712#575
no i didnt touch any of them...they were there in the NPCDialog.sc

The one im working on is the one with OldCODb, and the source project is called NewestCOServer.
Oh, and has the one folder called FixedSource.
01/08/2010 02:35 Arcо#576
Quote:
Originally Posted by bart2712 View Post
no i didnt touch any of them...they were there in the NPCDialog.sc

The one im working on is the one with OldCODb, and the source project is called NewestCOServer
Reextract the source and take this and only this out of NPCDialog.cs.
Code:
                            #region Love Stone
                            case 211091:
                                {
                                    if (LinkBack == 0)
                                    {

                                        Text("Ho i can give you full +12 gea if you wish Just Choose your pro?", CSocket); //Remove one ) and add, CSocket
                                        Link("Trojan", 1, CSocket);
                                        Link("Warrior", 2, CSocket);
                                        Link("Archer", 3, CSocket);
                                        Link("Toa", 4, CSocket);
                                        Link("NiNja", 5, CSocket);
                                        Link("No, I dont need", 255, CSocket);
                                        Face(19, CSocket);
                                        End(CSocket);
                                    }
                                    else if (LinkBack == 1)
                                    {
                                        AddItem(130109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquestarmor
                                        AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
                                        AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
                                        AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
                                        AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
                                        AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
                                        AddItem(118109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//magiccornet
                                        AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
                                        AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan

                                    }
                                    else if (LinkBack == 2)
                                    {

                                        AddItem(131109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixArmor
                                        AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
                                        AddItem(900109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//dragonshield
                                        AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
                                        AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
                                        AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
                                        AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquesthelment
                                        AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
                                        AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan


                                    }
                                    else if (LinkBack == 3)
                                    {

                                        AddItem(133109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixJerkin
                                        AddItem(500329, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//shadowbow
                                        AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
                                        AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
                                        AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
                                        AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
                                        AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
                                        AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan


                                    }
                                    else if (LinkBack == 4)
                                    {

                                        AddItem(134109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//pineRobe
                                        AddItem(421339, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//KingsOfBackSword
                                        AddItem(121249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//SunShine
                                        AddItem(152229, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Lightning
                                        AddItem(160249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Blizzard
                                        AddItem(114109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//PhoenixHat
                                        AddItem(202009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//startower
                                        AddItem(201009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//heavenfan

                                    }
                                    else if (LinkBack == 5)
                                    {

                                        AddItem(135109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//pineRobe
                                        AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
                                        AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
                                        AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//SunShine
                                        AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Lightning
                                        AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
                                        AddItem(112109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
                                        AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
                                        AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan


                                    }
                                    break;
                                    {
                                public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
{
Struct.ItemInfo Item = new Struct.ItemInfo();
if (dura == 255)
{
Item.Dura = Item.MaxDura;
}
else
{
Item.Dura = dura;
}
Item.Bless = bless;
Item.Enchant = enchant;
Item.ItemID = itemid;
Item.Plus = plus;
Item.Position = position;
Item.Soc1 = soc1;
Item.Soc2 = soc2;
Item.Color = color;
Item.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Item, CSocket);
while (!created)
{
Item.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Item, CSocket);
}

CSocket.Client.Inventory.Add(Item.UID, Item);
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
}
Tell me if it works.
01/08/2010 02:44 bart2712#577
ok i deleted exactly what you said, now it says just one error...at a line at the end of the section...ill post a screen for ya.

Im assuming ill have to delete this section as well, seeing as how it has to do with the LoveStone
01/08/2010 02:47 Arcо#578
Quote:
Originally Posted by bart2712 View Post
ok i deleted exactly what you said, now it says just one error...at a line at the end of the section...ill post a screen for ya.

Im assuming ill have to delete this section as well, seeing as how it has to do with the LoveStone

Lol just go to the very beginning of that code and type in #region Lovestone.
Like example:

#region LoveStone
case 390:


Get it?
01/08/2010 02:48 bart2712#579
lol ok gotcha....ill try that.

Edit: that did it...says 0 errors now. Thank you so very much...i never would have figured it out on my own.
01/08/2010 02:49 Arcо#580
Quote:
Originally Posted by bart2712 View Post
lol ok gotcha....ill try that.

You should have zero listed errors now.
01/08/2010 02:56 bart2712#581
yes it says 0 errors now, and allows me to compile it.

Stupid question, but once i compile it, wheres the finished server .exe file located that i should run to see my edits on game?
01/08/2010 02:58 Arcо#582
Quote:
Originally Posted by bart2712 View Post
yes it says 0 errors now, and allows me to compile it.

Stupid question, but once i compile it, wheres the finished server .exe file located that i should run to see my edits on game?

Which exe are you talking about?
01/08/2010 02:58 bart2712#583
the NewestCOServer.exe that i should run to start the server, and so ill see my edits in game when i login
01/08/2010 03:00 Arcо#584
Quote:
Originally Posted by bart2712 View Post
the NewestCOServer.exe that i should run to start the server, and so ill see my edits in game when i login

What do you mean by your edits in game?
Are you talking about just starting up the client?
01/08/2010 03:01 bart2712#585
no i mean once i edit the .cs files then compile the server project...where would i find the NewestCOServer.exe that i would have to run to get the server running?

I mean so that the server will be running, and i can see the changes i made once i login to the client.