Hey, while working on my server I noticed the buff NPC has a built-in pointy point feature, allowing you to purchase the buffs with gold or BP's. This isn't live-like so I just commented out the section below and adjusted the dialogue to fit. Maybe a plvl check to allow gm's to switch the npc's currency and save it, but haven't gotten that far yet
- Code: Select all
public override bool Interact(GamePlayer player)
{
TradeItems = new MerchantTradeItems("BuffTokens");
if (!base.Interact(player)) return false;
TurnTo(player, 10000);
player.Out.SendMessage("Greetings, " + player.Name + ". The King has instructed me to strengthen you so that you may defend the lands with valor. Simply hand me the token for the enhancement you desire, and I will empower you accordingly.", eChatType.CT_Say, eChatLoc.CL_PopupWindow);
isBounty = false;
SendMerchantWindow(player);
return true;
}
public override bool WhisperReceive(GameLiving source, string str)
{
if (!base.WhisperReceive(source, str))
return false;
GamePlayer player = source as GamePlayer;
if (player == null) return false;
switch (str)
{
case "Gold":
{
TurnTo(player, 10000);
isBounty = false;
TradeItems = new MerchantTradeItems("BuffTokens");
SendMerchantWindow(player);
}
break;
// case "Bounty Points": this feature is not live-like. if you want to add simply add the [Bounty Points] option to the dialouge above
// {
// TurnTo(player, 10000);
// isBounty = true;
// TradeItems = new MerchantTradeItems("BPBuffTokens");
// player.Out.SendMerchantWindow(TradeItems, eMerchantWindowType.Bp);
// }
// break;
}
return true;
}
PS not sure if this is where this stuff goes