Skip to content

Commit

Permalink
VIP TOC Trinket Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
mnclaras committed Dec 3, 2020
1 parent 403e4f0 commit 0ade80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/scripts/Custom/custom_vip_only_npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0ade80e

Please sign in to comment.