Double Icon Creator (SpellIcon AND ItemDisplayInfo Icon)

3.3.5a Double Icon Creator (SpellIcon AND ItemDisplayInfo Icon) 1_0_1

Quickly creates both a spell icon and a item display info (icon) and an item_template from blp
This is a double Icon Creator for:
itemDisplayInfo - item display with only icon.
spellIcon - spell icon for use with spells.

To create icons, input the
name only!
Icons
needs to be in Interface\Icons.

Replace
dev_world. and dev_dbc_files. with your own database names!

Will also
SELECT both the spellIcon and the item_template.entry that were created.

Query:
SQL:
-- #################################################
-- ########## Double Icon Creator ##################
-- #################################################
-- ### By Frathir #### ####### # ###
-- ######################################


-- Creates an icon for a spell AND an item

-- INCLUDES DATABASE SELECTORS

-- dbc file update checklist (you need to update these for the icon to show ingame)
    /*
        itemDisplayInfo.dbc
        item.dbc (remember to run the update item.dbc query first)
        spellIcon.dbc
    */

-- INPUT Name here:
    SET
        @omega_blp_file_name := 'spell_deathknight_frostfever'; -- NO path, NO file type suffix
            -- LIKE THIS: 'spell_deathknight_frostfever'


-- max entry/ID selectors

    SET
        @max_db_spellicon_12340_ID := (SELECT MAX(db_spellicon_12340.ID)
                                            FROM dev_dbc_files.db_spellicon_12340);
  SET
        @max_db_itemdisplayinfo_12340_ID := (SELECT MAX(db_itemdisplayinfo_12340.ID)
                                            FROM dev_dbc_files.db_itemdisplayinfo_12340);
    SET
        @max_item_template_entry := (SELECT MAX(item_template.entry)
                                            FROM dev_world.item_template);

-- dev_dbc_files

-- db_spellicon_12340

    INSERT INTO dev_dbc_files.`db_spellicon_12340`
            (`ID`, `TextureFilename`)
        VALUES
            (@max_db_spellicon_12340_ID +1,
              (CONCAT('Interface\\Icons\\', @omega_blp_file_name, '.blp')));


-- db_itemdisplayinfo_12340

    INSERT INTO dev_dbc_files.`db_itemdisplayinfo_12340`
            (`ID`, `ModelName_1`, `ModelName_2`, `ModelTexture_1`, `ModelTexture_2`,
              `InventoryIcon_1`, `InventoryIcon_2`, `GeosetGroup_1`, `GeosetGroup_2`,
              `GeosetGroup_3`, `Flags`, `SpellVisualID`, `GroupSoundIndex`,
              `HelmetGeosetVis_1`, `HelmetGeosetVis_2`, `Texture_1`,
              `Texture_2`, `Texture_3`, `Texture_4`, `Texture_5`,
              `Texture_6`, `Texture_7`, `Texture_8`, `ItemVisual`, `ParticleColorID`)
        VALUES
            (@max_db_itemdisplayinfo_12340_ID +1, '', '', '', '',
              @omega_blp_file_name,
              '', 0, 0, 0, 0, 0,
              0, 0, 0, '', '', '', '', '', '', '', '', 0, 0);


-- dev_world

-- item_template
    INSERT INTO dev_world.`item_template`
            (`entry`, `class`, `subclass`, `name`, `displayid`, `Quality`,
              `InventoryType`, `bonding`, `description`)
        VALUES
            (@max_item_template_entry +1, 12, 0, (CONCAT('Icon Test: ', @omega_blp_file_name)),
              @max_db_itemdisplayinfo_12340_ID +1, 1, 0, 1, 'Icon visual test item. Does nothing.');




-- SELECTORS

SELECT
        ID as SpellIconID, TextureFilename -- all
    FROM
        dev_dbc_files.db_spellicon_12340
    WHERE
        dev_dbc_files.db_spellicon_12340.ID = @max_db_spellicon_12340_ID +1;

SELECT
        entry as itemEntry, displayid as itemDisplayID, name as itemName
    FROM
        dev_world.item_template
    Where
        dev_world.item_template.entry = @max_item_template_entry +1;













--
-- end
Liked By 3 members :
Register & Get access to index
Frathir
Author Frathir
Divine

Posts

18

Likes

28

Resources

6

Version 1_0_1
Downloads 11
Views 701
Last Update
0.00 star(s) 0 ratings
None

3,381

1,252

9,525

410

Top