[FUN/MECH] npcx (v0.0.31) - The NPC eXtender (now for 1.8.1) [1097-1157]

Discussion in 'Inactive/Unsupported Plugins' started by wizjany, May 10, 2011.

     
  1. Offline

    wizjany

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    npcx - The NPC eXtender
    Version: 0.0.31

    UPDATE: mixxit has took the initiative to update the npclib to 1.8, all credit for this update goes to him! it should work on any 1.8 version of craftbukkit

    If you are having trouble, please read the old thread here and the included readme.txt that mixxit left. If you know of any other tutorials, do post and I'll add them.

    Info Update: Well long story short I am beginning to get bored of Minecraft and I don't have as much time as I would like to develop this plugin. This probably means that the rewrite I had planned is just going to die. Besides lack of time and motivation, I find it extremely pointless to write an API for NPCs outside of bukkit/craftbukkit, which makes the rewrite I was working on very frustrating. However, I will continue to update mixxit's code for new versions of minecraft, but don't expect any new features or anything.
    Update 2: As NPCs are being planned natively for 1.8 (the adventure update), I will probably be working on a (separate) plugin or directly with the NPC API if I have time.

    Note: If you have iConomy, make sure you have at least version 5+ or you'll get an error like this.
    Code:
    [SEVERE] Could not pass event WHATEVER_EVENT to npcx
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    You should also be able to add "use-iConomy=false" in the npcx properties file.

    If you're having trouble installing MySql on windows, here's a nice guide: http://forums.bukkit.org/posts/293544, thanks to Atticus Craft. Basic WAMP/LAMP/MAMP servers should work fine too, just make sure you have the username/password correct and the database with permissions to the right user.

    Features:
    • You can create npcs
    • And they do stuff
    • Everything should work like it did in mixxit's last version
    And by "work like it did" I mean I have no clue if there were bugs from then, but they're probably still around now. Please report any you find so I can take them into consideration.

    For MC 1.8.1 (1097+, no RB yet) Download
    For MC 1.7 (937+, 953, 1k): Download
    For MC 1.6 (807+): Download
    For MC 1.5 (740-803): Download
    Source Code

    Changelog:
    Version 0.0.31
    • Updated to MC 1.8.1 (by Mixxit)
    Version 0.0.3
    • Updated for Grum's internal renaming
    Version 0.0.2
    • Updated for 1.6
    Version 0.0.1
    • Updated for 1.5
    • Began code revamp
    All credits go to mixxit for his work. Special thanks to sk89q and fullwall, even if they don't know they helped.

    This post has been edited 3 times. It was last edited by wizjany Sep 20, 2011.
    wassilij, Zoaen, nathanaelps and 2 others like this.
  2.  
  3. Offline

    Jake044

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Awesome! We've been waiting for this ^.^
  4. Offline

    wassilij

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Working perfect with Bukkit Build 1166, thx.
  5. Offline

    xhuul

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have iConomy installed and working but the npc merchants still use the npcx economy. is there anything special i have to do to get npcx to recognize iConomy?
  6. Offline

    Nalun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I've tried to create pathgroups and when i want to create a position with Code:
    /npcx pathgroup add PATHGROUPID(NUMBER) POSITIONNO(NUMBER)
    it says Insufficient arguments
    /npcx pathgroup add pathgroupid order name

    What can i do??
  7. Offline

    mixxit

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    First you need to create a group to store all your path points in

    /npcx pathgroup create NalunsPath

    This will give you an ID for the pathgroup it just created save it for later for this example lets say the pathgroup ID it gave you was 75

    Then you need to run around at each point you want the path to go and type (changing the position number at the end (start with 1 then move to 2 then 3 etc)

    /npcx pathgroup add 75 1

    move a bit for the next position

    /npcx pathgroup add 75 2

    and so on :)

    Once you have your path you can assign it to your spawngroup (see /npcx spawngroup pathgroup)
  8. Offline

    wizjany

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    you forgot the name...
  9. Offline

    Nalun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thx for your answer. My NPC's move^^
  10. Offline

    Chett

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Love that thing. You both made a good job.
  11. Offline

    nafoulinard

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Using "[ECON] iConomy 6.0.3 (Celty) [1080]"
    Npcx (latest version) just doesn't seems to reconize it... the merchant only are interested in "npcx money"
    am i doing something wrong?
    (got the 1.8.1 mc version with a few other mods like "jobs 1060" latest version (this one does see the Iconomy plugin) mob spawner latest version too)

    oh and i get an error message everytime i use the /npcx civ money putyournamehere
    ... nvm that, i get some error on all the civ things... first time i ran the pluggin it was fine, it failed around the time i created my first npc merchant


    he's the server error message when i try a /npcx civ command: (to me it looks like chinese...)
    [WARNING] npcx: error: null[Ljava.lang.StackTraceElement;@94fe42
    [SEVERE] java.lang.NullPointerException
    [SEVERE] at net.gamerservices.npcx.npcx.onCommand(npcx.java:1306)
    [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:755)
    [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:720)
    [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:713)
    [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91)
    [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Am i doing something wrong?
    What can i do to make it work?
  12. Offline

    Chett

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Testing 8 hours straight now. Translated Parts to german (Got 50+ aged Players who dont speak english ;) - Your PlugIn gives me a back in the days EQ Feeling. And Adds the RP i wanted.

    [Questions]

    I know, u dont like Questions, but...

    NPC roaming/pathing looks strange. Any chance to shorten the "break" between 2 waypoints? Runspeed control? Please, can u make Npc's stop moving, when talking to them? (Reminds me of the JBoots Quest in EQ)

    Where do i set the respawntimer ? Can i set different timer for different spawngroups? *beg*

    Where do i set the aggro range ? Can i set different ranges to different spawngroups? *beg*

    In the Doc u talk bout a temporary ‘spawn’ npc, who does not respond and is gone, when gets killed - howto Spawn them without a spawngroup? *beg*

    How to create Quests (with ID and stuff) that are shown up in the Quest Table i can see in Mysql - how to trigger reward/rewardcoin/rewardtext? Did i miss something? How to connect Triggerwords with Quests? QuestNameTriggerword ? How to Create Data for that Table?

    Did you think about giving Faction as reward for Quests? And/Or a Faction based Quests/Triggerwords mechanic? (Have a required amount of Faction to get a Quest/Triggerword)

    Àny Chance to set the NPC Name color (i.e. for rare and very rare Spanws in spawngroups? (I need to give my older Players Hints ;-P )

    Dont wanna bother u, just gettin max power out of your fantastic tool, Sir. And i am not a programmer, just a user ... so, be kind, any answer is accepted ;-).

    Thx in advance

    Latest ICon6 seems not to work with Npcx, like metioned above me. But need to throw a deeper look as soon ur Plugins lets me - need to test ;-)

    Awesome Plugin. Dont drop it!

    [EDIT]

    After around 3 hours my TestPathingNpc with 12 waypoints stopped moving without a reason.
    30 Minutes later. He's still not moving and started fighting air ;-P Hopefully he runs Amok in a another 30 Minutes, and that really would be an Feature, not a Bug :)
    Anyone else ?

    This post has been edited 10 times. It was last edited by Chett Sep 25, 2011.
    wassilij likes this.
  13. Offline

    wassilij

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I like your ideas, i hope they get implemented. :)
  14. Offline

    Chett

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hm, thx :) But i guess i get n answer like.

    -snip-

    Checkout yourself...

    He likes to snip...

    :)
  15. Offline

    wizjany

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You forgot to read the part in the first post where this is no longer getting new features or anything.
  16. Offline

    mixxit

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i'm officially working on a new version which will support sqlite

    This post has been edited 1 time. It was last edited by mixxit Sep 26, 2011.
    undeadmach1ne, wizjany and wassilij like this.
  17. Offline

    ridderrasmus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    when i try the commands it just says "an error occured" every command i say :'(

    This post has been edited 1 time. It was last edited by ridderrasmus Sep 29, 2011.
  18. Offline

    exaglob

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Look at your server.log file if npcx conect properly to your database.
    next, verify if your database have benn updrade with the npcx's tables.
    if your database is empty, it would say that npcx cant connect to it.
    if your sever.log file say that npcx have properly connect to your database and your database is always empty, try to create tables by hand.
    this is the sql for all tables :
    -- Adminer 3.2.1 MySQL dump SET NAMES utf8; SET foreign_key_checks = 0; SET time_zone = 'SYSTEM'; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `faction_entries`; CREATE TABLE `faction_entries` ( `id` int(10) unsigned NOT NULL auto_increment, `faction_id` int(10) unsigned default NULL, `target_faction_id` int(10) unsigned default NULL, `amount` int(11) default NULL, `arg` int(11) default '1', PRIMARY KEY (`id`), UNIQUE KEY `factiontarget` (`faction_id`,`target_faction_id`), KEY `fk_factionidme` (`faction_id`), KEY `fk_factionidthem` (`faction_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `faction_list`; CREATE TABLE `faction_list` ( `id` int(11) unsigned NOT NULL auto_increment, `name` varchar(45) default NULL, `base` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `flags`; CREATE TABLE `flags` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `loottable_entries`; CREATE TABLE `loottable_entries` ( `id` int(11) NOT NULL auto_increment, `loottable_id` int(11) default NULL, `item_id` int(11) default NULL, `amount` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `loottables`; CREATE TABLE `loottables` ( `id` int(11) unsigned NOT NULL auto_increment, `name` varchar(50) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `merchant`; CREATE TABLE `merchant` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) default NULL, `category` varchar(45) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `merchant_entries`; CREATE TABLE `merchant_entries` ( `id` int(10) unsigned NOT NULL auto_increment, `merchantid` int(10) unsigned default NULL, `itemid` int(10) unsigned default NULL, `amount` int(10) unsigned default NULL, `pricebuy` int(10) unsigned default NULL, `pricesell` int(10) unsigned default NULL, PRIMARY KEY (`id`), KEY `fk_merchantid` (`merchantid`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `npc`; CREATE TABLE `npc` ( `id` int(11) unsigned NOT NULL auto_increment, `name` char(40) default 'dummy', `category` char(40) default NULL, `faction_id` int(11) unsigned default NULL, `loottable_id` int(11) unsigned default NULL, `weapon` int(11) unsigned default '0', `helmet` int(11) unsigned default '0', `chest` int(11) unsigned default '0', `legs` int(11) unsigned default '0', `boots` int(11) unsigned default '0', `merchantid` int(10) unsigned default NULL, `hp` int(11) unsigned default '100', `damage` int(11) unsigned default '3', `coin` int(11) unsigned default '100', `storageid` int(11) unsigned default NULL, PRIMARY KEY (`id`), KEY `fk_npc_factionid` (`faction_id`), KEY `fk_npc_loottableid` (`loottable_id`), KEY `fk_npc_merchantid` (`merchantid`), KEY `fk_npc_storageid` (`storageid`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `npc_faction`; CREATE TABLE `npc_faction` ( `id` int(11) unsigned NOT NULL auto_increment, `npc_id` int(11) unsigned default NULL, `faction_id` int(11) unsigned default NULL, `amount` int(11) default NULL, PRIMARY KEY (`id`), UNIQUE KEY `npctofaction` (`npc_id`,`faction_id`), KEY `fk_npcid` (`npc_id`), KEY `fk_factionid` (`faction_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `npc_triggerwords`; CREATE TABLE `npc_triggerwords` ( `id` int(10) unsigned NOT NULL auto_increment, `npcid` int(11) unsigned default NULL, `triggerword` char(40) default NULL, `reply` varchar(512) default NULL, `category` char(40) default NULL, PRIMARY KEY (`id`), KEY `fk_npct2n` (`npcid`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `pathgroup`; CREATE TABLE `pathgroup` ( `id` int(10) unsigned NOT NULL auto_increment, `name` char(40) default NULL, `category` char(40) default NULL, `world` varchar(45) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `pathgroup_entries`; CREATE TABLE `pathgroup_entries` ( `id` int(10) unsigned NOT NULL auto_increment, `s` int(11) unsigned default NULL, `pathgroup` int(11) unsigned default NULL, `name` char(40) default NULL, `x` char(40) default NULL, `y` char(40) default NULL, `z` char(40) default NULL, `yaw` char(40) default NULL, `pitch` char(40) default NULL, PRIMARY KEY (`id`), KEY `fk_pathgroupid` (`pathgroup`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `player`; CREATE TABLE `player` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) default NULL, `coin` int(10) unsigned default NULL, `flags` int(10) unsigned default NULL, `petid` int(11) default NULL, PRIMARY KEY (`id`), UNIQUE KEY `name_UNIQUE` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `player_bank`; CREATE TABLE `player_bank` ( `id` int(10) unsigned NOT NULL auto_increment, `playername` varchar(45) default NULL, `itemid` int(10) unsigned default NULL, `coin` int(10) unsigned default NULL, `amount` int(10) unsigned default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `player_faction`; CREATE TABLE `player_faction` ( `id` int(11) unsigned NOT NULL auto_increment, `player_name` varchar(45) default NULL, `faction_id` int(11) unsigned default NULL, `amount` int(11) default NULL, PRIMARY KEY (`id`), UNIQUE KEY `playerfactionzz` (`player_name`,`faction_id`), KEY `fk_faction_id` (`faction_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `player_flags`; CREATE TABLE `player_flags` ( `id` int(10) unsigned NOT NULL auto_increment, `flagid` int(10) unsigned default NULL, `playername` varchar(45) default NULL, `value` varchar(45) default NULL, PRIMARY KEY (`id`), KEY `fk_flagid` (`flagid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `player_quests`; CREATE TABLE `player_quests` ( `id` int(11) NOT NULL, `questid` int(11) unsigned default NULL, `playername` varchar(45) default NULL, `status` int(10) unsigned default '1', `step` int(10) unsigned default '1', PRIMARY KEY (`id`), KEY `fk_questid` (`questid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `quests`; CREATE TABLE `quests` ( `id` int(11) unsigned NOT NULL auto_increment, `name` varchar(45) default 'DefaultQuest', `reward` int(10) unsigned default '0', `rewardcoin` int(10) unsigned default '0', `rewardtext` varchar(512) default 'Well done!', `step` int(11) default '1', `category` varchar(45) default 'default', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `settings`; CREATE TABLE `settings` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) default NULL, `value` varchar(45) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `spawngroup`; CREATE TABLE `spawngroup` ( `id` int(10) unsigned NOT NULL auto_increment, `name` char(40) default 'defaultspawngroup', `world` char(40) default NULL, `category` char(40) default NULL, `x` char(40) default NULL, `y` char(40) default NULL, `z` char(40) default NULL, `yaw` char(40) default NULL, `pitch` char(40) default NULL, `pathgroupid` int(10) unsigned default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `spawngroup_entries`; CREATE TABLE `spawngroup_entries` ( `id` int(10) unsigned NOT NULL auto_increment, `spawngroupid` int(11) unsigned default NULL, `npcid` int(11) unsigned default NULL, PRIMARY KEY (`id`), KEY `fk_spawngroupid` (`spawngroupid`), KEY `fk_npcidSGE` (`npcid`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `storage`; CREATE TABLE `storage` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `zone`; CREATE TABLE `zone` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) default 'The Wild', `x` int(11) default NULL, `z` int(11) default NULL, `ownername` varchar(45) default '', PRIMARY KEY (`id`), UNIQUE KEY `loc` (`x`,`z`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `zone_members`; CREATE TABLE `zone_members` ( `id` int(10) unsigned NOT NULL auto_increment, `playername` varchar(45) default NULL, `zoneid` int(10) unsigned default NULL, PRIMARY KEY (`id`), UNIQUE KEY `zoneidmember` (`playername`,`zoneid`), KEY `fk_zoneid` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- 2011-09-29 23:08:44


    Hope i help you....
  19. Offline

    ItsQ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    /reload command will double all npc's
  20. Offline

    Darknessblea

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    17:13:19 [WARNING] npcx: error: Table 'npcx.spawngroup' doesn't exist[Ljava.lang
    .StackTraceElement;@dff12f
    17:13:19 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Tab
    le 'npcx.spawngroup' doesn't exist
    17:13:19 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    17:13:19 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (NativeConstructorAccessorImpl.java:57)
    17:13:19 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(DelegatingConstructorAccessorImpl.java:45)
    17:13:19 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor
    .java:525)
    17:13:19 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    17:13:19 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:382)
    17:13:19 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
    ava:1052)
    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:
    3593)
    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:
    3525)
    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)

    17:13:19 [SEVERE] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:21
    40)
    17:13:19 [SEVERE] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.
    java:2626)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeInternal(Prep
    aredStatement.java:2111)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(Prepar
    edStatement.java:2407)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(Prepar
    edStatement.java:2325)
    17:13:19 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(Prepar
    edStatement.java:2310)
    17:13:19 [SEVERE] at net.gamerservices.npcx.npcx.onCommand(npcx.java:1041)

    17:13:19 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:40)
    17:13:19 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:163)
    17:13:19 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:358)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:757)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:722)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:715)
    17:13:19 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    3)
    17:13:19 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    17:13:19 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:92)
    17:13:19 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :108)
    17:13:19 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:471)
    17:13:19 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:374)
    17:13:19 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:417)
    do we need to make the table or is the plugin ? please help :)

    This post has been edited 1 time. It was last edited by Darknessblea Oct 11, 2011.
  21. Offline

    darkadders

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    im currently making an adventure map, and it needs npc's to act out the parts of a game im replicating, can these npcs be hostile? can they spawn when an action ingame is set? can i give these npc's different skins? and most importantly, is it possible for them to work in singleplayer?

    PLEASE reply to this as soon as possible! i need it, seeing im nearly done with the map ^^
  22. Offline

    mixxit

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yep just assign a faction to them with the relevant settings for their base (see documentation)
  23. Offline

    Chett

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice to hear. I using them right now as Endbosses in selfmade Dungeons and as Talkingbots to assist Citizens Quest NPCs. I really would like to get rid of citizens.

    Any News about the state ? Or any ETA, maybe ?

    This post has been edited 1 time. It was last edited by Chett Oct 26, 2011.
  24. Offline

    thetank332

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can I make so a npc tp u if u click it?
  25. Offline

    thetank332

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Or can u make?
  26. Offline

    latinolli63

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    when I start the server is a fault )-::'(
    2011-10-28 12:34:25 [INFO] npcx : config folder generation ended
    2011-10-28 12:34:25 [INFO] npcx : properties file generation ended
    2011-10-28 12:34:25 [INFO] npcx : initial setup ended
    2011-10-28 12:34:25 [INFO] npcx : load settings (0.031) begun
    2011-10-28 12:34:25 [INFO] jdbc:mysql://localhost:3306/npcx?autoReconnect=true
    2011-10-28 12:34:25 [INFO] npcx : initialising database connection
    2011-10-28 12:34:36 [INFO] *******************************************
    2011-10-28 12:34:36 [INFO] npcx : ERROR - Error during MySQL login *
    2011-10-28 12:34:36 [INFO] This generally means that you forgot to *
    2011-10-28 12:34:36 [INFO] create a MySQL user and database the same*
    2011-10-28 12:34:36 [INFO] as defined in your npcx.properties file *
    2011-10-28 12:34:36 [INFO] *******************************************
    2011-10-28 12:34:36 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2239)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2168)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    2011-10-28 12:34:36 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at net.gamerservices.npcx.myUniverse.openDB(myUniverse.java:129)
    2011-10-28 12:34:36 [SEVERE] at net.gamerservices.npcx.myUniverse.loadSetup(myUniverse.java:245)
    2011-10-28 12:34:36 [SEVERE] at net.gamerservices.npcx.npcx.onEnable(npcx.java:568)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
    2011-10-28 12:34:36 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    2011-10-28 12:34:36 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-10-28 12:34:36 [SEVERE] Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2186)
    2011-10-28 12:34:36 [SEVERE] ... 25 more
    2011-10-28 12:34:36 [SEVERE] Caused by: java.net.ConnectException: Connection refused: connect
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.socketConnect(Native Method)
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.doConnect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.PlainSocketImpl.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.SocksSocketImpl.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.connect(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.<init>(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at java.net.Socket.<init>(Unknown Source)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
    2011-10-28 12:34:36 [SEVERE] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
    2011-10-28 12:34:36 [SEVERE] ... 27 more
  27. Offline

    ladan208

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    can i get some info about what this plugin does plz?

    This post has been edited 1 time. It was last edited by ladan208 Nov 4, 2011.
  28. Offline

    DKGamer7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I haven't found any answer to this.
    Every time i try to do a command it says "An error occurred"
    Please Help
  29. Offline

    xeNium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Where is the permissions.node ? .. Nodocumentation i found at this plugins thread
    No permissions.node? Please use DevBukkit to make your document easier to be understood?

    Can you make a documentation include everything? Improtant: Commands and permissions

    This post has been edited 1 time. It was last edited by xeNium Nov 24, 2011.
  30. Offline

    seprom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    CAn someone create this for 1.0.0?
  31. Offline

    gait

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i have found a bug when a walk to a npc and jump on it it will boost me back and the console thought i was hacking/moving to fast
    it look like the NPC's are spawnging every second and there are coming more and more
    if you could fix this thanks!
    sorry for my bad english :S
  32. Offline

    Cidvond

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    been haveing thease same few errors and I can not figure out what is worng. It only starts spaming the server when I spawn an NPC. Also the NPCs look like there is 5 in one spot when I only spawn 1 npc. Also if you run into the NPC it pushes you away from it sometimes lunching you really far away. When you attack the NPC it only can be hit once. Please help.

Share This Page