Jump to content

Check Spell On item


ToShuk Marusenko

Recommended Posts

4 minutes ago, ToShuk Marusenko said:

so what colums i need to see? i dont know that...

 

why  spellIndex i need to see in item_template???

I said to look at spell columns.
Search for "spell" there are multiple columns, mainly spell_1, spell_2, spell_3..
 

Link to comment
Share on other sites

You initially asked what the function does. The function simply returns the spellID from item_template (most likely).
Seems like this is not what you are after at all.

What is it that you want to do? I do not understand what "check spell on item" means.
Does it mean that you want to check if the player has some aura when he .. .. equips the item?
Does it mean you want to check if an item is able to cast a spell?

Link to comment
Share on other sites

Wowhead says the spell applies an enchant on the item.
So you want to look at enchants the item has. More specifically the temporary enchant, as wowhead says.

http://www.elunaengine.com/Item/GetEnchantmentId.html

enum EnchantmentSlot : uint16
{
PERM_ENCHANTMENT_SLOT = 0,
TEMP_ENCHANTMENT_SLOT = 1,
SOCK_ENCHANTMENT_SLOT = 2,
SOCK_ENCHANTMENT_SLOT_2 = 3,
SOCK_ENCHANTMENT_SLOT_3 = 4,
BONUS_ENCHANTMENT_SLOT = 5,
PRISMATIC_ENCHANTMENT_SLOT = 6, // added at apply special permanent enchantment
MAX_INSPECTED_ENCHANTMENT_SLOT = 7,
PROP_ENCHANTMENT_SLOT_0 = 7, // used with RandomSuffix
PROP_ENCHANTMENT_SLOT_1 = 8, // used with RandomSuffix
PROP_ENCHANTMENT_SLOT_2 = 9, // used with RandomSuffix and RandomProperty
PROP_ENCHANTMENT_SLOT_3 = 10, // used with RandomProperty
PROP_ENCHANTMENT_SLOT_4 = 11, // used with RandomProperty
MAX_ENCHANTMENT_SLOT = 12
};

 

Link to comment
Share on other sites

19 minutes ago, ToShuk Marusenko said:

so, in 


EnchantmentSlot

i need to write slot where weapon??? its 16 and 17 slots ??

No, you write the enchantment slot, which is one of the values I posted.
An item can have multiple enchantments on it, so you must specify which one of them you want ( so from which enchant slot )

Link to comment
Share on other sites

the weapon in 16 and 17 slot, in your 

31 minutes ago, Rochet2 said:

enum EnchantmentSlot : uint16 { PERM_ENCHANTMENT_SLOT = 0, TEMP_ENCHANTMENT_SLOT = 1, SOCK_ENCHANTMENT_SLOT = 2, SOCK_ENCHANTMENT_SLOT_2 = 3, SOCK_ENCHANTMENT_SLOT_3 = 4, BONUS_ENCHANTMENT_SLOT = 5, PRISMATIC_ENCHANTMENT_SLOT = 6, // added at apply special permanent enchantment MAX_INSPECTED_ENCHANTMENT_SLOT = 7, PROP_ENCHANTMENT_SLOT_0 = 7, // used with RandomSuffix PROP_ENCHANTMENT_SLOT_1 = 8, // used with RandomSuffix PROP_ENCHANTMENT_SLOT_2 = 9, // used with RandomSuffix and RandomProperty PROP_ENCHANTMENT_SLOT_3 = 10, // used with RandomProperty PROP_ENCHANTMENT_SLOT_4 = 11, // used with RandomProperty MAX_ENCHANTMENT_SLOT = 12 };

not have 16 and 17 slot

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use