1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Disable Drop & NPC Control

Discussion in 'Plugin Suggestions' started by Antagonist, Jun 22, 2013.

  1. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    I know nobody is really taking plugin requests at the moment but I figure it's useful to at least put my ideas here.

    A command similar to the /disable command (I think from more admin commands?) except all it does is deletes their items when they're dropped. I'm pretty certain this is possible because it happened to me a few months ago, anyone who was superadmin couldn't drop items because they'd just disappear. I don't think I ever found the permission/cause though it just went away

    Next, a plugin that just gives you a little control over the NPCs (the ones you can talk to). I have no idea what limitations there are with NPCs, but my ideas are:
    /npclock [npc]- Sets that NPC's house to be locked at its current position
    /npcrename [newname] - self explanatory
    /npctp [npc] - teleports you to the npc?
    /npclimit [npc] [amount] - Allows that npc to live/exist in [amount] places. Not sure if it's possible, but I can recall seeing an npc living in two seperate houses one time (could've been an older Terraria though). If possible I imagine this would be kinda cool!

    Thanks!
     
    • Like Like x 1
  2. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Your disabling items is possible (in certain regions) with regionflags
    AFAIK, most NPC stuff is handled client side, but I'm sure there are more knowledgeable people who can tell you for sure
     
  3. CoderCow

    CoderCow Level 6

    Joined:
    Aug 23, 2012
    Messages:
    150
    Should all be possible, except the /npclimit one as I think that each town npc kind is limited to one spawn only. Though, a plugin could define custom spawns setable by a command: The plugin could spawn the given npc and keep a reference on it, if it is too far away from the spawn point, the plugin could move it back there, or if it dies, it could spawn it again.
    However, taking the npc limit of 200 into consideration, you wouldn't want to use this on a server with a larger player base.
     
  4. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    Thank moo :cool:
     
    • Like Like x 3
  5. VehicleDestroyer

    Joined:
    Oct 18, 2013
    Messages:
    3
    I would love exactly this. If the name change for that npc is permanent as well (in case they die or instead npcs were invulnerable) it would be perfect. A plugin like this would greatly improve my server.
     
  6. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    With the dropping of items, does it delete any items they drop, or just pops them back into inv? eitehr way idc,

    Also, is it permittable by group? Eg can i have the default group not be able to drop items, but groups higher up can, so ppl can trade, jsut not exploit games in and pass the over or hackers that join and spew bullmelon items everywhere.
     
  7. GosuSan

    GosuSan Level 1

    Joined:
    Nov 9, 2013
    Messages:
    8
    For NPC Control it would also be nice if you could disable pathfinding of the NPCs (the one you talk to).
    Just pin them where they belong to, they always fall of my sky-islands etc. :D