Adding money to an item

Discussion in 'Plugin Requests' started by Mitchell_J8, Nov 3, 2015.

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

    Mitchell_J8

    Hello, I'm very close to opening my factions server, would just love a few final touches. 1 thing I was looking for was a plugin where I can bind money payments to a certain item of my choice. The reason I would want this is for drop party's, and crate prizes!

    Example: I bind a $10,000 prize that (player) has to right click to get.

    Player gets the item with $10,000 bound on it, right clicks it and they get $10,000 added to their account.

    When I need it by: ASAP Please <3
     
  2. Offline

    87pen

    Would it consume item on right click?
    Commands to add price?
    Default prices for certain items?
    @Mitchell_J8
     
    Last edited: Nov 3, 2015
  3. Offline

    Mitchell_J8

    Yes, the item will dissapear upon use.
    /money add <amount> (By the dollar)
    No default price for certain items
     
  4. Offline

    madtomic

    I think consume item on right click is best. So there is no way to dupe the item.
     
    Mitchell_J8 likes this.
  5. Offline

    87pen

    I'm guessing you want vault dependencies as well.
     
  6. Offline

    Scimiguy

    @87pen
    Economy plugins should use Vault, yes
     
  7. Offline

    87pen

    ... XD. I was asking if his server economy is dependent on vault. Since he did not specify I asked him who I am making the plugin for.
     
  8. Offline

    Scimiguy

    Should make it Vault by default, so other people can use it if they want to
    Servers utilising Economy plugins should be running Vault as well, to support any other plugins needed
     
  9. Offline

    madtomic

    @87pen

    Vault is always nice to have. It will let a lot of economy plugins to be use with this plugin.


    @Scimiguy

    Agreed!
     
  10. Offline

    Mitchell_J8

    @87pen
    No my server doesn't depend on vault.
     
  11. Offline

    Mitchell_J8

    Bump, @87pen How's it going, or does someone else want to take over?
     
  12. Offline

    KrazyRaven

    @87pen are you still working on it? If not I can make it @Mitchell_J8

    Oh, and what would you like it to be called?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 10, 2015
  13. Offline

    87pen

    You can make it.
     
  14. Offline

    Mitchell_J8

    @KrazyRaven Awesome, Thanks! And not sure, whatever comes to mind and is most sensible for you! I just need to be able to add it to a crate prize =), and have some commands to make them in game <3
     
  15. Offline

    KrazyRaven

    @Mitchell_J8 I have the command part just about finished. What do you mean be able to add it to a crate prize? Would you please elaborate? Is there a plugin you want this one to link in to?
     
  16. Offline

    Firestar311

    If you are using economy plugins, I don't see how you don't have Vault...
    Unless you have a custom plugin, all economy plugins use Vault (I think, correct me if I am wrong)
     
  17. Offline

    Scimiguy

    @Jayfeather311
    Most large economy plugins support vault, that doesn't mean they require them.
     
  18. Offline

    Mitchell_J8

    @KrazyRaven I use ArchonCrates, and there is a configuration to add items for prizes. It looks like this:

    Code:
    Crate Loot:
      oppickaxe:
        Item ID: 278
        Name: '&e&kl&eOP Pickaxe&e&kl'
        Broadcast: true
        Player Message: false
        id: pickaxe1
        Chance: 5
        Prize Name: OP Pickaxe
        Command:
        - give <player> 264 1 name:&e&kl&eOP_Pickaxe&e&kl lore:&eMr._Miner unbreaking:3 efficiency:5 fortune:3 silktouch:1
        glow: true
      opsword:
        Item ID: 276
        Name: '&e&kl&eOP Sword&e&kl'
        Broadcast: true
        Player Message: false
        id: sword1
        Chance: 100
        Prize Name: OP Sword
        Command:
        - give <player> 276 1 name:&e&kl&eOP_Sword&e&kl lore:&e*Slice_Shank* unbreaking:3 sharpness:5 fire_aspect:2 baneofarthropods:5 smite:5 knockback:2 looting:3
        glow: true
    And on and on. I was wondering with this plugin, how I would add the item to a configuration like this?

    EDIT by Timtower: surrounded config by code tags.
     
    Last edited by a moderator: Nov 12, 2015
  19. Offline

    KrazyRaven

    @Mitchell_J8
    The amount of money the item is worth is stored in the item lore. So if you set one line of the lore to
    Code:
    Worth: <amount>
    it should work. But the worth lore must be on its own line or it won't work. If that will not work out for you I can figure out another way. Concerning the item:
    (1) On right click the money is received and the item is destroyed
    Or
    (2) On right click the money is received and the worth is removed from the item, so the item still exists but won't give money on right click.

    Please tell me which one of the above options you prefer.
    Thanks for your patience, it's taking longer than I expected. Is there a time you need the plugin by? I can try to hurry it up if you need me to.
     
  20. Offline

    Mitchell_J8

    Nope, as long as you want, I'm grateful that you're making me this! And on right click consume the item please :p

    @KrazyRaven
     
  21. Offline

    KrazyRaven

    The plugin is finished! You can find it here. If you need help using it with Achron Crates I can tell you how. I called it ItemWorth if that's okay with you?
     
  22. Offline

    Mitchell_J8

    Perfectly fine, much appreciated man! I'll check it out later tonight and get back to you on how to works :)
     
  23. Offline

    KrazyRaven

    Is it working alright? I'll try to release regular updates and keep improving it.
     
Thread Status:
Not open for further replies.

Share This Page