Hey guys,
Â
im currently trying to create an npc with a gossip menu, where the player can select for which spec he wants to have items.
The script then adds a default equippment with enchantments and gems to the player. Now i have my problem:
Â
I dont know how to add gems to a given item via script.
Iive searched the skyfire scripts Item.cpp and other stuff and the only thing i found out that its treatened like an enchantment.
Â
Can anybody give me a hint which methods i have to call in an item object to achieve this?
Â
Current function:
void AddGem(Item * item, EnchantmentSlot slot, uint32 gemId)
{
item->SetEnchantment(slot, gemId, 0, 0);
}
AddGem(item, SOCK_ENCHANTMENT_SLOT, 83151);
AddGem(item, PRISMATIC_ENCHANTMENT_SLOT, 76884);
Greetings,
Crashkurs