diff --git a/conf/attriboost.conf.dist b/conf/attriboost.conf.dist index 19721dd..9b53e73 100644 --- a/conf/attriboost.conf.dist +++ b/conf/attriboost.conf.dist @@ -15,3 +15,11 @@ # Attriboost.Enable = 0 + +# +# Attriboost.ResetCost +# Description: The cost of resetting attributes in copper. +# Default: 2500000 (250 gold) +# + +Attriboost.ResetCost = 2500000 diff --git a/src/Attriboost.cpp b/src/Attriboost.cpp index 00e5dad..0aefdad 100644 --- a/src/Attriboost.cpp +++ b/src/Attriboost.cpp @@ -463,7 +463,8 @@ bool AttriboostCreatureScript::OnGossipHello(Player* player, Creature* creature) if (HasAttributes(player)) { - AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\GossipFrame\\UnlearnGossipIcon:16|t Reset Attributes", GOSSIP_SENDER_MAIN, 1000, "Are you sure you want to reset your attributes?", 2500000, false); + uint32 resetCost = sConfigMgr->GetOption("Attriboost.ResetCost", 2500000); + AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\GossipFrame\\UnlearnGossipIcon:16|t Reset Attributes", GOSSIP_SENDER_MAIN, 1000, "Are you sure you want to reset your attributes?", resetCost, false); } AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\GossipFrame\\HealerGossipIcon:16|t Settings", GOSSIP_SENDER_MAIN, 2000);