NPCTrader 2.0
NPCTrader 2.0 Version 2.0 CB 1.01 Source on Git Soon Orginal Authour MatCat
Description The first localized full featured shop system for Bukkit/iConomy, in NPC Form!
What's better for a localized shop system then your very own NPC Clerk / Teller / Worker / Slave / Whatever word you want to call your NPC!
Features
- - Localized system
- - Fully player controlled (No admin intervention needed)
- - Full Item and Metadata support (Colored wools, etc)
- - Item name or ID recognition
- - Partial name recognition (If online)
- - Complete internal permissions system for managers of the NPC
- - iConomy Based
- - MySQL data storage
- - Item stocking system
- - In-Game help for everything
- - Supports Permissions and GroupManager (Using FakePermissions) Plugins!
Installation / Setup
- Put NPCTrader.jar in your plugins folder
- Put mysql-connector-java-bin.jar in your main minecraft folder
- Restart your server (Auto-generates config.yml in plugins/NPCTrader/)
- Edit the config.yml for MySQL and other config settings.
- Restart once more
- Enjoy!
If for some reason the folder / config does not auto-generate, then you can open the .jar file with 7zip or winzip or other archiving utility that supports jars and extract the config.yml from the jar.
NOTE: If you do not have or do not know if you have MySQL setup then you either have to setup MySQL or not use this plugin for now. Please do not post questions asking how to install MySQL as that is outside of the scope of this post. You can follow this tutorial (Thanks @Germata!) for detailed windows installation and setup, but I cannot provide support for installing and setting up MySQL, only support for my plugin specifically.
Permissions
Permissions will only be used if it is installed. The following is the permissions list:
Code:
- npc.admin - Give to admins for full access to all NPCs
- npc.admin.list - Access to /npc list npcs
- npc.user.* - General user commands, you can specify by replacing * with command name, I.E. buy
- npc.manager.* - NPC Manager commands
- npc.owner.* - NPC Owner commands
- npc.create - Ability to create an NPC
Usage
Once the plugin is installed and running, you can see the in-game help by typing /npc in your chat window. To interact with an NPC just right click on it first.
Here is a simple tutorial for setting up an NPC named Bob that sell's bread, cooked fish, and cooked pork, and buys wheat, raw fish, and raw pork.
- Stand exactly where you want your NPC, including head position and body rotation.
- Type: /npc create Bob 6 10 This will create the NPC with 6 Item Slots, each holding 10 units.
- Right click on the newly created NPC
- Type: /npc setup 1 bread 1 2 0 true false This will setup Slot 1 with Bread, selling lots of 1 at 2 Coins, buying them from players at 0, True for NPC Selling it, False for buying from players.
- Repeat step 4 for Cooked fish and Pork
- Type: /npc setup 4 wheat 64 0 10 false true This will setup Slot 4 with Wheat, buying lots of 64 at 10 Coins. This one is set False to selling it to players, but true to buy from players.
- Type: /npc stock 1 20 This will stock the NPC with 20 breads on slot 1 (Assuming you have enough bread).
- Repeat step 7 for raw fish and pork.
You know have a fully setup and functioning NPC.
I will be continuing on the work of MatCat with his orginal plugin NPCTrader.
Looking for another Bukkit Dev to help with Spout features and graphics
I will update this section description later and add custom graphics
Orginal Link to NPCTrader
Upcoming Features List:
More permissions plugin support More economies support More new features Hook into Spout (Optional Features) Hook into Dynamap for NPC locations Total code rewrite
@aleksander64
i am going to learn more java before i take this plugin over you will have to wait guys sorry.
i have submitted to take this plugin over. i have a dev that would help me out and i want to help this plugin out. i have a LOAD of features including ADDONS! that you can get. this is hopefully going to be the next big plugin. and i wont stop until it is.
if i do take this plugin over what feature would you guys like to see in this. this way i know what to expect.......
i really want to take this over and cant wait to start helping everyone out!
please note: i may not be accepted it is a 50 50 chance
Whene do you think you're going to release the plugin, I would like to use this on my private server :D
Is this still being worked on?
can i be downloading something like this anytime soon? And will you implent npc-slaves or guards for a certain area or such perhaps?
Is there a way to limit NPCs? I like the looks of this plugin but I think it would be hard on the server having thousands of npcs standing around. Anyway, if we could limit it to 1 per person, and have that 1 hold all of the items with the price lists that would be great!
Thank you this definitely looks great!
@AlmightyNakajima
most likely because it is in the planning stage...
I really want this for my server... However kinda seems to be somewhat heavyweight? Can basic servers run it at all? Can you add an unlimited buy/sell option for those admins that want it?
where is the download link?
This sounds really amazing! I could use this for my Spawn world to teach new players how to use things in the main worlds. Please come out with it. :) I agree with lanuk as well.
Also will there be any support for iconomy6, PermissionsBukkit, Mcmmo, Minequest and possibly Towny? PermissionsBukkit and iconomy6 support is the most important for me.
You guys should make it so that the npcs can not only sell stuff, but can display user specified text (sends the text to the user who clicks it).
Would very much love to use this on my server ^^
(Google: MunxCraft)
@MonsterTKE
Thanks, I'm still sifting through all the classes and deciding what to re-write, I know the whole MySql classes need some work
You may want to make this plugin look in /minecraft/lib for mysql-connector-java-bin.jar....
Im pretty sure iConomy, LWC, Hawkeye, Jobs, McMMO, SimpleClans, Precious- Stones and several other plugins have this as a dependency and look for it in this location.
@AlmightyNakajima
Its still being worked on now, the dev stage is still set at planning, and when I change it, it will say alpha or beta release
I see no way to download it.