Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 22:40

  • 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: 37
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 04/17/2015, 08:07   #2
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Okay.
Best Coder 2014 is offline  
Old 04/20/2015, 18:07   #3
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
Too much info about the problem
abdoumatrix is offline  
Old 04/21/2015, 01:39   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 37
Received Thanks: 2
I have this same problem:
alissoncuan is offline  
Old 04/22/2015, 23:04   #5
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 907
Received Thanks: 390
My problem is with money
pintinho12 is offline  
Reply




All times are GMT +2. The time now is 22:40.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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