Register for your free account! | Forgot your password?

You last visited: Today at 08:51

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

Advertisement



[Release]How to find Item Quality

Discussion on [Release]How to find Item Quality within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
[Release]How to find Item Quality

Right, decided i would release this, anyone with common sense is probably already doing this but hopefully it will help someone.
Code:
        public static int GetQuality(int ItemID)
        {
            return ItemID % 10;
        }
Give the function the Static Item ID, and it will return the quality (1-9), this can be addapted to use an enum and return Super, Elite, Unique etc:

Code:
        public static ItemQuality GetQuality(uint ItemID)
        {
            return (ItemQuality)(ItemID % 10);
        }

        public enum ItemQuality
        {
            Fixed = 0,
            Normal = 5,
            Refined = 6,
            Unique = 7,
            Elite = 8,
            Super = 9
        }
Thanks are appreciated.
Korvacs is offline  
Thanks
6 Users
Old 12/16/2009, 17:45   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Never really looked at this.
Thanks for the information.
Basser is offline  
Old 12/16/2009, 20:22   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Its virtually nothing but its alot quicker than using strings and splitting them up etc.
Korvacs is offline  
Old 12/16/2009, 21:29   #4
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Thanks korvacs =P
.Ryu is offline  
Reply


Similar Threads Similar Threads
upgrading item quality
11/26/2009 - Conquer Online 2 - 4 Replies
how much dbs will it take to upgrade an normal earring lvl 10 from normal to super?
upgrading item quality
07/19/2009 - Conquer Online 2 - 2 Replies
how many dbs would take for magic artisan to upgrade a lvl 15 unique -3% damage warrior armor i know it takes 6 at lvl 110 ?
Item quality hex hack
07/28/2007 - CO2 Exploits, Hacks & Tools - 15 Replies
I didn't write this, but it looks easy enough to do. Replace the itemtype.dat file in your ini folder with this one. Maybe back up the one you have first though. It displays the quality of the items on the ground. The only stupid thing is that +1 items don't look any different because they aren't listed any diffrently in the client data files, it's determined server side. comments on the edit (if you don't care and just want to use it, see the first paragraph) The edit doesn't look...
Item Quality Viewer
07/21/2007 - CO2 Exploits, Hacks & Tools - 25 Replies
Here you go everyone, its my first release and hopefully you guys find it useful. This file shows items on the ground that have a quality on them, but it doesn't show the names of items without any quality, so this makes it much easier to spot items. And I want to thank chocoman4k for allowing me to use this file, he should get more credit for this then me. Item Quality Viewer Version 1.1 Changes: All of the names of money were edited out, and so were the mana and health pots. This...



All times are GMT +2. The time now is 08:51.


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.