Register for your free account! | Forgot your password?

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

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

Advertisement



[Question]Other.ItemType(uint item)

Discussion on [Question]Other.ItemType(uint item) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
[Release](not [Question] anymore)Other.ItemType(uint item)

newbie coder (\scriptkiddie) here rewriting ShadowCO to learn C#.. I was wondering if someone could explain the following part to me:

Code:
        public static int ItemType(uint item)
        {
            string Item = Convert.ToString(item);
            string type = Item.Remove(1, Item.Length - 1);

            return int.Parse(type);
        }

        public static int ItemType2(uint item)
        {
            string Item = Convert.ToString(item);
            string type = Item.Remove(2, Item.Length - 2);

            return int.Parse(type);
        }
from what I've seen in Entities.cs and some other files, ItemTypes 4 and 5 are some kind of weapon(s)... could someone tell me what itemtypes are what?


EDIT:
Figured it out, lol... I didn't realize how organized the item database that came with it was!

here's the results:

Code:
            /*
             *
             *  ItemType        =       Type
             *  0               =       (None)
             *  1(0)            =       Miscconsumable
             *  1(>0)         =       Other Armors, not shield (Helmet - ItemType2() = 11)
             *  2               =       Talisman
             *  3               =       (None)
             *  4               =       Blade
             *  5               =       other weapon (itemtype2):
             *  <---
             *  50              =       Bow
             *  51              =       Glaive
             *  53              =       Poleaxe
             *  54              =       LongHammer
             *  56              =       SpearWand (wierd... 560 = Spear, 561 = Wand..no ItemType3 exists yet :P)
             *  58              =       Halberd
             *  --->
             *  6               =       (None)
             *  7               =       RareItem (Gems, scrolls, amulets, etc)
             *  8               =       (None)
             *  9               =       Shield
            */
Rechocto is offline  
Old 09/02/2008, 22:27   #2
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
=/ thats a really ****** method to do what it's doing; here's a better one (from what I can see it just returns the first digit)

Code:
public static byte ItemType(uint item)
        {
            return (int)(item / 100000);
        }
InfamousNoone is offline  
Reply


Similar Threads Similar Threads
Itemtype.dat (Change Item Names)
04/14/2011 - CO2 Exploits, Hacks & Tools - 23 Replies
Hey Everyone, This Tool is Helpfull for Changing the Name of items for eg. Changing the PineRobe of quality Super you could change the name to like SuperPineRobe or SupPineRobe so you can see it on ground named that. I know people have posted the itemtype files b4 for you. This program was not created by me, It was posted allong time ago but on use for something else. Now Rather then getting the files of other people do it yourself its very simple and self explainatory. You might also find...
[GUIDE] adding an item to itemtype.dat
01/15/2011 - EO PServer Guides & Releases - 32 Replies
ok here goes open your itemtype.dat in your hexeditor, i use winhex but you can use whatever works for you. in the top left corner u see 4 hex numbers this is the amount of items you have in ur itemtype.dat u need to edit this number to add the new item. remember all hex needs to be done backwards.http://img165.imageshack.us/img165/1839/ hexedit1.png ok as u can see in pic 2 i have copied from the beginning of this casual to the last 00 before the start of my next item, you need to copy...
[Help]How to Delete item In Itemtype.dat besides using HexEditor
12/20/2009 - EO PServer Hosting - 2 Replies
Hi All .. I need help to remove the item in itemtype.dat it is very difficult ... when I use HexEditor ... will always bug him and now I want to know .. whether you have software that can remove the item in itemtype.dat that ... I was expecting your help ..:handsdown:
How to add new item in itemtype.dat
04/08/2007 - Conquer Online 2 - 4 Replies
i hawe wery good idea! Just i need to know how to put new item in item type.dat file? HELP ME AND I HELP U HOW TO GET WERY GOOD ITEMS of MOONBOX ;)



All times are GMT +2. The time now is 18:16.


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.