Inactive [ECON] RealShop - Shop using chests [1337-1561]

Discussion in 'Inactive/Unsupported Plugins' started by Baptiste Pillot, Feb 23, 2011.

  1. Offline

    tickleman

    SrJoben, sleite, Flipp and 6 others like this.
  2. Offline

    Adoleh

    It would be awesome if you could send out a notification in the chat if someone logs out with an item that didn't get charged :) At least until you found a more permanent fix.
     
  3. Offline

    darthsiddious

    let me give you details. pretty much, the issue is that i have shops in a city protected with worldguard. well, you cant access the chests in the protected zones. is this a bug that your aware of and are you fixing it?
     
  4. Offline

    Josh Harwood

    it's not a bug. you just need to set a flag on world guard for that region to allow users to open chests in that region. try: /region flag <regionname> chests allow
     
  5. Offline

    sxorpion

    Will def use this on my server once it has worldguard and groupmanager support. tested it as admin and its awesome but i need the default player support on it
     
  6. Offline

    tickleman

    Yes. crafted items price calculation may result in prices with cents-precision-prices.
    'need an option to round prices ?

    He can probably do something like that (not tested) :

    - link to my RealShop.jar as an external JAR.
    - create a RealEconomy realEconomy; public var into your plugin class
    - Add a plugin listener like this :
    Code:
    pm.registerEvent(Event.Type.PLUGIN_ENABLE, pluginListener, Priority.Normal, this);
    
    - and doing that :
    Code:
    public YourPluginListener(YourPlugin plugin) {
    this.plugin = plugin;
    }
    public void onPluginEnabled(PluginEvent event) {
    realShopPlugin = this.plugin.getServer().getPluginManager().getPlugin("RealShop");
    if (realShopPlugin != null && realShopPlugin.isEnabled()) {
    this.plugin.realEconomy = realShopPlugin.realEconomy;
    }
    }
    
    - Then in his code he can call following functions to get currency, get balance and set balance (like it's done into iConomy) - code sample from he's YourPlugin class :
    Code:
    String currency = this.realEconomy.getCurrency();
    Double balance = this.realEconomy.getBalance("playername");
    Double new_balance = balance + 100;
    this.realEconomy.setBalance("playername", new_balance);
    
    RealEconomy errors logs will output into realshop.log for the moment, as it is a realshop built-in class.

    Good luck to him...

    What do you exactly need ? Do you want to get the sales and purchases logs from the beginning, or something like that ? Tell me and I will try to answer you.

    Yes. Empty your selected items list.
    (note : my logical is that "client can sell everything"... always client-sided...)

    Code:
    - click on your chest
    - /rshop sell -0
    - check your "sellable" items list is empty. if not, /rshop sell -otherids to empty the list
    - that's it !
    
    You're right. There is an issue here ! I will repair that for the next release Thanks .

    I use it with worldguard too, but without any problem.
    What worldguard option do you use ? Are your chest-shops into a region that is chest-protected or anything like this ? If this is the case, you should consider remove chest protection into regions containing shops ! Any LWC / WorldGuard protection of the chest will avoid clients to open a chest-shop !

    I don't know what "the default player support" is. A GroupManager option ?

    About RealShop compatibility / tests :
    - works with WorldGuard (I use both RealShop and WorldGuard on my own server)
    - never tested with GroupManager (no link to it, thus)

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

    findyourexit

    I just wanted to let you know that my issue earlier turned out to be me just noobing out.

    Keep up the amazing work Baptiste Pillot, I look forward to an eventual update whereby players can't place blocks during a transaction to avoid paying :p
     
  8. Offline

    darthsiddious

    ok, so they can buy and everything, but they cant see the prices. all they see is shop name and how much money they have. the stores are in protected areas.

    here is my settings

    Code:
    #
    # WorldGuard's configuration file
    #
    # About editing this file:
    # - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
    #  you use an editor like Notepad++ (recommended for Windows users), you
    #  must configure it to "replace tabs with spaces." In Notepad++, this can
    #  be changed in Settings > Preferences > Language Menu.
    # - Don't get rid of the indents. They are indented so some entries are
    #  in categories (like "enforce-single-session" is in the "protection"
    #  category.
    # - If you want to check the format of this file before putting it
    #  into WorldGuard, paste it into http://yaml-online-parser.appspot.com/
    #  and see if it gives "ERROR:".
    # - Lines starting with # are commentsand so they are ignored.
    #
    # WARNING:
    # Remember to check the compatibility spreadsheet for WorldGuard to see
    # if any features are currently broken in your version of Bukkit.
    #
    
    summary-on-start: false
    
    suppress-tick-sync-warnings: false
    
    protection:
        enforce-single-session: on
        item-durability: on
    
    simulation:
        sponge:
            enable: on
            redstone: off
            radius: 3
    
    physics:
        no-physics-gravel: off
        no-physics-sand: off
        allow-portal-anywhere: off
        disable-water-damage-blocks: []
    
    ignition:
        block-tnt: off
        block-lighter: off
    
    fire:
        disable-all-fire-spread: false
        disable-fire-spread-blocks: []
        disable-lava-fire-spread: false
        lava-spread-blocks: []
    
    mobs:
        block-creeper-explosions: true
        block-creeper-block-damage: false
    
    spawn:
        login-protection: 3
        spawn-protection: 0
        kick-on-death: off
        exact-respawn: off
        teleport-to-home-on-death: on
    
    player-damage:
        disable-fall-damage: off
        disable-lava-damage: off
        disable-fire-damage: off
        disable-drowning-damage: off
        disable-suffocation-damage: off
        disable-contact-damage: off
        teleport-on-suffocation: off
    
    regions:
        enable: on
        wand: 287
        default:
            build: deny
            chest-access: allow
            pvp: allow
            lighter: allow
            tnt: deny
            creeper: allow
            mobdamage: allow
    
    blacklist:
        logging:
            console:
                enable: on
            database:
                enable: off
                dsn: jdbc:mysql://localhost:3306/minecraft
                user: root
                password: pass
                table: blacklist_events
            file:
                enable: on
                path: worldguard/logs/%Y-%m-%d-%H-%i-%s-%u.log
                open-files: 20
    
    # See http://wiki.sk89q.com/wiki/WorldGuard/Permissions/Bukkit
    permissions:
        users:
            darthsiddious:
                permissions:
                    - /region
                    - /reloadwg
    
    and for chest shop

    Code:
    dailyPricesCalculation=true
    economyPlugin=RealEconomy
    language=en
    shopDamagedItems=true
    shopInfiniteBuy=true
    shopInfiniteSell=true
    shopMarketItemsOnly=true
    shopOpOnly=false
    
     
  9. Offline

    starcitsura

    Idealy '35' would allow all wool, while '35:##' would only allow that specific colour, if thats possible. It is kind of a pain to type in all 16 wool colours.
     
  10. Offline

    Codex Arcanum

    How can I create a server general store that doesn't divert obscene amounts of cash to my account? Sorry if this is listed somewhere, but I can't find it anywhere after a long scouring of documentation.
     
  11. Offline

    Tim Visser

    I've made a clear, short tutorial explaining the basic usage of this plugin for people who are not familiar with it.

    Watch it here

    I hope you like it!
     
    Baptiste Pillot likes this.
  12. Offline

    darthsiddious

    oh wow, nice one. that really helps with the people who are playing on my server. now i just need my question answered and ill be good.
     
  13. Offline

    tickleman

    They can't build into their region, so they can't break any block. Left-clic on chests is a break event, that is blocked by WorldGuard, probabably, and the left-click-select-shop does probably not work too.
    If you want you can make this test :
    Code:
    /plugins disable WorldGuard
    /plugins enable WorldGuard
    
    This will re-enable WorldGuard and ensure it has been enabled AFTER RealShop. This will perhaps work.
    'can try disabling-enabling RealShop, instead, if it does not work. I don't know which one will work the best.
    ('hope you have these instructions)

    I will think about finding a way to turn this issue over.

    I will 35:* for all wool colours, if you want. Watch future changelogs for this new way to do this...

    - Open a RealEconomy/iConomy account for a NPC (ie a non-existing player named "server").
    - Then open your shop
    - And give it to "server" with this : /rshop give server.

    Very cool video.
    I will add a link to it into my documentations !

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

    darthsiddious

    you sir are a god among men, ill try it right now

    edit, yep, that was the trick. to disable and enable worldguard. thank you kindly sir.
     
  15. Offline

    tickleman

    The problem is that you'll have to do this each time you launch your minecraft server !
    I will do something someday to avoid this.
     
  16. Offline

    darthsiddious

    i didnt have the issue after i did it the one time. but if you want, thank you for that.
     
  17. Offline

    Aricus

  18. Offline

    Codex Arcanum

    How do you go about opening an account for a nonexistent player in iConomy? Sorry if that's a stupid question, I'm new at this iConomy/money in general stuff.
     
  19. Offline

    superzanti

    Hey guys. I'm a big fan of this plugin, been using it for a while. Minecraft was meant to be played with user interaction, not a bunch of commands. The biggest complaint on the server when I installed this plugin, was how everything wasn't in the market. So... I bring to you... My own custom market calculations. I've learned, that with these, a good starting balance is about 125.

    This is my market.txt it has every item available in the game.
    Code:
    1;5.00;4.00;Stone
    3;2.00;1.60;Dirt
    4;3.00;2.40;Cobblestone
    5;2.00;1.60;Wood
    6;1.00;0.80;Sapling
    9;8.00;6.40;Water
    11;9.00;7.20;Lava
    12;4.00;3.20;Sand
    13;4.00;3.20;Gravel
    14;20.00;16.00;Gold Ore
    15;15.00;12.00;Iron Ore
    17:0;8.00;6.40;Log
    17:1;8.00;6.40;Red Log
    17:2;12.00;9.60;Birch Log
    18:0;4.00;3.20;Leaves
    19;12.00;9.60;Sponge
    20;5.00;4.00;Glass
    21;15.00;12.00;Lapis Lazuli Ore
    22;44.64;35.71;Lapis Lazuli
    23;44.00;35.20;Dispenser
    24;8.00;6.40;Sandstone
    25;21.00;16.80;Note Block
    35:0;5.00;4.00;White Wool
    35:1;7.90;6.32;Orange Wool
    35:2;10.52;8.41;Magenta Wool
    35:3;10.73;8.59;Light Blue Wool
    35:4;6.70;5.36;Yellow Wool
    35:5;9.23;7.39;Light Green Wool
    35:6;8.48;6.79;Pink Wool
    35:7;8.23;6.59;Gray Wool
    35:8;8.51;6.81;Light Gray Wool
    35:9;10.90;8.72;Cyan Wool
    35:10;10.15;8.12;Purple Wool
    35:11;11.20;8.96;Blue Wool
    35:12;11.20;8.96;Brown Wool
    35:13;8.20;6.56;Dark Green Wool
    35:14;6.70;5.36;Red Wool
    35:15;6.20;4.96;Black Wool
    37;1.00;0.80;Yellow Flower
    38;1.00;0.80;Red Rose
    39;5.00;4.00;Brown Mushroom
    40;7.00;5.60;Red Mushroom
    41;450.00;360.00;Gold Block
    42;360.00;288.00;Iron Block
    44:0;11.00;8.80;Stone Slab
    44:1;17.00;13.60;Sandstone Slab
    44:2;5.00;4.00;Wooden Slab
    44:3;7.00;5.60;Cobblestone Slab
    45;17.00;13.60;Brick
    46;29.00;23.20;TNT
    47;36.00;28.80;Bookcase
    48;14.00;11.20;Mossy Cobblestone
    49;22.00;17.60;Obsidian
    50;0.50;0.40;Torch
    53;6.00;4.80;Wooden Stairs
    54;16.00;12.80;Chest
    57;720.00;576.00;Diamond Block
    58;9.00;7.20;Workbench
    61;24.00;19.20;Furnace
    65;7.00;5.60;Ladder
    66;15.06;12.05;Minecart Tracks
    67;9.00;7.20;Cobblestone Stairs
    69;5.00;4.00;Lever
    70;15.00;12.00;Stone Pressure Plate
    72;6.00;4.80;Wooden Pressure Plate
    76;1.00;0.80;Redstone Torch
    77;10.00;8.00;Stone Button
    79;12.00;9.60;Ice
    80;8.00;6.40;Snow Block
    81;2.00;1.60;Cactus
    84;96.00;76.80;Jukebox
    85;12.00;9.60;Fence
    86;3.00;2.40;Pumpkin
    87;6.00;4.80;Red Mossy Cobblestone
    88;5.00;4.00;Slow Sand
    89;18.00;14.40;Lightstone Ore
    91;3.50;2.80;Jack-O-Lantern
    256;44.00;35.20;Iron Spade
    257;124.00;99.20;Iron Pickaxe
    258;124.00;99.20;Iron Axe
    259;43.00;34.40;Flint and Steel
    260;20.00;16.00;Red Apple
    261;16.00;12.80;Bow
    262;1.75;1.40;Arrow
    263;1.00;0.80;Coal
    264;80.00;64.00;Diamond
    265;40.00;32.00;Iron Ingot
    266;50.00;40.00;Gold Ingot
    267;82.00;65.60;Iron Sword
    268;5.00;4.00;Wooden Sword
    269;4.00;3.20;Wooden Spade
    270;8.00;6.40;Wooden Pickaxe
    271;8.00;6.40;Wooden Axe
    272;7.00;5.60;Stone Sword
    273;5.00;4.00;Stone Spade
    274;11.00;8.80;Stone Pickaxe
    275;11.00;8.80;Stone Axe
    276;161.00;128.80;Diamond Sword
    277;82.00;65.60;Diamond Spade
    278;242.00;193.60;Diamond Pickaxe
    279;242.00;193.60;Diamond Axe
    280;1.00;0.80;Stick
    281;2.00;1.60;Bowl
    282;14.00;11.20;Mushroom Soup
    283;101.00;80.80;Gold Sword
    284;82.00;65.60;Gold Spade
    285;242.00;193.60;Gold Pickaxe
    286;242.00;193.60;Gold Axe
    287;4.00;3.20;String
    288;3.00;2.40;Feather
    289;5.00;4.00;Gunpowder
    290;6.00;4.80;Wooden Hoe
    291;12.00;9.60;Stone Hoe
    292;82.00;65.60;Iron Hoe
    293;162.00;129.60;Diamond Hoe
    294;102.00;81.60;Gold Hoe
    295;2.00;1.60;Seeds
    296;3.00;2.40;Wheat
    297;9.00;7.20;Bread
    298;25.00;20.00;Leather Helmet
    299;40.00;32.00;Leather Chestplate
    300;35.00;28.00;Leather Pants
    301;20.00;16.00;Leather Boots
    306;200.00;160.00;Iron Helmet
    307;320.00;256.00;Iron Chestplate
    308;280.00;224.00;Iron Pants
    309;160.00;128.00;Iron Boots
    310;400.00;320.00;Diamond Helmet
    311;640.00;512.00;Diamond Chestplate
    312;560.00;448.00;Diamond Pants
    313;320.00;256.00;Diamond Boots
    314;250.00;200.00;Gold Helmet
    315;400.00;320.00;Gold Chestplate
    316;350.00;280.00;Gold Pants
    317;200.00;160.00;Gold Boots
    318;3.00;2.40;Flint
    319;6.00;4.80;Pork
    320;8.00;6.40;Grilled Pork
    321;14.20;11.36;Paintings
    322;3620.00;2896.00;Golden Apple
    323;11.00;8.80;Sign
    324;12.00;9.60;Wooden Door
    325;120.00;96.00;Bucket
    326;128.00;102.40;Water Bucket
    327;129.00;103.20;Lava Bucket
    328;200.00;160.00;Mine Cart
    329;18.00;14.40;Saddle
    330;240.00;192.00;Iron Door
    331;4.00;3.20;Redstone
    332;2.00;1.60;Snowball
    333;10.00;8.00;Boat
    334;5.00;4.00;Leather
    335;122.00;97.60;Milk Bucket
    336;4.00;3.20;Clay Brick
    337;3.00;2.40;Clay Balls
    338;3.00;2.40;Reed
    339;4.00;3.20;Paper
    340;12.00;9.60;Book
    341;4.00;3.20;Slime Ball
    342;216.00;172.80;Storage Minecart
    343;224.00;179.20;Powered Minecart
    344;4.00;3.20;Egg
    345;164.00;131.20;Compass
    346;11.00;8.80;Fishing Rod
    347;204.00;163.20;Watch
    348;2.00;1.60;Lightstone Dust
    349;3.00;2.40;Raw Fish
    350;5.00;4.00;Cooked Fish
    351:0;1.20;0.96;Ink Sac Dye
    351:1;1.70;1.36;Rose Red Dye
    351:2;3.20;2.56;Cactus Green Dye
    351:3;6.20;4.96;Cocoa Beans Dye
    351:4;6.20;4.96;Lapis Lazuli Dye
    351:5;5.15;4.12;Purple Dye
    351:6;5.90;4.72;Cyan Dye
    351:7;3.51;2.81;Light Gray Dye
    351:8;3.23;2.59;Gray Dye
    351:9;3.48;2.79;Pink Dye
    351:10;4.23;3.39;Lime Dye
    351:11;1.70;1.36;Dandelion Yellow Dye
    351:12;5.73;4.59;Light Blue Dye
    351:13;5.52;4.41;MagentaDye
    351:14;2.90;2.32;Orange Dye
    351:15;2.87;2.29;Bone Meal Dye
    352;5.00;4.00;Bone
    353;5.00;4.00;Sugar
    354;28.00;22.40;Cake
    2256;90.00;72.00;Gold Record
    2257;90.00;72.00;Green Record
    If you want to look at how I do my calculations, check out my google doc:
    https://spreadsheets.google.com/ccc...2lNZHZ5NjE1ZUJ4bkVJOXc&hl=en&authkey=CPf7vaAI
     
  20. Offline

    rjt197197

  21. Offline

    superzanti

    There, I updated it. Sorry, typo. You should be able to understand it now.
     
  22. Offline

    KrazyBonez

    Lets say ive been using this for about a week, and my members already have built up a nice ammount of cash. With that in mind, would i be able to switch from standalone mode to using iConemy (about to install it) without messing up all of the market values and making the money situation pure chaos?
     
  23. Offline

    tickleman

    This will be done in release 0.55 (you will use economy=BOSEconomy into config.txt)

    You admin must create it. But it's not easy ! I've asket iConomy authors to give us a command for easy creation of a bank account.

    In mysql : INSERT INTO iConomy (username, balance) VALUES ('yourusername', 100);
    In sqlite : insert a record into the file using a sqlite file manager (sorry, I don't know any)

    Actually you did not see (wiki) that in RealShop all crafted items prices are calculated using a simple price calculation formula using the crafting recipe of each item, and adding a "working force" ratio (1.1 is default, you can now configure it into the config.txt file).


    That's why my market.txt file contains only base items / blocks prices, and not crafted items prices.
    Some items used to be missing, but they have been added (or tell me). To be sure to get all of them, delete the market.txt file and /rshop reload to create the default one.

    Thus, thanks for your being fan of my plugin (I am a fan too :)), and thanks to have been so involved in prices calculation. I am sure that my base prices are not the bests one, perhaps I could change them to yours, as it seems you took a lot of time thinking about a good prices balancing, thing I did not !

    You will have to check your RealEconomy balances and initialize iConomy accounts of your players manually with /money grant command, sorry. Hope they are not too much numberous !

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

    ksevelyar

    Code:
    17:36:54 [INFO] [iConomy] Could not execute query: java.sql.SQLException: database is locked
    
    17:36:58 [INFO] [iConomy] Could not execute query: java.sql.SQLException: database is locked
    
    17:37:01 [INFO] [iConomy] Could not execute query: java.sql.SQLException: database is locked
    Minercaft server crashes after right click to any shop-chest.

    iConomy v4.5 + RealShop v0.55 + b556
     
  25. Offline

    escape

    I also get a similar exception, however opening shops and listing prices is laggy but does not crash the server.
    Code:
    12:41:51 [INFO] [iConomy] Could not execute query: java.sql.SQLException: [SQLITE_BUSY]  The database file is locked (database is locked)
    12:41:54 [INFO] [iConomy] Could not execute query: java.sql.SQLException: [SQLITE_BUSY]  The database file is locked (database is locked)
    I'm using SQLite.
     
  26. Offline

    tickleman

    These are iConomy errors. I can't do anything for you !
    Do other iConomy access do work fine ? /money grant ... ?

    EDIT : I just tried /money grant functions with iConomy 4.5... it has the same "locked" errors, even if only the Permissions plugin is on.
    Please ask into iConomy forum, not mine.

    Concerning lags I got no problem, with almost 100 opened shops.
    iConomy 4.5 seems to generate a lot of lags while accessing accounts, this. overloads an locked tables errors...

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

    Falistos

    I have a problem with your plugin, my players receive message "transaction canceled" when they sell (I do /rshop sell -0 first and added with /rshop sell +id+id+id .. authorized objects) without any further explanation (console / logs).

    I run Craftbukkit 531 with the latest version of RealShop (0.55), iConomy 4.5,WorldGuard (zone configured with chest : allow, players can access chests)
     
  28. Offline

    tickleman

    The shop owner has not enough money to pay for sold items.
    That's the only possible reason for a full transaction cancellation.
     
  29. Offline

    Falistos

    Thanks a lot! It works now.
     
  30. None of the commands are doing anything. The only one that works is /rshop. Any other command I put in does nothing. No error messages or anything, just nothing. How do I fix this?
     
  31. Offline

    KrazyBonez

    Had to stop using this and switch to a more reliable plugin for my shops. BE AWARE EVERYONE! If a player does exactly as i say, they will get away without paying for anything!

    All they need to do is simply mouse over the item in the shop, pick it up, mouse over inventory, right click one of them down, put the rest back, and walk away. Rinse and repeat. Good luck with your plugin.
     

Share This Page