From 0ade80ea4990aa423aec3e4e43bc7eecbde254b8 Mon Sep 17 00:00:00 2001 From: Mario Navarro Claras Date: Thu, 3 Dec 2020 20:42:14 +0100 Subject: [PATCH] VIP TOC Trinket Fix #4 --- src/server/scripts/Custom/custom_vip_only_npc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Custom/custom_vip_only_npc.cpp b/src/server/scripts/Custom/custom_vip_only_npc.cpp index f37e0d30b83931..d23a08baf7d9c6 100644 --- a/src/server/scripts/Custom/custom_vip_only_npc.cpp +++ b/src/server/scripts/Custom/custom_vip_only_npc.cpp @@ -28,7 +28,7 @@ #define DEFAULT_MESSAGE 907 #define ACTION_CONFIRM_TEXT_SPANISH "¿Estas seguro de que quieres obtener el abalorio?" #define ACTION_CONFIRM_TEXT_ENGLISH "Are you sure you want to take the trinket?" -#define ACTION_ERROR_TEXT_SPANISH "Debes des-equipar al menos un abalorio para obtener este objeto." +#define ACTION_ERROR_TEXT_SPANISH "Debes desequipar al menos un abalorio para obtener este objeto." #define ACTION_ERROR_TEXT_ENGLISH "You must at least unequip one trinket to get this item." enum TocTrinkets @@ -164,7 +164,7 @@ class custom_vip_toc_trinkets_npc : public CreatureScript if (slot != NULL_SLOT) { uint16 eDest; - InventoryResult msg = player->CanEquipNewItem(slot, eDest, itemEntry, false); + InventoryResult msg = player->CanEquipNewItem(NULL_SLOT, eDest, itemEntry, false); if (msg == EQUIP_ERR_OK) { player->EquipNewItem(eDest, itemEntry, true);