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

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

  1. Offline

    mjmr89

    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. Offline

    CHIKINS!!!

    Like when you pay for something it takes money from your iconomy and I can't use this cuz I have CB build 617
     
  3. Offline

    ArmEagle

    Download 0.91AE here http://dl.dropbox.com/u/20956285/Bukkit/TradeCraft/TradeCraft-v0.91AE.jar (you might have to rename it to TradeCraft.jar).

    Aren't there shop plugins that completely use iconomy though? Why would I go implement that if something like that already exists? Not saying that it will never be added though.
     
  4. Well, Lockette adds the sign to the chests and modifies the 2nd line with the player's nickname... so basically you can do that too :p you can mix no name required with ON chests thing :p

    And yes there are iConomy plugins but they're all different... still, I don't personally use iConomy but it would be a good OPTIONAL thing.
     
  5. Offline

    FlyBoy619

    how come i've updated it but when i right click the signs nothing happens :( this was my favorite plugin
     
  6. Offline

    ArmEagle

    I'm not sure from what version you updated. But any chance it was the big update where I mentioned to move the TradeCraft.txt (and .data) files to the plugins/TradeCraft folder? If so, the plugin created those files by itself reverting back to only the basic items being supported.

    Any chance you're trying to interact with a sign of an 'advanced' item that is not in the default list of items? (try dirt, that should work).

    If all that is not the case, then I'm curious to what versions (CB and my plugin) you're using, what permissions you have (just op/not, or actual Permissions values). And perhaps there are some errors in the console/server log that could be of help.
     
  7. Offline

    FlyBoy619

    umm yeah i dont know what im doing wrong :( umm it's the latest version of CB and the lastest version of your plugin :S i tried to fully delete it and start again but still nothing
     
  8. Offline

    ArmEagle

    So, you downloaded the TradeCraft.jar, right (from this post for example. Not by accident the one I linked to later, the -v0.91AE one?

    And you're using a simple sign like with dirt for example, an item that's in the plugins/TradeCraft/TradeCraft.txt list?
     
  9. Offline

    FlyBoy619

    ok i redownloaded it using that link, i used a simple thing like dirt... still no response when i right click :(

    ok dw now i got it to work :D thanks a lot for your help and keep up the great work!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  10. Offline

    ArmEagle

    I'm glad you got it to work. I'm curious to what went wrong/how you fixed it though. I'm sure it was something simple. Don't feel bad, it happens to the best!
     
  11. Offline

    FlyBoy619

    I'm not sure i must have had some bugged files that just wouldn't respond so i just wiped everything and started fresh :p
    loving this plugin!
     
  12. Offline

    CHIKINS!!!

    Since you have this plugin u can hook it up to other plugins, making it fun for everyone, so if you hook it up to LWC, iConomy you could get a plugin that allows you to make your chest unbreakable (except from the owner of the chest and admins) and when you pay for someting the money would come off your iConomy account, and you could have infinity shops. I'm just giving a suggestion.
     
  13. Offline

    jolee1995

    Hey everyone I REALLY NEED HELP!! I have been trying to fix this for a week and i can't... i put tradecraft.jar in later link in plugins folder, the tradecraft properties and txt in same folder and properties.system and I set the buy and sell priced like this:
    Show Spoiler

    # Item name, data value, buy exchange rate (item to gold), sell exchange rate (optional)
    # http://www.minecraftwiki.net/wiki/Data_values

    Stone, 1, 32:1
    Dirt, 3, 64:1
    Cobblestone, 4, 64:1
    Wood, 5, 32:1
    Sapling, 6, 32:1
    Bedrock, 7, 1:32
    Sand, 12, 32:1
    Gravel, 13, 32:1
    Log, 17, 8:1
    Sponge, 19, 1:8
    Glass, 20, 16:1
    Lapis Block, 22, 1:9
    Sandstone, 24, 24:1
    Wool, 35, 5:1
    Yellow Flower, 37, 8:1
    Red Flower, 38, 8:1
    Brown Mushroom, 39, 1:3
    Red Mushroom, 40, 1:3
    Brick Block, 45, 1:9
    TNT, 46, 1:40
    Moss Stone, 48, 1:5
    Obsidian, 49, 1:4
    Pig Spawner, 52, 1:128
    Seeds, 295, 16:1
    Snow Block, 80, 32:1
    Cactus, 81, 12:1
    Clay Block, 82, 1:8
    Sugar Cane, 338, 12:1
    Pumpkin, 86, 1:16
    Netherrack, 87, 64:1
    Soul Sand, 88, 64:1
    Glowstone, 89, 1:1
    Arrow, 262, 5:1
    Coal, 263, 6:1
    Diamond, 264, 1:64
    Iron, 265, 1:4
    String, 287, 1:5
    Feather, 288, 3:1
    Gunpowder, 289, 1:8
    Wheat, 296, 6:1
    Bread, 297, 2:1
    Flint, 318, 3:1
    Raw Pork, 319, 5:1
    Cooked Pork, 320, 2:1
    Painting, 321, 2:1
    Golden Apple, 322, 1:64
    Saddle, 329, 1:64
    Redstone, 331, 4:1
    Leather, 334, 5:1
    Milk, 335, 1:1
    Slimeball, 341, 2:3
    Egg, 344, 3:1
    Dye, 351, 2:1
    Bone, 352, 3:2
    Cake, 354, 1:16
    Cookie, 357, 1:5
    Gold Disc, 2256, 1:64
    Green Disc, 2257, 1:64

    However when i put sign above chest as either:
    Buy and Sell
    [Stone]
    Here!

    or

    [Stone]

    and then right click sign, nothing works... this is an infinite/admin shop not a player shop.. can someone plz help me? THANX ALOT!!!
     
  14. @jolee1995 are you using #556 or the custom update in the posts ? Because the custom one has the data files and propeties file in the plugins/TradeCraft folder, check if you have that folder and update them accordingly.
     
  15. Offline

    jolee1995

    i updated but still doesnt work..
     
  16. Offline

    gsand

    Hi Arm Eagle and mjmr89.

    Would it be possible to make it so players can buy 6 items for 2 gold, but not 3 for 1 gold.
    That would be the best thing ever.
     
  17. Offline

    ArmEagle

    Can't you just write 6:2 on the sign? I never tried it, but assumed that would work.
     
  18. Offline

    airsoftinva

    I have the lateset version of craftbukkit and when i start my server it says a severe error: BLOCK_RIGHTCLICKED v0.7 (is it up to date?)

    What do I need to do to get rid of that?

    Yep I cant get it to work for me for some reason

    EDIT: Never mind sorry, I got it working.

    Planning on loving all over your plugin, thank you!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  19. Offline

    gsand

    It still sells you 3 of that item for 1 gold
     
  20. Offline

    ArmEagle

    Ok, I'll look into that too.
     
  21. Offline

    airsoftinva

    For some reason I can't get it to buy or sell diamond pick axes or seeds (which is one of the reasons i got this for)

    Will it even work for these? I've added the names and data values in the tradecraft.txt folder and I've got the exhange rates set but it just wont work.

    I'm running the latest version of craftbukkit

    Yep, i cannont get any other item not in the txt file already to work...
    Any ideas?? I like this plugin a lot but im dissapointed atm.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  22. It works with all items except those that require damage values (colors for wool, dye, etc)
    First make sure you got ArmEagle's version, then make sure you got TradeCraft.txt in plugins/TradeCraft/ and then make sure you don't have spaces in the item names.
     
  23. Offline

    ArmEagle

    You mention "the tradecraft.txt folder", but I assume you meant to say "file" there. Are you editing the TradeCraft.txt inside the plugins/TradeCraft/ folder, or the old one which is in the root of the game folder?




    On another notice. I still figuring new stuff about the script. And some stuff simply doesn't make sense yet. I do have an idea about how to change a few things. But I need to find the right time and mood to rework some of the code and add several of the features on the TODO list.
     
  24. Offline

    airsoftinva

    Well I downloaded it how it said to in the readme. The tradecraft.txt folder is in my root folder. I add in a new item but it doesnt work in game. Do you know how i can fix this?
     
  25. Offline

    ArmEagle

    Yes, remove the tradecraft.txt (and .properties and .data) files in that root folder.
    Then go into plugins/TradeCraft/ and edit the .txt there.

    Sorry that this isn't all really clear. But initially I assumed mjmr89 would just pickup the changes (or make them himself) and I could step away again. Though I should probably have contacted him directly myself. Unless something changes, I think my next version (whenever it comes out) will be an actual new version posted in its own thread. Up to now it was mostly a matter of keeping the plugin as it was working with newer versions (with a few small changes).

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  26. Offline

    airsoftinva

    Clear enough it works now. Thank you so much my users are STOKED!
     
  27. Offline

    SAGE221

    When i run it i get this.

    F:\Documents and Settings\Josh\Desktop\Bukkit>ECHO OFF
    20:55:25 [INFO] Starting minecraft server version Beta 1.4
    20:55:25 [INFO] Loading properties
    20:55:25 [WARNING] server.properties does not exist
    20:55:25 [INFO] Generating new properties file
    20:55:25 [INFO] Starting Minecraft server on *:25565
    20:55:25 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-
    gb61ef8c-b670jnks (MC: 1.4)
    20:55:25 [INFO] Preparing level "world"
    20:55:25 [INFO] Preparing start region
    20:55:26 [INFO] 144 recipes
    20:55:27 [INFO] Preparing spawn area: 56%
    20:55:27 [SEVERE] ebean.properties not found
    20:55:27 [INFO] DataSourcePool [OPBlock] autoCommit[false] transIsolation[SERIAL
    IZABLE] min[2] max[20]
    20:55:27 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.Plugi
    nClassLoader]
    20:55:28 [INFO] Entities enhanced[0] subclassed[1]
    20:55:28 [INFO] [iWatch] iWatch version 0.5 is enabled!
    20:55:28 [INFO] [iWatch] Settings Loaded!
    20:55:28 [INFO] [iZone : 5.7] Enabled!
    20:55:28 [INFO] [iZone : 5.7] Loaded 0 zones out of 0
    20:55:28 [INFO] Lockette version 1.3.4 is being enabled! Yay!
    20:55:28 [INFO] Lockette: Detected craftbukkit build [670] ok.
    20:55:28 [INFO] Lockette: Using ops file for admin permissions.
    20:55:28 [INFO] Lockette: Ready to protect your containers.
    20:55:28 [INFO] PlgSetspawn version 4.0 is enabled!
    20:55:28 [INFO] Loaded 18 configs
    20:55:28 [INFO] Loaded 0 shops
    20:55:28 [SEVERE] BLOCK_RIGHTCLICKED loading TradeCraft v0.7 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
    at com.mjmr89.TradeCraft.TradeCraft.onEnable(TradeCraft.java:72)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    20:55:28 [INFO] Done (0.232s)! For help, type "help" or "?"
    Hep please D:
     
  28. Offline

    ArmEagle

  29. Offline

    SAGE221

    Thank you so much! ive been at this for hours!
    Your great! :)
     
  30. Offline

    Juze

    Please update to latest RB to be moved back to releases.
     
  31. Offline

    ArmEagle

    I guess I'll have to make my own thread with my modified more up-to-date version soon. Will do that when I get some more features in.

    But till then I know the people who need it can find it here.
     

Share This Page