Official 5165 FAQ/Question thread

02/02/2010 07:11 ipwnudont#886
Sounds like a problem with the Wuxing Oven .Arcos has released a working one just search the forumns :]

#edit
.Arco's Wuxing code-
Code:
#region Enchanter
                            case 35016:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Compose or Enchant or Bless using Tortoise gems?"));
                                        GC.AddSend(Packets.NPCLink("Compose", 250));
                                        GC.AddSend(Packets.NPCLink("Enchant", 251));
                                        GC.AddSend(Packets.NPCLink("Bless", 252));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 250)
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 1, N.Loc.X, N.Loc.Y, 0x7e));
                                    else if (Control == 251)
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 0x443, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 116));
                                    else if (Control == 252)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to set bless."));
                                        GC.AddSend(Packets.NPCLink("Headgear", 1));
                                        GC.AddSend(Packets.NPCLink("Necklace/Bag", 2));
                                        GC.AddSend(Packets.NPCLink("Armor", 3));
                                        GC.AddSend(Packets.NPCLink("Weapon", 4));
                                        GC.AddSend(Packets.NPCLink("Shield", 5));
                                        GC.AddSend(Packets.NPCLink("Ring", 6));
                                        GC.AddSend(Packets.NPCLink("Next", 200));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 200)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to set bless."));
                                        GC.AddSend(Packets.NPCLink("Boots", 8));
                                        GC.AddSend(Packets.NPCLink("HeavenFan", 10));
                                        GC.AddSend(Packets.NPCLink("StarTower", 11));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control >= 1 && Control <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get((byte)(Control));
                                        if (I.Bless != 7)
                                        {
                                            byte TortoiseNeed = 0;
                                            if (I.Bless == 0)
                                                TortoiseNeed = 10;
                                            else if (I.Bless == 1)
                                                TortoiseNeed = 15;
                                            else if (I.Bless == 3)
                                                TortoiseNeed = 20;
                                            else if (I.Bless == 5)
                                                TortoiseNeed = 25;

                                            if (!GC.Agreed)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need " + TortoiseNeed + " Super Tortoises to upgrade. Do you want it?"));
                                                GC.AddSend(Packets.NPCSay("Your item current bless is " + I.Bless + "."));
                                                if (I.Bless != 0)
                                                    GC.AddSend(Packets.NPCSay("It will be " + (I.Bless + 2) + "."));
                                                GC.AddSend(Packets.NPCLink("Yes.", Control));
                                                GC.AddSend(Packets.NPCLink("Nevermind.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                                GC.Agreed = true;
                                            }
                                            else
                                            {
                                                GC.Agreed = false;
                                                if (GC.MyChar.InventoryContains(700073, TortoiseNeed))
                                                {
                                                    GC.MyChar.EquipStats((byte)(Control), false);
                                                    for (byte i = 0; i < TortoiseNeed; i++)
                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(700073));
                                                    if (I.Bless == 0)
                                                        I.Bless = 1;
                                                    else
                                                        I.Bless += 2;
                                                    GC.MyChar.Equips.Replace((byte)(Control), I, GC.MyChar);
                                                    GC.MyChar.EquipStats((byte)(Control), true);

                                                    GC.AddSend(Packets.NPCSay("Here you are. It's done."));
                                                    GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("You don't have enough Tortoise Gems."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You cannot upgrade an item's bless which is already at maximum."));
                                            GC.AddSend(Packets.NPCLink("I see", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control >= 10 && Control <= 11)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get((byte)(Control));
                                        if (I.Bless != 1)
                                        {
                                            byte TortoiseNeed = 0;
                                            if (I.Bless == 0)
                                                TortoiseNeed = 30;

                                            if (!GC.Agreed)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need " + TortoiseNeed + " Super Tortoises to upgrade. Do you want it?"));
                                                GC.AddSend(Packets.NPCSay("Your item current bless is " + I.Bless + "."));
                                                GC.AddSend(Packets.NPCLink("Yes.", Control));
                                                GC.AddSend(Packets.NPCLink("Nevermind.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                                GC.Agreed = true;
                                            }
                                            else
                                            {
                                                GC.Agreed = false;
                                                if (GC.MyChar.InventoryContains(700073, TortoiseNeed))
                                                {
                                                    GC.MyChar.EquipStats((byte)(Control), false);
                                                    for (byte i = 0; i < TortoiseNeed; i++)
                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(700073));
                                                    if (I.Bless == 0)
                                                        I.Bless = 1;
                                                    GC.MyChar.Equips.Replace((byte)(Control), I, GC.MyChar);
                                                    GC.MyChar.EquipStats((byte)(Control), true);

                                                    GC.AddSend(Packets.NPCSay("Here you are. It's done."));
                                                    GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("You don't have enough Tortoise Gems."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You cannot upgrade an item's bless which is already at maximum."));
                                            GC.AddSend(Packets.NPCLink("I see", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }

                                    break;
                                }
                            #endregion
02/02/2010 15:31 JKdeVille#887
Hey =)

I´m Back now with some Question´s.

I have Setup the Server Correctly. Added Something from mine old codes and i have a request to the .ini with User and Charakter.

How can I change that the server accept some symbols like this >> ê â << in the Charakter Name.

If i put a symbol like JKdêVîllê as Charakter Name and i try to login. The Client Close.

Thank´s for any Reply

Dear´s JKdeVille
02/02/2010 15:33 JKdeVille#888
And i Have a Little Request =)

A Clean 5165 Source to Add some things =) ;).. Thanks again for any Reply´s
02/02/2010 22:02 iRook#889
I have a composition problem. Say I have a blade, +9, and i use +8 stone on it. It will instantly go to +12. When I equip it, it shows that it is only +9. Then when i take it off and put it back in the Wuxing oven again, it will do the same thing. So people on my server are only getting +9s, max. Any idea why?
02/02/2010 23:30 ipwnudont#890
@iRook
Please read my post about 2 or 3 above yours about the Wuxing oven i think that is whats wrong with yours too
02/02/2010 23:51 mAr1u$#891
no1's answering again..... reposting my last post:

I got 2 problems :-s.... 2nd sock npc(BlacksmithLee dont work for all characters, dont understand why, and after 15-20 mins stamina stop recharging anymore... any help?
02/03/2010 00:02 Arcо#892
Quote:
Originally Posted by mAr1u$ View Post
no1's answering again..... reposting my last post:

I got 2 problems :-s.... 2nd sock npc(BlacksmithLee dont work for all characters, dont understand why, and after 15-20 mins stamina stop recharging anymore... any help?
As for blacksmith lee look at his code you will realize he is checking and costing a certain amount of silver.
Delete that and he won't charge anymore.
Or just make him say it costs silvers so people will know.
02/03/2010 00:24 MoD4fuk4#893
Quote:
Originally Posted by ipwnudont View Post
@iRook
Please read my post about 2 or 3 above yours about the Wuxing oven i think that is whats wrong with yours too
Nop, that code doesn't solve the +9+ problem (Which I haven't noticed). Its a cool code to add the Bless, but It can't help iRook :)
02/03/2010 02:24 WHITELIONX#894
Ok this should be real simple for those that know what they are doing but I am just getting really annoyed with it lol. All I want is to be able to have it so that only a PM can access certain NPCs.

if (GC.GM) <<<<----This works BUT [PM] can not see what the NPC says and before somebody says just change GM to PM well it does not work when you try changing it >.<

So how do I make it work for [PM] only and NOT [GM]? For now I have just added it so that a char with VIP level 7 can access it and seeing as only I am able to give VIP then this is a temporary solution, however I would still like to know how to have it so that only [PM] can access certain NPCs lol
02/03/2010 03:51 Arcо#895
Quote:
Originally Posted by WHITELIONX View Post
Ok this should be real simple for those that know what they are doing but I am just getting really annoyed with it lol. All I want is to be able to have it so that only a PM can access certain NPCs.

if (GC.GM) <<<<----This works BUT [PM] can not see what the NPC says and before somebody says just change GM to PM well it does not work when you try changing it >.<

So how do I make it work for [PM] only and NOT [GM]? For now I have just added it so that a char with VIP level 7 can access it and seeing as only I am able to give VIP then this is a temporary solution, however I would still like to know how to have it so that only [PM] can access certain NPCs lol
Go to chat.cs and you'll see something like if (Auth blahblah == "[PM]")
Use that sorta method.
02/03/2010 12:22 mAr1u$#896
can some1 tell me how I can add basilisk on other map too? :-ss
02/03/2010 15:06 pkedyuh#897
Well all went good till I had some dll problems, went downloaded the dll and fixed some of the errors but now im lost with this one. Please try to solve soon.

Also, forgot to tell you this, already did the 32-bit thing. Didn't solve all my problems as you can tell. Also I am not using the source you added up there, but the one I am using is pretty much the same as it. Same error on the source u provided lol.
02/03/2010 15:18 Hotche#898
Hi all, when im going to start up my server im getting an error?

Here is a pic:
[Only registered and activated users can see links. Click Here To Register...]
Bigger: [Only registered and activated users can see links. Click Here To Register...]

Please help me with this.
Im i going to edit some .cs files or is it just the config.ini in the OLDDCODB?
Please help me!
02/03/2010 15:28 pkedyuh#899
Hey, try running the server through the actual server file, your in the DB, not the server. If your using the source he provided it will br in the Fixed Source file..
02/03/2010 15:45 Hotche#900
Quote:
Originally Posted by pkedyuh View Post
Hey, try running the server through the actual server file, your in the DB, not the server. If your using the source he provided it will br in the Fixed Source file..
How to u mean? Can u write which folders im going in to?