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.

1.22 (obsolete) Player Statistics 5.0.3.22

Gathers data on player activity and announces top in category

  1. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
    GrandPa-G submitted a new resource:

    Player Statistics - Gathers data on player activity and announces top in category

    Read more about this resource...
     
    • 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
    Just a quick note, I'd recommend replacing all occurrences of
    Code:
    TShock.Users.GetUsers()
    with
    Code:
    TShock.Users.GetUsersByName(name)
    My Statistics was made at a time when GetUsersByName didn't exist, so it grabs every single user from the TShock database with GetUsers() then uses Linq to find the single user it wants.
    GetUsersByName does this at the database level, allowing you to minimize the number of results you actually pull from the db. It returns a List<TShockAPI.DB.User> which contains as many matches for the given string as it finds, so you'll have to do some checking of the results to ensure the value you want is in there.
     
  3. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
    Thanks, I will look into this. I is nice to have some tidbits to help improve the quality of the plugin, especially coming from you.
     
  4. rogerhnn

    rogerhnn Level 1

    Joined:
    Aug 26, 2015
    Messages:
    12
    I have an Idea, I dont know much about creating a plugin for tshock (I want to try), but you might be able to do.
    Use your statistics to create a leveling plugin. One that increases player's life and mana as he gains experience for killing monsters.
    Example: Each slime rewards the player with +1 point of experience, zombies +2. After gain 25 points the player reaches LV. 2 and his life increase +10 (for this example the starting life could be 25 and mana 10.
    You can make everything configurable.
    The player's starting life and mana.
    The amount of experience each monster will reward.
    The amount of experience needed to gain levels.
    And the amount of life and mana the player will gain in each level.

    The possibilities are infinite. One example: The player could reach level 10 with the same life and mana (bonus 0) and after reaching level 10, it gains +25 of life and mana. Also you can even make the user receive an item after reaching a certain level.

    What do you think?
     
  5. Kjkillercom

    Kjkillercom Level 8

    Joined:
    Oct 18, 2013
    Messages:
    247
    I don't think it would fit with this plugin, but that is an excellent idea for a separate one. Kinda like an RPG plugin.
     
    • Like Like x 1
  6. rogerhnn

    rogerhnn Level 1

    Joined:
    Aug 26, 2015
    Messages:
    12
    Exactly, I think that Terraria is missing something like this. It would be more challenging to play, and also rewarding. I don't think that it's to hard to create. I don't know how to write code for tschok, but I don't think it's a hard task.
     
  7. Kjkillercom

    Kjkillercom Level 8

    Joined:
    Oct 18, 2013
    Messages:
    247
    You could try and put a request in on this section of the forums and see if a developer would take on the project.
     
  8. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
  9. rogerhnn

    rogerhnn Level 1

    Joined:
    Aug 26, 2015
    Messages:
    12
    Thanks, I posted there too. I hope that someone make it!
     
  10. Kjkillercom

    Kjkillercom Level 8

    Joined:
    Oct 18, 2013
    Messages:
    247
  11. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
  12. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
  13. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
    GrandPa-G updated Player Statistics with a new update entry:

    Adds Killing Spree feature

    Read the rest of this update entry...
     
  14. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
  15. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
    Do what? Could you please clarify?
     
  16. Professor X

    Professor X Spam Cleaner 9000.5
    TShock Mod TShock Contributor

    Joined:
    Aug 18, 2014
    Messages:
    246
    I have a custom plugin that does something similar to killing spree but it's fine cause it's not really 100% same as this :p. Anyways, good job :)
     
    • Like Like x 1
  17. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
    GrandPa-G updated Player Statistics with a new update entry:

    Adds Blitz Event feature

    Read the rest of this update entry...
     
  18. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400
    GrandPa-G updated Player Statistics with a new update entry:

    Add Speed Spree Challenge

    Read the rest of this update entry...
     
  19. Bandalf Le Gland

    Joined:
    Jun 30, 2014
    Messages:
    59
    Thanks for your awesome plugin :)
     
  20. GrandPa-G

    GrandPa-G Developer of many plugins
    Plugin Developer Zero Day Plugin Author

    Joined:
    Jan 4, 2015
    Messages:
    400