Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2015, 08:00 PM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default Item icon numbers?

Ok, I know this is probably a stupid question but it has been bugging me for a while. I use Akka's EOC to look at the weapon viewer and it gives the IT# for the weapon but how do you find the icon # if you don't know the name of the weapon to look up in the database?

Thanks,
Mortow
Reply With Quote
  #2  
Old 08-27-2015, 08:15 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

So, you're in a situation where you're looking at a weapon icon graphic, and can't tell which IT#### model it's associated with and what item id's use that model and icon?
Reply With Quote
  #3  
Old 08-27-2015, 09:11 PM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default

EOC displays the IT# for the graphic I am looking at but I don't know where to dig up the icon number associated with that model weapon.
Reply With Quote
  #4  
Old 08-27-2015, 09:15 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

I'm not aware of anything in particular that ties a weapon model number to an item icon number. No algorithm or translation table or anything. It's just a matter of having an icon number specified in the item record in the database that gives a look relatively like the 3D weapon/armor/item model used in game.
Reply With Quote
  #5  
Old 08-27-2015, 09:46 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

You could always do something in Perl using DBI to select all of the possible variations of item textures for an icon. But sometimes icons are used for non-visible (IT63) items, as well as weapons that look no where close to the icon itself.
Reply With Quote
  #6  
Old 08-27-2015, 09:53 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

Double posting because it's a bump:
Code:
use DBI;
use DBD::mysql;
sub List {
    my $icon = shift;
    my $user = "USERNAME";
    my $pass = "PASSWORD";
    my $db = "DATABASE";
    my $dbh = DBI->connect("dbi:mysql:$db:localhost:3306", $user, $pass);
    $sth = $dbh->prepare("SELECT DISTINCT idfile FROM `items` WHERE `icon` = '$icon' ORDER BY `idfile` ASC");
    $sth->execute();
    my @a;
    if ($sth->rows() > 0) {
        while (my $idfile = $sth->fetchrow()) {
            push @a, $idfile;
        }
    }
    $sth->finish();
    $dbh->disconnect();
    return "All of the following item textures are used for icon $icon: " . join(", ", @a);
}
print "What icon would you like to see the textures for?\n";
my $icon = int(<STDIN>);
print List($icon);

Last edited by Kingly_Krab; 08-28-2015 at 02:50 PM..
Reply With Quote
  #7  
Old 08-27-2015, 10:07 PM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default

I will give that a try, Kingly. Thank you both for your help.
Reply With Quote
  #8  
Old 08-27-2015, 10:37 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

You're welcome, here's an example of its use.
Reply With Quote
  #9  
Old 08-28-2015, 06:44 AM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default

That is actually the reverse of what I need. I know the IT#### but not the actual icon#.
Reply With Quote
  #10  
Old 08-28-2015, 02:49 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

I apologize:
Code:
use DBI;
use DBD::mysql;
sub List {
    my $idfile = shift;
    chomp $idfile;
    my $user = "USERNAME";
    my $pass = "PASSWORD";
    my $db = "DATABASE";
    my $dbh = DBI->connect("dbi:mysql:$db:localhost:3306", $user, $pass);
    $sth = $dbh->prepare("SELECT DISTINCT icon FROM `items` WHERE `idfile` = '$idfile' ORDER BY `icon` ASC");
    $sth->execute();
    my @a;
    if ($sth->rows() > 0) {
        while (my $icon = $sth->fetchrow()) {
            push @a, $icon;
        }
    }
    $sth->finish();
    $dbh->disconnect();
    return "All of the following item icons are used for idfile $idfile: " . join(", ", @a);
}
print "What idfile would you like to see the icons for?\n";
my $idfile = <STDIN>;
print List($idfile);
Example of use:
Reply With Quote
  #11  
Old 08-28-2015, 09:54 PM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default

Thanks, Kingly. That works great.
Reply With Quote
  #12  
Old 08-28-2015, 11:01 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

You're welcome.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:32 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3