Creating a Merchant Inventory

Discussion in 'Plugin Development' started by Hotshot, Aug 18, 2012.

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

    Hotshot

    Hi, Ive been trying for the past couple hours to create an artificial Merchant Inventory and display it. Ive tried combinations of:

    Code:
    p.openInventory(getServer().createInventory(p, InventoryType.MERCHANT));
    but it doesnt seem to work. Now, if I just use the other createInventory() constructor, it seems to work:

    Code:
    p.openInventory(getServer().createInventory(p, 54));
    Can someone please help me? I cant figure out how to get a merchant/trader menu on the top section and the player inventory on the bottom section.
     
  2. Offline

    The_Coder

    Some of this is client side.
     
  3. Offline

    Hotshot

    The original post was literally a year ago. Thanks anyway.
     
Thread Status:
Not open for further replies.

Share This Page