[INACTIVE][ECON] TradeCraft v0.7 - Chest/Gold Based Economy! [531]

Discussion in 'Inactive/Unsupported Plugins' started by mjmr89, Mar 11, 2011.

     
  1. Offline

    mjmr89

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    TradeCraft - Chest/Gold Based Economy
    Version: 0.7

    Features
    • Make infinite shops - place gold or items in the chest, right click the sign, and watch the magic happen!
    • Become entrepreneurs! Have a lot of extra goods? Create a shop to let people easily buy or sell!
    • Change the currency if you don't like gold
    Download and Source

    All credit for the core of this mod goes to the github user jdiamond (injektilo on the hey0 forums). All I'm doing is porting it at the moment, but I'll probably add more features down the road. I haven't been able to test it extensively so far, so expect problems! If you don't have Permissions, it will resort to only letting ops make or destroy shops, but all players can buy/sell at shops. The TradeCraft.txt and TradeCraft.properties files are IN the jar, open it up with a archive manager program and extract them to the same folder as your craftbukkit.jar. I know they should be in something like plugins/TradeCraft, and I'll change that soon.

    For the readme, please go to the source page and look there. It is also included in the jar file if you open it with an archive manager.

    Permissions:
    • TradeCraft.canBuy
    • TradeCraft.canSell
    • TradeCraft.canMakeInfShops
    • TradeCraft.canMakePlayerShops
    • TradeCraft.canDestroyShops
    Commands:
    • /setCurrency - use the id number, or the material name (using _ as spaces)
    • /displayCurrency - Shows the current currency
    • /canPlayer - debugging info if there are problems with permissions - outputs to the console.
    • /myShops - displays the personal shops you have and their current inventory/gold
    To Do:
    • Repair shops? Some basic structure is in the old hmod plugin, could probably get it working without too much trouble.
    • iConomy interaction? For example, back up iConomy $$$ with gold or something? Not sure how that would work out, or if people would find it useful.
    If theres any more comments or questions, please let me know!
    kenneth123, ydido and Digi like this.
  2.  
  3. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hehe, that's ok. Happens to the best of us. To be honest, I'm glad it wasn't a stupid mistake I made :)
  4. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok, for the daredevils, here's a link to a new version that supports the item data field, so you can setup shops for colored wool, etc.

    http://dl.dropbox.com/u/20956285/Bukkit/TradeCraft/TradeCraft-AE-v1.0.0-alpha2.jar

    I'm just releasing this so people can try it out and check for bugs. It reads 'alpha' for a reason! Not that I think it will completely break your server. But you never know. This is still just a Minecraft 1.4 / Bukkit 617-684 release.

    So please let me know of any issues or comments you have. When this is getting shape I will probably start my own thread.

    The default TradeCraft.txt now has one extra line:
    Code:
    LGWool,		35;8, 10:1
    
    Note how that first 'column' separates 35 and 8 with a semicolon. The 35 stands for the wool ID and 8 for the color (light gray I think).

    You can also use that format to set a special item as currency if you'd really want to (and yes, you can set a non-sensible value, it should just act as the base item then).

    Also:
    - Should have fixed the issue where you could buy in rates of (ie) 3:1 when the sign or config was set to a multitude like 6:2.
    - Was blocking the creation of any sign that had text surrounded by brackets on the first line (like [launch player]). Now it checks whether the string between the brackets is actually a value in TradeCraft.txt and only then block creation of an infinite shop if you do not have the rights.
    - Whole bunch of small changes. I'll try to create a more complete list when I release this for real.
    - Still plenty on the todo list...
  5. Offline

    L24D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My friend, you are amazing. :D
    I'm about to test it out in a moment, i'm still going through the unbelievably taxing task of making a shop for EVERY item in the game. I'm currently 3/4 through the list 0_0. at item 291 (stone hoe)... it's taken me hours. haha.
  6. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The ";" character always signifies "next" not "related", you could use ":" for item type separation, like give command does :p
  7. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm not sure what basis you use to define those relations, but this is the first time I heard that explanation.

    I've thought about several options for separation here. And I think using a colon would be cause for confusing in the config file. Since the colon is already used for the trade rates in there. In the end I settled for the semicolon - for now.
  8. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @ArmEagle, well that's my general ideea of the character :}

    Still, you should release your version in a new thread because this one is already marked as inactive and those who don't know that you're keeping it up2date have many problems because they follow the thread or might just reconsider if they see it's inactive.
  9. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I know, and I will. Just wanted a few eyes on this first. But I could just as well start a thread with an alpha release I guess (even if it would stay in the submissions forum for a while).
  10. Offline

    L24D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah, i've checked it out thoroughly...
    Everything seems to be 100% :D. At least for me...
    Another +10 for an amazing job integrating it! :D

    Also... Are the lines it's throwing out in the console just for debugging? It just tells me what item was used, and what item was gained from a swap in one of the shops...

    Oh, one more thing while I'm thinking about it... do you think you might need a complete/alternate item list with the plugin(tradecraft.txt)? it took me forever to do, but i have one, if you require it :p
  11. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    First, here's the new thread, please continue there, except for the following small discussion:


    I guess I had some extra debugging still in there. I think that's removed in the newer version (see other thread - or find the same link in my previous update post).
  12. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh,about that complete list. Feel free to post that in code-tags on that other thread. I'll just put that up as a file for easy download from the OP then.
  13. Offline

    Aspernatio

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is too good to die! Don't give up hope!!!
  14. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  15. Offline

    m0jumb0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    one issue I have with the mod is that if you deposit more items than can fit in the chest (by repeatedly depositing), then you withdraw, you only get the number of items that fit in the chest and the rest get lost. this is mainly a problem for things that don't stack like bread, porkchops, etc

    Perhaps the thing to do is when withdrawing only withdraw the amount that will fit in the chest and don't zero out the item count in the data file, only subtract 27*stack size
  16. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Check the link in my signature. I've continued the mod there. This is one of the things I fixed, almost exactly the way you described it.
  17. Offline

    m0jumb0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    awesome! I actually was using beta 1 of the AE version, so I missed the upgrade. Guess I should have checked the other thread first. I think I'm going to try your other plugin. It looks pretty cool.
  18. Offline

    alexcam98

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does anyone know if there is a non-bukkit version of this? Any help would be appreciated.
  19. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What do you mean? The original was made for hMod, though it's not like that is still being used.

Share This Page