How to disguise npc as a players skin

Discussion in 'Plugin Development' started by Mang0eZPvP, Aug 29, 2013.

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

    Mang0eZPvP

    Ok i need to know how to spawn in a villager with the same skin as a player when for example they leave the game or type a command down? Now i know this is posible, just go mcpvp.com and ask someone to leave the game u will see a villager will spawn with the players skin. Thank for future help :)
     
  2. Offline

    MrNegaBlo

    Just to help with the answers. Does it actually look like a CLONE of the player? or is it the squidwards you find in villages?
     
  3. Mang0eZPvP
    That's not a villager, that's an NPC.

    You could go ahead and write your own way of spawning NPC's, but I think you're not capable of doing that. Browse the internet and find TopCat's NPC library, you can use this to easily spawn NPC's and have them do basic things. Chance is you have to update it by yourself, but that shouldn't be too much of a problem.
     
  4. Offline

    Mang0eZPvP

    No see what i want is to make a clone of a villager/NPC that has a player skis, i just need away to change the texture thats it the rest i can do easy
     
  5. Umm, you sure it's a villager? Becuase with their arms and large head, a player skin would look wayyyy off. It's probably a custom entity they make(probably a zombie since it is the same size as a player), and do some packet stuff to make it look like the player.
     
  6. Offline

    Mang0eZPvP

    Why would they make it so it would make villagwr noises??
     
  7. They just spawn an npc with that skin, done. The skin is handeled client-side, because the server send the packet of the npc (which includes a name) client looks for that name in the skin database, if found > render skin on npc, if not render default steve skin. Also giving custom entities player skin is kinda impossible but I do remember when I browsed the source code there was this var that defined the location of the skin, so myabe you can get the players skin url location, and set that as the skin location, doubt it will work though...
     
  8. Offline

    Mang0eZPvP

    New to packets so what packets are there or could you send me a link to them all?
     
  9. Offline

    Mang0eZPvP

  10. Mang0eZPvP You have to modify the
    Spawn Named Entity (0x14) Packet
     
  11. Mang0eZPvP Google bukkit npc-lib, kumpelbase2 is amking/made one. (Sorry if I misspelled his name)
     
  12. Offline

    Mang0eZPvP

    Couldnt find dl libk so i made new thread post
     
  13. I'm wondering why no one reads my post. I believe I gave the answer you are all looking for already.
     
  14. Offline

    Mang0eZPvP

    I did i changed
    th title to npc and looked into topcats libary. Just on another note am i allouder to put the remote entitys source code into my own plugin?
     
Thread Status:
Not open for further replies.

Share This Page