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.

Change item despawn time and amount

Discussion in 'Help and Support' started by uptilts, Sep 23, 2018.

  1. uptilts

    uptilts Level 1

    Joined:
    Sep 23, 2018
    Messages:
    5
    Hi! I'm new to tshock in general and so far it's working great and the devs did a really good job. But there are some features that I can't find that would make it perfect. Can I change the number of items that stay on the ground before the oldest ones are despawned? It would also be nice to be able to delete each item after a certain time when playing hardcore for added difficulty.

    Thanks in advance!
     
  2. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    The number of drops allowed before despawning the oldest is most likely hardcoded (not sure though). However, using plugins you can schedule TShock to clear all drops at fixed intervals.
    The most known example is Autobroadcast scheduling /clear item 5000 every x minutes.
     
  3. uptilts

    uptilts Level 1

    Joined:
    Sep 23, 2018
    Messages:
    5
    Ok that would be sad if that's true. Clearing everything would certainly remove something that wasn't intended. What I had in mind was that each item dropped stayed on the ground for ~5min. Just so you have a chance to pick it up or return to place you died if you spawn nearby. Hope someone has done something similiar in the past.

    Thanks for the help btw :)
     
  4. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Don't give up until someone who actually understands TShock's code says it's impossible, though. I've seen a few things that I though were hardcoded being actually modified with plugins, like weapon damage (albeit only temporarily).
     
  5. uptilts

    uptilts Level 1

    Joined:
    Sep 23, 2018
    Messages:
    5
    Thanks again :) yeah I hope that I get lucky and someone has a brilliant solution to this :)