Register for your free account! | Forgot your password?

Go Back   elitepvpers MMORPGs Conquer Online 2 CO2 Private Server
You last visited: Today at 01:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help ConquerItemInformation

Discussion on Help ConquerItemInformation within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 38
Received Thanks: 2
Help ConquerItemInformation

problem with code :

Code:
private void getPlusInformation(uint ID, byte Plus)
        {
            var itemtype = ID;
            var type = GetItemType(ID);
            var sort = GetItemSort(ID);
            if (type == ItemType.Backsword || type == ItemType.Bow)
            {
            }
            else if (sort == ItemSort.Weapon1)
            {
                itemtype = (itemtype / 100000) * 100000 + (itemtype % 1000) + 44000;
            }
            else if (sort == ItemSort.Weapon2)
            {
                itemtype = (itemtype / 100000) * 100000 + (itemtype % 1000) + 55000;
            }
            else if (sort == ItemSort.Helmet || sort == ItemSort.Armor || sort == ItemSort.Shield)
            {
                itemtype = (itemtype / 1000) * 1000 + (itemtype % 1000);
            }

            itemtype = itemtype / 10 * 10;

             byte itemType = (byte)(ID / 10000);
             ushort itemType2 = (ushort)(ID / 1000);
             if (itemType == 14 && itemType2 != 143 && itemType2 != 142 && itemType2 != 141)//armors
             {
                 ID = (uint)(
                             (((uint)(ID / 1000)) * 1000) + // [3] = 0
                             ((ID % 100))
                         );
             }
             else if (itemType2 == 141 || itemType2 == 142 || itemType2 == 143 || itemType == 13 || itemType == 11 || itemType2 == 123 || itemType == 30 || itemType == 20 || itemType == 12 || itemType == 15 || itemType == 16 || itemType == 50 || itemType2 == 421 || itemType2 == 601 || itemType2 == 610 || itemType == 90)//Necky bow bag
             {
                 ID = (uint)(
                             ID - (ID % 10) // [5] = 0
                         );
             }
             else
             {
                 byte head = (byte)(ID / 100000);
                 ID = (uint)(
                         ((head * 100000) + (head * 10000) + (head * 1000)) + // [1] = [0], [2] = [0]
                         ((ID % 1000) - (ID % 10)) // [5] = 0
                     );
             }

            _PlusInformation = new ConquerItemPlusInformation();
            if (Plus > 0)
            {
                SafeDictionary<byte, ConquerItemPlusInformation> pInfo = null;
                if (!PlusInformations.TryGetValue(itemtype, out pInfo))
                    PlusInformations.TryGetValue(ID, out pInfo);
                if (pInfo == null)
                    if (!pInfo.TryGetValue(Plus, out _PlusInformation))
                        _PlusInformation = new ConquerItemPlusInformation();
            }
        }
alissoncuan is offline  
Old   #2
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Okay.
Best Coder 2014 is offline  
Old   #3
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 875
Received Thanks: 240
Too much info about the problem
abdoumatrix is offline  
Old   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 38
Received Thanks: 2
I have this same problem:
alissoncuan is offline  
Old   #5
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 952
Received Thanks: 418
My problem is with money
pintinho12 is offline  
Reply




All times are GMT +2. The time now is 01:07.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.