Inactive [MECH/ECON] Money2XP v1.1.4 - train your mcMMO-skills using money - now with zones! [1000]

Discussion in 'Inactive/Unsupported Plugins' started by TZer0, Apr 7, 2011.

     
  1. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Support for this plugin has been discontinued. If you wish to take over, please contact me.

    Money2XP - train your mcMMO-skills using iConomy/BOSEconomy-money

    Downloads
    Old version(1.0, iConomy 5, mcmmo ~1.0, pre 1.0.43)

    Old version(0.2.2, iConomy 4):

    [diamond]Donate:



    Bitcoin: 1EYVnhq3Bd7XaeLUUwmxextNBwRTLwS4xp
    Paypal
    Will try to find another service to receive funds through.

    Dependencies:
    Features:

    • Allows players to train their skills using iConomy-money, BOSEconomy-money or EssenaitalsEco-Money.
    • Easy to set up
    • Will allow rich players to spend some cash :)
    • Training-zones!
    Permission-nodes:

    Commands (you may use /m2xt and /m2xs instead of /m2xtrain and /m2xset):

    • /m2x and /m2xset - general help
    • /m2x (l)ist - shows skills and prices
    • /m2x [skillname] [amount] - Purchases [amount] xp for [skillname]
      • Usage:
        • /m2x archery 100 - gives you 100 archery xp.
    • /m2x [skillname] i[amount] - Purchases [amount]*[xpPerItem] xp for [skillname]
      • Usage:
        • /m2x archery i100 - purchases 100*xpPerItem archery xp for 100 of [item]
    • /m2x (c)heck [skillname] [amount] - Shows how much a purchase will cost you
      • Usage:
        • /m2x check archery 100 - Shows you how much 100 archery xp will cost you.
    • /m2xset [skillname/default] [price-per-xp] - sets the price per xp for [skillname] to [price-per-xp], 0 = default, -1 = unavailable
      • Usage:
        • /m2xs archery 150 - sets the price per xp for archery to 150
        • /m2xset default 75 - sets the default price per xp to 75.
    • /m2xset [skillname] i[itemId]:[xpPerItem] - Allows players to purchase xp for [skillname] using item with [itemId] at a rate of [xpPerItem]
      • Usage:
        • /m2xs archery i3:10 - allows purchases of archery xp for 10 xp per dirt-block.
    • /m2xtrain (z)ones {t/true/f/false} - turn training zones on/off
      • Usage:
        • /m2xt z t - enables zones
        • /m2xtrain zones f - disables zones
    • /m2xtrain (n)ode [1/2] - sets nodes for area-creation (to your current location, which two corners you define is irrelevant)
      • Usage:
        • /m2xt n 1
        • /m2xt node 2
    • /m2xtrain (c)reate [name] - creates a zone using nodes.
      • Usage:
        • /m2xt c myzone
    • /m2xtrain (l)ist {#} - shows training zones
    • /m2xtrain (s)elect [name] - select an area
      • Usage:
        • /m2xt s myzone
    • /m2xtrain (a)rea - shows information about the selected area
    • /m2xtrain (r)e(s)ize - resize selected area
    • /m2xtrain (ad)d [skillname] - adds a skill to selected area
      • Usage:
        • /m2xt ad archery
        • /m2xtrain add swords
    • /m2xtrain (d)el [skillname] - removes a skill from selelected area
      • Usage:
        • /m2xt d archery
        • /m2xtrain delete swords
    • /m2xtrain (d)elete(a)rea [name] - deletes an area
    • /m2xtrain (r)eload - reload config, reports errors
    Available skills: mining, woodcutting, excavation, repair, herbalism, acrobatics, swords, archery, unarmed, axes, taming






    Setting up a training-zone


    Remember: before doing this, run: "/m2xt z t"
    1. First set up two nodes, these should span the zone you want to be able to train in. "/m2xt n 1" and then "/m2xt n 2" somewhere else
    2. Then create the area: "/m2xt c myareaname"
    3. Select the area: "/m2xt s myareaname"
    4. Add skills which are trianable in the area: "/m2xt ad skillname", for instance: "/m2xt ad archery"



    Setting up a sign-shop

    First line: [m2x]
    Second line: skillname
    Third line: xp-amount
    Fourth line: will be automatically replaced by "Cost: %.2f", price

    If the price changes later (say, archery-xp goes from 10 to 20), then the fourth line will be automatically replaced with the new price and the purchase aborted so that the purchaser may re-review the deal.


    Tricks:
    • -1 disables skill-purchases for a skill, 0 sets it to the default value
    • You can set the default-price to -1 to prevent skill-purchases for all skills except for those with a price set.
    Changelog:

    • v1.1.4
      • Fixed sign-shop issue.
    • v1.1.3
      • Fixed issue when right-clicking without having access to money2xp.user.
    • v1.1.2
      • Fixed NPE when running without permissions.
      • Made it possible to set prices through console (will add some other functions currently under m2xt soon to console)
      • Fixed some other minor issues.


    • v1.1.1
      • Fix for using zones and signs simultaneously.
    • v1.1
      • Sign-shop
    • v1.0.1
      • Updated to latest mcmmo-version thanks to @NuclearW
      • Fixed exception when running m2x in console
    • v1.0
      • EssentialsEco-support
      • Allow purchases using items
      • Allows xp-costs below 1. (double instead of int)
    • v0.2.3
      • iConomy 5
    • v0.2.2
      • Added taming to list of skills.
    • v0.2.1
      • Fixed null pointer exception on start if no areas are present.
    • v0.2
      • Training-zones
      • Aliases
      • use float/double to store xp-costs so that one can get more than one xp per unit of money.
    • v0.1.5
      • Fixed the balance-message after purchase.
    • v0.1.4
      • Fixed broken iConomy-support from v0.1.2
    • v0.1.3
      • Fixed a minor bug
    • v0.1.2
      • Added BOSEconomy-support on MCbyWay's request.
    • v0.1.1
      • Fixed some small bugs
    • v0.1
      • Initial release



    Todo:
    • [high] Use Spout and make a video-tutorial obsolete.
    • [medium] Make a video-tutorial.
    • [medium] Options for limiting how much a zone allows you to train (levelcap).
    • [medium] Purchasing X levels instead of xp. Will be added as soon as mcMMO is fixed!
    • [medium/low] xp-cost increase per level or related to amount of xp already purchased for that skill.
    • [low] Let players become trainers when reaching high enough levels.
    • Anything you can come up with!
    Feedback, as always - is welcome.

    This post has been edited 12 times. It was last edited by TZer0 Apr 7, 2012.
    kahlilnc likes this.
  2.  
  3. Offline

    MationMac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Might try this. :)
  4. Offline

    MCbyWay

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Is it possible to add BOS support? =o
  5. Offline

    2Bucks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This is perfect man, absolutely amazing. I literally have been wanting this exact thing. Thanks so much
  6. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Will do! [added to Todo]
    Edit: done! (took about 14 mins, maybe less)
    MCbyWay likes this.
  7. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    BosEcon support, without asking woot!! I love this, cant wait to see how it works out!
  8. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Someone did ask. It was implemented in less than 7 hours after MCbyWay posted about it and about 15 mins after I read it :p
    MCbyWay likes this.
  9. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    oh... way to kill the buzz, still supported though *woot*!
  10. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't like false advertising :p

    But as my posts says: you can suggest features and improvements.
  11. Offline

    Nytemare3701

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Request: Either an NPC trainer or a tie-in to npcx.
  12. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Added to todo. Will attempt to create a zone around a NPC where you are allowed to train.
  13. Offline

    Nytemare3701

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    that works. Zones are much easier than integrating into an NPC plugin.
  14. Offline

    2Bucks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How about selling XP to other players?
    Or even crazier, renting XP
  15. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sorry, not sure if this is the best idea - that would allow some abuse since it would make it very easy to concentrate a lot of xp on one character and get lots of resources - fast.

    Besides, this was made to empty accounts, not shift money around :)
  16. Offline

    kahlilnc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You should add NPC's to do training like DwarfCraft but for Mcmmo. But I dought this is possible.
  17. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Has already been added to the TODO-list, Nytemare3701 already suggested this :)
  18. Offline

    kahlilnc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Awww okay thank you so much, cant wait.
  19. Offline

    silentdojo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Would it be possible to get this to work with iConomyChestShop?
  20. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't think this is the best idea due to some reasons: it'll be harder to purchase the exact amount of xp you want or it'll take a lot of right-clicking and I'm already planning a restriction-mode which forces players to be in a certain area to train a certain skill.
  21. Offline

    silentdojo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sounds good but i already had those issues in mind... was thinking bundles of xp for certain prices. But I like ur idea too.
  22. Offline

    NeonJ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why is it that when I try to buy something, I lose iConomy money, but not gain MCMMO EXP? Fail.
  23. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  24. Offline

    Mr_Mellow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey just an idea, Would you be able to have say it work like a sign shop? So the sign will be like
    [Skill]
    [price]
    [XP]
    [Owner/trainer]
  25. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    As it stands, I will most likely introduce zones where you can train (I'll probably just make something database-based for this so that I can use it for any mod I make in the future). I'll consider adding a sign-shop.
  26. Offline

    Mr_Mellow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ah that would be awesome. I was just guna say, you could make a job out of being a trainer that way. If you have reached top XP, you could become a trainer. just a thought. but i like your ideas.
  27. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hmm. That idea was kind of interesting. Added.
  28. Offline

    Mr_Mellow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  29. Offline

    NeonJ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well, I'm using b617, like in the title. The console gets this Could not pass PLAYER_COMMAND_PROCESS to Money2EXP, and it takes away iConomy money but doesn't give EXP.
  30. Offline

    TZer0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What version of mcMMO, Money2XP and iConomy?
    If you're using 0.9.17 or later for mcMMO - then it won't work for 617, if you're using 0.9.15 or earlier, then Money2XP won't work because the required function isn't there.

    Also, you should update to JK670 since there's a critical exploit in the pre-670 builds allowing anyone to shut down your server.

    When giving someone an error-report, please include the entire stack trace - without it I won't know what line the error happens at and therefore I will have to guess what's wrong.
  31. Offline

    MrObject

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    CB 617 iConomy 4.6.5 Money2xp 0.14 McMMO 0.9.16
    When purchasing xp, it shows the value of your bank account before the purchase, instead of after the purchase.

    So if I had 50,000 coins, and I buy 10,000 coins worth of xp, it'll say "Your balance is now 50,000" or something to that effect. Minor problem, but it's a little confusing to my players.

Share This Page