Approved [v1.12] NPC Blocker

Discussion in 'Plugin Releases' started by Olink, Jan 25, 2012.

  1. Olink TShock Developer

    This plugin will let you blacklist certain npcs. Are those unicorns just too cuddly? Want to make it so they don't decimate your players? Now you can.

    APIVersion 1.12
    Terraria Version: 1.1.2

    Commands:
    /blacknpc <id> - this adds the npc id to the black list. All npcs on the black list are prevented from being spawned. This may/may not work with some bosses or perhaps spawned one via commands, or even those from statues.

    /whitenpc <id> - this will remove them from the blacklist.

    Permisisons:
    resnpc is required to use any of the restricting npc commands.

    Plugin: http://dl.dropbox.com/u/21171144/NPCBlocker.dll
    Source: https://github.com/Olink/NPCBlocker


    Good way to test this is to login to a superadmin account, and run the following:

    /maxspawns 1000
    /spawnrate 1

    This will pretty much make monsters constantly spawn and spawn every tick.

    If you have npcs not on the blacklist they will fill the screen in seconds. If you blacklist them you wont ever see them :D
    k0rd likes this.
  2. darkos Tshock supporter and programming hack.

    HOLY F olink nice job
    will be nice to cut out the bitching from players.

    what dev build is the api and server? I am on #557 - will future dev releases break this?
  3. Olink TShock Developer

    This only requires a new server, but since the api also has a fix in it and no significant bugs, I think its safe to use the ones I include.

    Technically, its api 558 and since the server isnt being built anymore....

    I could include the server bin into the tshock branch and make it build 559, but since I'm the only one using this new hook atm....

    If any plugin devs wish to have the hook lemme know and ill package the exe with the api... right now you need to manually build from source.

    Any "future" api releases should have this functionality in it as will any server releases. So you should be good to use these and in the event of an update the new ones.

    I just commited it to the tshock repo. IT should be build 560 and beyond. You can use those or mine, all the same for now.
  4. Gamesmann Member

    This will be nice to try. I had people complain about the unicorns and wyverns before. I'll see what happens after I install this.
  5. Iscar Member

    Good idea, need to disable wyverns lol :D
  6. Snirk Immington TShock Plugin Developer

    Is there something wrong with the .dll link? I keep getting the dropbox 404.

    EDIT: so I used the combo download.
  7. Olink TShock Developer

    hmm weird, reupped.
  8. tenabrae Member

    i thought this'd be a plugin that stopped npcs wandering off.

    is it possible to replace a spawn with another rather than just blocking it ? e.g if you want unicorns instead of corrupt bunnies ?
  9. Snirk Immington TShock Plugin Developer

    A plugin to stop npcs from wandering off...
    That would be useful in some situatoins, but just put platforms as entrances to houses.
    But an invincible town npc plugin... I'll mention in suggestions. Sounds almost impossible server-side unless you could heal the npcs...
  10. tenabrae Member

    If you want to protect them from the environment you can put them in a protected region and add a diemob zone (obviously one big enough to keep goblin mages far enough away) with prison, jail, afk.

    I know you can stop them wandering with environmental blocks, but it'd be nice if you could tether them to an area (so if say you wanted a large basement laboratory and didnt want the goblin wandering off to the smithy you could stop him) ... totally aesthetic and no in the scope of this plugin obviously (unlike replacing one spawn with another which'd be nice for fleshing this into more of a mob manager)
    Snirk Immington likes this.
  11. Snirk Immington TShock Plugin Developer

    too late, already started a thread in suggestions. But the diemob zone is a good idea.
  12. Arman Member

    :O This is a great plugin!!!!!lsjhlasdmfsalihadslfamldsfkuaslnfldm
    Did u update for Tshock v3.7.0? :cool:

    Yess!!!! Defiantly wyverns!!!! lol :D

    Edit: -------------

    aah ok :)
  13. Iscar Member

    It works.
  14. DJNightchild New Member

    This plugin works great, but the Merchants keep arriving. What can I do about this?

    EDIT: It is possible to add monsters into the mysqlite file with an external editor, isn't it?
  15. Olink TShock Developer

    it is possible, and merchants will arrive, thats handled by different code.
  16. DJNightchild New Member

    @Olink

    if it's possible, do you know how to disable them (with or without plugin)?
  17. Olink TShock Developer

    Thats possible.
  18. DJNightchild New Member

    @Olink

    I meant, how I can stop merchants from arriving, with or without plugins?
  19. Olink TShock Developer

    You cant.
  20. k0rd TShock developer

    carry less than 50 silver :D
    Arman likes this.

Share This Page