Jump to content

Item equipp script


Crashkurs

Recommended Posts

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

Link to comment
Share on other sites

  • Assistant Admin

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.