Simple Plugin

Discussion in 'Plugin Requests' started by MariusAlexanderWinsjansen, Sep 22, 2012.

  1. Greetings,

    I usly make plugins myself but I dont have the tools or the things needed too do it atm, so I thought I could ask here if someone could do it for me since its pretty simple!

    4 Signs, whit different action for both right and left click!

    IRON
    - Left Click, and if you have 100 iron in inventory, you get 1 gold in return for the iron!

    Gold
    - Left Click, and if you have 100 gold in inventory, you get 1 diamond in return for the gold!
    - Right Click, and if you have 1 gold in inventory, you get 100 iron in return for the gold!

    DIAMOND
    - Left Click, and if you have 100 diamond in inventory, you get 1 emerald in return for the gold!
    - Right Click, and if you have 1 diamond in inventory, you get 100 goldin return for the gold!

    EMERALD
    - Right Click, and if you have 1 emerald in inventory, you get 100 diamond in return for the emerald!

    Simple, and easy!

    Thanks, in advance!
    - W

    This post has been edited 1 time. It was last edited by mbaxter Sep 22, 2012.
  2. Offline

    PogoStick29

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does it have to be signs? How about commands? Or items?
  3. Online

    MrBluebear3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So a bit like EquivelentExchange for Bukkit?
  4. Offline

    Vandrake

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This should be easy enough. If noone takes it I will
  5. Offline

    Vandrake

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

    boss86741

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You could (if you have essentials) do a [trade] sign.
  7. Thank, you Vandrake!

    I am sorry for so late reply from me, I have been abit busy!

    I will test it out, right away!

    EDIT 1;

    It works perfectly! :) Thanks!

    Only think, could you remove the "Maw" from the top line? So, only the second line have to be Iron/Gold/Diamond/Emerald, and so that the first and the last one can be whatever one wants?


    EDIT 2;

    I cant "Upgrade" my currency, for example, 100 diamonds, cant be turn into 1 emeralds! Maybe you are checking for item in hand for the 100 diamonds in the code? Should be checking the inventory, since one can never have 100 diamonds in one stack!
    "De-grade", works perfectly:)

    This post has been edited 3 times. It was last edited by MariusAlexanderWinsjansen Sep 23, 2012.
  8. Offline

    Vandrake

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Edit 1 : Sure right away.
    Edit 2: No Ofcourse im not checking the hand :confused: I'm checking if the total item in inventory is over 100 and if it is buy. But I will review the code again. I did test it over and over again before posting it here.
  9. Offline

    Vandrake

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

    This post has been edited 1 time. It was last edited by Vandrake Sep 23, 2012.

Share This Page