Jump to content

EquipItem and Enchantments


zaira

Recommended Posts

If I use clothes with custom enchantments EquipItem() won't apply the enchantment to the NPC.

function EquipOutfit(Armor[] clothes,Actor npc,Enchantment ench)
	int x = clothes.Length
	while x > 0
		x -= 1
		if Math.LogicalAnd(clothes[x].GetSlotMask(),0x04)
			clothes[x].SetEnchantment(ench)
		endif
		npc.EquipItem(clothes[x])
	endwhile
endfunction

Any idea what's wrong? If I replace EquipItem with EquipItemEx the NPC ends naked.

 
Link to comment

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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. For more information, see our Privacy Policy & Terms of Use