[Help] itemtype to item min icon

02/10/2012 03:03 BioHazarxPaul#1
Alright, so I have all the item min icons, and I am trying to figure out how the client handles associating the itemtype.dat to the right item min icon. I currently have a way, but its going to take so many lines and i feel tq has a simpler way they would do this, I just have yet to see the pattern..
02/10/2012 16:23 Kiyono#2
I could swear that they simply use the itemID.
02/10/2012 17:03 BioHazarxPaul#3
nop, cause you have different color armors, and items like the elite swords and normal swords are different colors..
02/10/2012 17:59 shadowman123#4
Quote:
Originally Posted by BioHazarxPaul View Post
nop, cause you have different color armors, and items like the elite swords and normal swords are different colors..
dude weapons.ini play gr8 role in that cuz Simply the Weapoin.ini contains all weapons of all quality and levels beside that the meshes of weps and their itemID too beside the texture so its how it goes
02/10/2012 18:14 BioHazarxPaul#5
well screw that, Ill just figure out my own way..
PHP Code:
function neck($val)
{
       
$id $val;
       
$arryid str_split($id5);
       
$id1 $arryid[0];
       if(
$id <= 160240
       {
           
$arryid[1] = 0;
           
$id2 $arryid[1];
       }
       else
       {
           
$arryid[1] = 5;
           
$id2 $arryid[1];
       }
       echo 
'<div class="profileneck"><img class="itemicon" title="neck_'.$val.'" src="ItemMinIcon/'.$id1.''.$id2.'.png" /></div>';

thats what i currently have for each type of item, but there has to be a more effective way to do this..
02/10/2012 18:54 turk55#6
lets take a burriedblade, the id of that is 410333 - 410339 in itemtype.dat but tq is doing it hard again and used also another id in the client for the itemminicon and mapitemicon.
inside ani > itemminicon.ani search for the id and you will see the id tq used for the itemminicon
02/10/2012 19:16 BioHazarxPaul#7
okay i understand that but i am working on a way to convert the item id to that item min icon, so i can pull players items from database and display an icon on the website, i can get most of it to work but, once you go to higher level things change..
02/10/2012 19:19 shadowman123#8
for example Buried Blade code is 409000 and its quality is Normal So once u open weapons.ini u will find its id in is 409000 and u will find its texture and its mesh too and their Appearence inside the inventory is itemminicon and the mesh of weapon in Floor lies in mapitemicon and u can use dds Thumb Viewer to know the ID of the icons then these itemminicon and mapitemicon icons r being loaded from Ani So i guess i gave u all data u need
02/10/2012 20:45 I don't have a username#9
Different armor colors are different armor ids.
02/10/2012 21:33 BioHazarxPaul#10
Quote:
Originally Posted by shadowman123 View Post
for example Buried Blade code is 409000 and its quality is Normal So once u open weapons.ini u will find its id in is 409000 and u will find its texture and its mesh too and their Appearence inside the inventory is itemminicon and the mesh of weapon in Floor lies in mapitemicon and u can use dds Thumb Viewer to know the ID of the icons then these itemminicon and mapitemicon icons r being loaded from Ani So i guess i gave u all data u need
You gave me everything i already know, as i said before the idea is to setup a function that will convert the players current items to match with the min icons.. I am just going to do it my own way, just figured someone might have already have a way of doing it that would be willing to share..

HTML Code:
 <div class="profilehead"><img class="itemicon" title="head_118209" src="ItemMinIcon/118200.png" /></div>
Example the title is the user item and the ItemMinIcon is me converting it to match with that picture.