[Help] Garment bug/Equip bug [Converted to ini]

01/24/2009 21:35 justprownage#1
Hey guys I get this bug whenever I put a garment on:

[Only registered and activated users can see links. Click Here To Register...]

I removed:
Code:
                foreach (string[] Item in DataBase.DBPlusInfo)
                {
                    if (PItemID == Item[0])
                        if (ItemPlus == byte.Parse(Item[1]))
                        {
                            PItem = Item;
                            break;
                        }
                }
But it would remove the attack bonuses. So does anyone know how to fix this code?
01/24/2009 21:37 Beta Limit#2
technically Garments not suppose to have Attack bonus, sockets etc.
01/24/2009 21:38 crappyreleases2#3
Quote:
Originally Posted by Beta Limit View Post
technically Garments not suppose to have Attack bonus, sockets etc. So removing that wouldn't really matter
ooo lol
01/24/2009 21:41 justprownage#4
Quote:
Originally Posted by Beta Limit View Post
technically Garments not suppose to have Attack bonus, sockets etc.
If I remove that code, it actually removes the attack bonuses for weapons also.
01/24/2009 22:52 damianpesta#5
Quote:
Originally Posted by justprownage View Post
If I remove that code, it actually removes the attack bonuses for weapons also.
It saves fine for me. I think that you have to do it same way Kinshi Did inventory.Have a fun. My saves fine in one line now.
01/24/2009 23:10 alexbigfoot#6
technicaly it dont even has anything to do with "ini`s" , its just a LOTF error...and if u`d read that console better u should see the easy fix lol, in character.cs , search for
Code:
 public void AddItem(string ItemInfo,
then find there
Code:
                        else if (ToPos < 10)
                        {
                            Equips[ToPos] = ItemInfo;
                            Equips_UIDs[ToPos] = UID;
                            GetEquipStats(ToPos, false);
                        }
change it to:

Code:
                        else if (ToPos < 9)
                        {
                            Equips[ToPos] = ItemInfo;
                            Equips_UIDs[ToPos] = UID;
                            GetEquipStats(ToPos, false);
                        }

Problem fixed. The 3nD.
01/24/2009 23:22 justprownage#7
Quote:
Originally Posted by alexbigfoot View Post
technicaly it dont even has anything to do with "ini`s" , its just a LOTF error...and if u`d read that console better u should see the easy fix lol, in character.cs , search for
Code:
 public void AddItem(string ItemInfo,
then find there
Code:
                        else if (ToPos < 10)
                        {
                            Equips[ToPos] = ItemInfo;
                            Equips_UIDs[ToPos] = UID;
                            GetEquipStats(ToPos, false);
                        }
change it to:

Code:
                        else if (ToPos < 9)
                        {
                            Equips[ToPos] = ItemInfo;
                            Equips_UIDs[ToPos] = UID;
                            GetEquipStats(ToPos, false);
                        }

Problem fixed. The 3nD.
It still doesn't work. I can equip the garment now and I can see it. But I cant unequip it.
01/25/2009 03:30 crappyreleases2#8
i get same error too i put on a neckelece and then it gone