Allow heroforge textures to be manipulated via perl

This commit is contained in:
Akkadius committed 2016-03-28 21:13:37 -05:00
1 parent 6c5d686b22
commit a82f5f8bf6
3 files changed
+15 -6

No files matched your search

+2 -2
View File
@@ -2881,11 +2881,11 @@ void QuestManager::removetitle(int titleset) {
initiator->RemoveTitle(titleset);
}
void QuestManager::wearchange(uint8 slot, uint16 texture)
void QuestManager::wearchange(uint8 slot, uint16 texture, uint32 hero_forge_model /*= 0*/, uint32 elite_material /*= 0*/)
{
QuestManagerCurrentQuestVars();
if(owner){
owner->SendTextureWC(slot, texture);
owner->SendTextureWC(slot, texture, hero_forge_model, elite_material);
if(owner->IsNPC()) {
owner->CastToNPC()->NPCSlotTexture(slot, texture);
}