Crashkurs Posted March 21, 2015 Share Posted March 21, 2015 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 Quote Link to comment Share on other sites More sharing options...
Assistant Admin AriDEV Posted March 23, 2015 Assistant Admin Share Posted March 23, 2015 Atm the enchantment isnt working correctly same like geming stones into items so atm there is no posibility to do a script for it when the system gets fixed there will definitely be a possibility. Â -- AriDEV Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.