Pychnight / TshockRpgToolKit

Master Controller for distrubtion of quests, custom npcs, custom items and skills, housing, leveling, npcshops, etc.
GNU General Public License v2.0
11 stars 1 forks source link

[NPCSHOPS] Plugin Rewrite #16

Closed Pychnight closed 5 months ago

Pychnight commented 5 years ago

Refactor / Rewrite Npc shops

The current design and implementation of Npc Shops lacks some basic features and support for Banking Quadrants / Multi Currencies

So here is the new design Document

Here is the current features that are required for this plugin

Ability to anything to the Regional defined shop or Custom NPC/NPC Shop.

Ensure the cost of each item can be defined with Virtual currencies from banking and the ability to use multi able currencies for each entry.

Ensure customization of each added item

Adding Boo Scripting

Player Commands

/npcshop buy "item" "amount" || /npcshop buy "number" "amount" allows the user to buy specified item and amount or by number displayed on the list.

/npcshop refresh refreshes the ui while the player is inside a shop (mostly debug command)

Admin Commands

/npcshop restock (restocks specified shop name)

General ideas for the scripting side

Less hard coded (such as the sending messages and stuff). Ability to add new items to the shop via scripting side or unlock specific items based on conditions set within the script.