[INACTIVE][ECON]SignTrader 1.0.7 - Trading with signs! (617)

Discussion in 'Inactive/Unsupported Plugins' started by darknesschaos, Feb 3, 2011.

  1. Offline

    darknesschaos

    SignTrader - Trade with Signs!
    Version: v1.0.7 - CB (617) tested
    [wheatsprout]Description[wheatsprout]
    This Bukkit plugin allows servers to use signs as a functioning shop tool. Simply set the sign in the appropriate format, optionally link it to a chest and you can have a sign that either vends from a chest you own or you can set the sign to sell to users items they normally couldn't get as something like a modified /give with a set location. Simply punch the sign to get a little more information to understand what it does and how to use it.

    [wheatsprout]Commands[wheatsprout]
    /signtrader -s p - set the sign that you punch, the 'p' is optional and makes it persist.
    /signtrader -sc p - link signs and chests to each other, must be within 40 blocks and on the same world and the 'p' is optional
    /getdata - returns the data of the item in hand (name, amount, and durability.)

    [wheatsprout]Other Plugin Support[wheatsprout]
    You don't need any of these for this plugin to work.​
    Supports protection from LWC, (2.0 only) with lwc installed SignTrader forces players to sell from chests that they own.​
    Supports Permissions from TheYeti (2.5.4 tested) with the following nodes This defaults to op.txt if not present:​
    • signtrader.MakeGlobalSign - so the player can activate "Global" signs defa
    • signtrader.MakePersonalSign - so the player can activate "Personal" signs
    • signtrader.admin.BreakAnySign - so the player can break any sign (duh)
    • signtrader.Use - so the player can use any player sign or activated Global sign
    • signtrader.admin.SetOwner - so the player can set the owner of signs.
    Supports iConomy (4.0 +) for usage with the local money system.


    [wheatsprout]Sign Format[wheatsprout]
    The sign format is as follows:​
    Line one - Global or Personal - denotes sign type, personal pulls from chests, Global doesn't use chests.​
    Line two - amount:ItemType:durability or amount:$ - this is the payment line (what the chest will get from the player) amount is how much the player wants to recieve, ItemType is the item number of the item they want to recieve from player if the other is chosen it will be the amount of money the sign owner wants to get from the player.​
    Line three - amount:ItemType:durability or amount:$ - Similarly to line two, this is what is removed from the sign owner and given to the player.​
    Line four - leave this one alone, [Activated] is put in the line to show it is an active sign.​
    Example 1) - trade sign​
    Line # - text​
    1 - Global​
    2 - 1:3​
    3 - 1:35:1​
    This sign trades for dirt and gives the user orange wool.​
    Example 2) - Sale sign​
    1 - Personal​
    2 - 1:$​
    3 - 64:3​
    This sign takes 1 of iconomy money from the sign user and gives it to the owner, and gives the user 64 dirt.​
    Example 3) - Freebie sign​
    1 - Personal​
    2 - Free​
    3 - 1:3​
    This sign gives 1 dirt for free to the user​
    Example 4) - Purchase Sign​
    1 - Personal​
    2 - 1:3​
    3 - 1:$​
    This sign takes money from the owner and gives to the user and takes 1 dirt from the user and puts it into the chest.​
    [fire]Trouble?[fire]
    When posting issues here please write the following:​
    * What the sign has written on it.​
    * What output you got from the console. (If any)​
    * What you expected to happen.​
    * What actually happened.​
    * What plugins (and their versions) you are using with this (including version number.)​
    * What version of this plugin you are using.​
    Failure to do these will result in you being called an idiot.​
    Show Spoiler


    CHANGELOG:​
    Version 1.0.7​
    *Bugfixing​
    Version 1.0.6​
    * removed the sign breaking prevention function...​
    Version 1.0.5​
    * Fixed an abuse problem​
    * Now protects signs and blocks from destruction of non-op(or permissioned) and non owners of signs (owners of global signs are the ones who placed them.)​
    Version 1.0.3​
    * Updated to be compatable with 600+​
    Version 1.0.2​
    * Fixed link with newest version of lwc.​
    * Null pointer bugfix​
    * Rewired the sign recognition code.​
    Version 1.0.1​
    * Trading sign bugfix​
    * re-added the /signtrader -s command​
    * fixed up command interface a bit​
    * added /getdata so players can find the durability of the item in hand.​
    * added /signtrader -so (OwnerName) needs "signtrader.admin.SetOwner" node or player being op.​
    * now prevents people from linking signs and chests that aren't their own.​
    Version 1.0.0​
    * Monsterous update​
    * Too many to list...​
    Version 0.9.3​
    * Fixed bug where appropriate files were not created.​
    * Cleaned up item.txt creation code.​
    * update to iConomy 3.0 support?​
    Version 0.9.2​
    * Fixed bug where chests weren't detected, possibly other fixes.​
    * still not sure on iConomy, please, someone, let me know.​
    Version 0.9.1​
    * Fixed a bug where signs were not deleted from the sign list when they were destroyed.​
    Version 0.9​
    * Added Sign protecting features​
    * hopefully a fix to iConomy support​
    * now players need to set personal signs.​
    Version 0.8​
    * Added a feature that displays sign information in a more detailed form when the sign is punched.​
    Version 0.7.1​
    * hopefully a bugfix that solves a problem with named worlds​
    * getting chest owner works nicely with LWC​
    Version 0.7​
    * Fixed purchasing and selling to chests (Needs testing.)​
    Version 0.6​
    * Removed incorrect format error.​
    * Chests can now: trade, get donations, give stuff out.​
    * Chests still can't "sell via iConomy"​
    * probably a few other fixes​
    Version 0.5​
    * Release of locking protection for global signs (so not anyone can make them)​
    * signs "should" work fine with chests, however I am afraid they ignore protections.​
    * item blacklisting possible.​
    * permissions support.​
    * iConomy support.​
    * ect.​
    Version 0.1​
    * Initial release of the plugin.​
     

    Attached Files:

    rasse, shadrxninga and NEO like this.
  2. Offline

    GyD

    Maybe you can work together, darkness for public relations+dev and Yogoda only for dev ;)
     
  3. Offline

    Nate204

    Any update on this?
     
  4. Offline

    darknesschaos

    yeah, I have been messing with a huge overhaul. source is updating, but nothing I want to call a release. Also, due to @Yogoda talking me into chests *(via your code) I will swap to a chest system as that creates something to fall back on if something were to ever break the plugin. I should have looked into chests.. it wasnt as hard as I would have assumed and they will save me a stupid amount of time.
     
  5. Offline

    Yogoda

    Sorry, I don't want to hijack your thread ^^ I will just post my updated code when it is done and that will be it ;) (I did change everything from Material to MaterialData, so that's a lot of changes)
     
  6. Offline

    Nate204

    I'm so excited for these!
    Right now I have simple shop JUST to sell items too.... My members have cash built up and want ways to spend it. As soon as you finish up, I'd love to be one of the first to test everything out for you! Keep it up!
     
  7. Offline

    NobodyOfNaught

    YAY me so excited :)
     
  8. Offline

    Yogoda

    mm.. I was unable to make it works with special log and colored wool :( ItemStack.getData() seems to return null in all cases. Maybe this have been fixed in later versions of Bukkit, but I'm stuck here.
     
  9. Offline

    darknesschaos

    check out my picasso plugin @Yogoda they have an odd way of handleing things.
     
  10. Offline

    Nate204

    When this comes out, Is it going to support multiple colors for wool? =D
    *sits back and wait for release*
     
  11. Offline

    darknesschaos

    it is wip, but when I get to that I will certainly try.
     
  12. Offline

    Dan_Weaver

    Eagerly awaiting iConomy support, excellent plugin.
     
  13. Offline

    dkramer

    Thank you so much! I have been looking for a Bukkit counterpart of a mod like this because I cannot run my server with mobs or animals, so trading for what they can drop is great :D
    --- merged: Feb 11, 2011 12:39 PM ---
    Is it possible to to make this mod work with colored wool? http://www.minecraftinfo.com/IDList.htm
    Their ID's are wacky.
     
  14. Offline

    darknesschaos

    I can, but it will take time. For now, use picasso ;)
     
  15. Offline

    zxsuperzx

    can you try to make a selling feature
     
  16. Offline

    darknesschaos

    there will be if you are asking what i think you are.
     
  17. Offline

    dkramer

    That Picasso mod is very nice!
    One more question, can you make it support the records?
    It seems that their problem is that they have a 4 digit code.
     
  18. Offline

    darknesschaos

    doesn't it support them already? I will test for it later. Currently working on getting some kind of release out this weekend.
     
  19. Offline

    dkramer

    I made a shopping center with about 12 items, tested all of the signs, and the only ones that didn't work were the records. Thanks for your fast responses.
     
  20. Offline

    darknesschaos

    That is such a strange error. Still, I shall tesssst.
     
  21. Offline

    pudd1nG

    Any chance of a way to disable users just placing their owns signs. at the very least OP only would be enough.
     
  22. Offline

    darknesschaos

    @pudd1nG there will be permissions support, so you can pick and choose then.
     
  23. Offline

    Astrognome

    Ok, I borrowed some of your source, and I'm trying to make the plugin work like this:

    You put a sign above a chest. The first line will say "purchase." The rest can say whatever. (preferably the sold item and the price.) I would make it like that, so you can make a sign like this

    Purchase
    10 cobble for
    1 coin

    On the back side of the wall, you do the same with the sign above the chest. however, this sign would have the owner as the first line, the price of the item as the second line, the item id on the third line, and the amount on the fourth. It would look like this:

    astrognome
    stone
    4
    10

    you would then load the chest underneath with merchandise, and the buyer would right click the outer sign, and some of the merchandise would be moved to the outer chest, and the money would be taken from the buyer, and given to the owner.

    EDIT: the reason you put the owner for the first line, is so you could help somone else make a shop, and set up signs.
     
  24. Offline

    Nate204

    How is everything going with the plugin? I was just checking in and see everyones Ideas! Sign Shops = Awesome!
     
  25. Offline

    darknesschaos

    It feels like it is getting close. I just don't have the time to put into it that I wish I did.
     
  26. Offline

    ignitus1

    Everyone can build a sign with this i will make it for Admins.
    How i can do that ??
    Help me pls
     
  27. Offline

    darknesschaos

    @ignitus1 you mean that only admins can use? you cant.
     
  28. Offline

    ignitus1

    No im admin But all player can use it and me to but i will make it only for admins
    Not for other players

    I have two character
    but on both I can build something like that

     
  29. Offline

    SAMDAN

    I think this is a great plugin, could ppl stop begging you to work here, and beg you to work on VoidMage instead? Thanks, if that would be possible.
     
  30. Offline

    PeterPAwN

    More important than iConomy Support imo is the implementation of a real shop like in Tradecraft. You can only Sell, what you have put in your Shop, so theres a real economy. Not just "playmoney" like iConomy.

    So with this conclusion it would be also nice to set a general Item for buying and selling (like gold ignots or diamonds, and with the option to make it also the way you have it now, like you supposed us to use it.)

    If you can implement Chest`s that would be absolutly awesome, it looks better for a shop and you have a bit more then an interface, since notch has not implemented splash screens for modders.

    I dont know if you care at at least one point, but youre the only guy who cares for an alternative to commanbased economy and shop systems like iConomy. Youre our last hope. ;))

    Regards,
    Peter
     
  31. Offline

    NobodyOfNaught

    Alot of people (like myself) don't like the 'playmoney' aspect of IConomy (or fiat currency as its known to economists) however having a proper currency does work very well to engage people in trading and make an economy actually happen.

    I would love it if barter worked however if Sally doesn't want Timmys bricks she's not going to trade him her logs, thus the economy stagnates.

    I solved this by creating a Gold Standard (sound familiar?) installed IConomy and Simple Shop and configured simple shop to buy and sell Gold Ingots at 100 coins per ingot, thus coins now equal gold. People can trade in a common currency but its not fake money, it all came from gold and can all be exchanged back into gold should the player desire.

    Sorry this is a little off topic, but I'd just read several similar posts in various economy related threads and had an urge to mention my solution
     

Share This Page