Plugin Help Merchant Trade on Anvil

Discussion in 'Plugin Help/Development/Requests' started by MaHl111, Oct 15, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    MaHl111

    Hello guys,
    I'm writed this because I need help with my code. Let me explain it...

    Problem/Idea
    ------------------------------------------------------------------------------------

    I'm making RPG Crafting Plugin. I got this idea when I see one video with Only One Command (link). I'm trying make same anvil as in video. But I don't know how to make a script what determinate anvil inventory open (classic anvil open) and change it for Merchant Inventory and add items for trade.
    ------------------------------------------------------------------------------------

    Progress

    ------------------------------------------------------------------------------------
    Idea 100%
    Crafting 100% (Crafting Anvil is craftable)
    Opening 20% (I just make this:
    Code:
    Inventory ci = Bukkit.getServer().createInventory(null, InventoryType.MERCHANT, "Crafting");
            Player p = e.getPlayer();
            
            p.openInventory(ci);
    )

    Particles Effect 10% (I know how it was be, just .getLocation and +1 on top) (It's not necessery)
    Block Interaction 0% (Left Click Run Command/Right Click Open Merchant Inventory, for the real... I don't really know how to make this Click Action :/)


    Specifications
    Version: 1.8.8 or higher.
    ------------------------------------------------------------------------------------

    What's going on?
    ------------------------------------------------------------------------------------

    It's just a one part of my RPG Plugin Pack (WIP, contain just better lvl system yet). It will be a full setup plugin pack for server.
    -------------------------------------------------------------------------------------

    Thanks for a help
     
  2. Offline

    DoggyCode™

  3. Offline

    MaHl111

    Protocol Lib? Doesn't it only API for mechanics like config/update and other things like that? If it... Yeah, you're right, it help... but not now... I'm must make a running plugin with every function what I need... After that... Maybe. Anyway, Thanks :)
     
Thread Status:
Not open for further replies.

Share This Page