Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit e68fc9c

Browse files
committed
Added information on sale bonus.
1 parent 27e3486 commit e68fc9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/RecycledItems.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ bool RecycledItemsCreatureScript::OnGossipHello(Player* player, Creature* creatu
163163
}
164164
bool RecycledItemsCreatureScript::OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
165165
{
166+
if (action == 0)
167+
{
168+
return true;
169+
}
170+
166171
ClearGossipMenuFor(player);
167172

168173
switch (action)
@@ -172,6 +177,8 @@ bool RecycledItemsCreatureScript::OnGossipSelect(Player* player, Creature* creat
172177
break;
173178

174179
case GOSSIP_RECYCLER_ACTION_RECYCLE_HELP:
180+
AddGossipItemFor(player, GOSSIP_ICON_CHAT, Acore::StringFormatFmt("You will gain {}% more money per sale.", sConfigMgr->GetOption<uint32>("RecycledItems.Vendor.CashMultiplier", 10)), GOSSIP_SENDER_MAIN, 0);
181+
175182
SendGossipMenuFor(player, GOSSIP_RECYCLER_TEXT_HELP, creature);
176183
break;
177184
}

0 commit comments

Comments
 (0)