Making new Economy Plugin

Discussion in 'Plugin Discussion' started by IcyPhoenix, Sep 15, 2014.

Thread Status:
Not open for further replies.
  1. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    Hi,

    With Wolfje finally giving up on this community (not blaming him for this), I will be writing a new economy plugin - this will not have majority of the features Seconomy has, and there is probably no reason to not use seconomy at this point of time.

    This rewrite is to create a simplified economy plugin, with less management needed - but still do its core requirement (gain server side currency).

    (this is a new economy plugin, nothing to do with the jist side of things)

    So couple of qs:

    Was there any features that people particularly liked or wanted in an economy plugin?
    Which features did you not use in Seconomy?
    Which features did you use in Seconomy?
     
    • Like Like x 2
  2. Terrabear

    Terrabear Level 6

    Joined:
    Jun 26, 2014
    Messages:
    138
    I like scripts of jist(especially ranking script).
    It provides so many functions that make managing more convenient.

    I don't use sec start and stop often, but sec rl(reload) is really nice feature.

    Also, I hope shop plugin to be renewed.
     
    • Like Like x 1
  3. Wight

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

    Joined:
    May 20, 2012
    Messages:
    1,597
    Configurable currency is a pretty important part of SEconomy imo. The Api was also very useful
     
  4. Bandalf Le Gland

    Joined:
    Jun 30, 2014
    Messages:
    59
    Hi Icy. Firstly thank you for coding a new economy.

    - I'd love to see a possibility to give currency to offline people
    - Give the possibility to activate or not PVP gains
    - Give more flexibility to reduce chat spam without having to deactivate gain messages.
    - Do you think there's a possibility to merge the idea of rank/autorank and integrate into Economy (maybe too much work, or not possible...)

    Good luck !
     
    • Like Like x 1
  5. bippity

    Plugin Developer

    Joined:
    Jan 14, 2012
    Messages:
    295
    Things I liked/wanted in an Econ. Plugin:
    - Interest/reduction rate

    What I used in Seconomy:
    - AliasCMD
    - Sending each other currency+the other normal stuff

    What I didn't use:
    -jist
     
  6. dark22

    dark22 Level 4

    Joined:
    May 17, 2014
    Messages:
    97
    I use the same functions @bippity. With the exception of the script I use to rank, however I believe this can be done via plugin.

    I hope this project can go forward. Today a server without economy, levels, bans items per level, is very complicated because of the cheaters children.
     
  7. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    647
    I think at most we just need an economy plugin that exposes a public API and keeps track of currency for each player. That should be it. Everything else can be done with extension plugins.
     
    • Like Like x 3
  8. Enerdy

    Enerdy Satellite Admin
    TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    Nov 14, 2012
    Messages:
    507
    This. This a thousand times. I wouldn't mind rewriting AutoRank for this new plugin - even more so, as it might be simpler, considering SEconomy's complexity was a double-edged sword.

    Having an API with exposed methods which we can use gives us so many possibilities. That's what TShock does, which keeps the original API clean. Removing spawnboss commands from tshock was an attempt at doing this, but it soon revealed itself to be part of the core as it is, and was reworked into its own /spawnboss command.
     
  9. Olink

    Olink Nyx Developer, Occasional TShock Developer
    Banned

    Joined:
    Jul 21, 2011
    Messages:
    1,397

    It got added back in because people whined like it was the end of the world, not because we thought it should be there.
     
  10. Enerdy

    Enerdy Satellite Admin
    TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    Nov 14, 2012
    Messages:
    507
    Everything TShock gets is due to people whining nowadays, so I though I didn't have the need to be explicit :eek:
     
  11. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    637
    The only SEc feature I can think would fit on a barebones would like on an economy plugin would be the recently introduced posibility to modify the money gained multiplier in-game, instead of via config. Oh, and related to it, being able to modify the multiplier for certain mobs (or at least that statue-spawned or 0-id mobs would not give rewards by default).
     
  12. DankBud

    DankBud Level 8

    Joined:
    Jul 23, 2011
    Messages:
    228
    Simple is good. Basic commands. Configurable currency name/gain/quadrantnotation. Also a shop plugin is desperately needed.
     
  13. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    647

    That's not barebones. That is the reason SEc wasn't what I considered bare-minimum as an economy plugin. My ideal economy plugin should only keep track of money. That's it. Rewarding money for mob kills should be its own plugin.
     
  14. Enerdy

    Enerdy Satellite Admin
    TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    Nov 14, 2012
    Messages:
    507
    Do this. Get hooks; a ton of events to hook to. Then, other devs (or the dev himself) may introduce features as they may. Get it simple at first, or you'll be taking on a project as big as Wolfje's which consumed all his developing time.
     
  15. Pychnight

    Plugin Developer

    Joined:
    Aug 26, 2011
    Messages:
    176
    I mostly used the currency naming feature and value rate though for what Features, I wanted was mostly the ability to define Custom NPCS With a custom reward rate.
     
  16. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    637
    Ok, modified the previous post then. I suppose that fits with the original request from Icy, yes?
     
  17. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    Need a vote: Transaction logging or no Transaction logging (as a core component)

    If added
    Pros:
    • Tracking transactions (how people are getting money)
    • Easy to remove transactions and revert payments
    Cons:
    • Requires high I/O Database or additional disk space
    • Requires me to code it.
    -Icy
     
  18. Wight

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

    Joined:
    May 20, 2012
    Messages:
    1,597
    Think the pros probably outweigh the cons. I suppose you could add a disable/enable toggle for it, for people who don't have the power for lots of I/O.
     
  19. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    //added extra con
     
    • Like Like x 3
  20. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    Need a vote: Bank accounts tied to
    1. User ID
      • Always Unique will not ever give any problems
      • Faster SQL Queries as Primary Key is an INT
    2. User Account Name
      • Easier management in the back end when looking up database values, as you can visually see who owns which account
      • Slower SQL Queries as Primary Key is a VarChar
    Need a vote: Allow Negative Bank Balances
    1. Yes
    2. No
      • Higher max value as we can use uint64
      • Not many servers allow you to use money you don't have anyway.
     
Thread Status:
Not open for further replies.