Villager Trading

Discussion in 'Plugin Development' started by Liam Allan, Feb 24, 2013.

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

    Liam Allan

    I've been working on this large private plugin and couldn't find a working/easy way to change what a Villager is trading.

    None of the APIs made by Bukkit users work anymore.

    What do I do? Wait for Bukkit to add something for it?
     
  2. Offline

    Rockon999

  3. Offline

    Liam Allan

  4. Offline

    Rockon999

    Ok :p
    Thought it was because on our server we used it to change the whole entire trading system, we replaced emeralds with gold, and customized the amount of items needed, and we removed and added some items :)
     
  5. Offline

    Liam Allan

    Still need some help with this. Much grateful.
     
  6. Offline

    microgeek

    Can't be done without using CraftBukkit and some reflection. I wrote a Npc plugin(it's private) that generated new Npcs with trades based on the profession they are given(not default ones). Once you have CraftBukkit in your buildpath, you can dick around in there, and try to get it working.

    Look at:
    someEntityVllager.a(((CraftPlayer)somePlayer).getHandle());
     
Thread Status:
Not open for further replies.

Share This Page