You'd need to change your animations to be suitable for that NPC.
|
is there anyway to make the pnpc command where when you use it it dose not mess up making it look all disfigured and also like if you have it when you wear an item it turns you into a npc can you also make it so that npc looks right to.
You'd need to change your animations to be suitable for that NPC.
how would i do that
Well you'd find where your default animations are set (walking, running, attacking [weapon dependant] and blocking), and just add an if statement checking what NPC you're currently appearing as and have it change said animations to match those of the NPC.
can you show a example please
like this
if (npc == 154) playerSE = 362;Code:if(command.startsWith("pnpc") && playerRights >= 2){ int npc = Integer.parseInt(command.substring(5)); if(npc < 2745){ if (npc == 154) playerSE = 362; npcId = npc; npcId2 = npc; isNpc = true; updateRequired = true; appearanceUpdateRequired = true; } }
that line will make it so if u turn into npc 154 (a butterfly)
you will fly like the butterfly npc, instead of just a stand-still butterfly
zomg! ty rep+
one more question what if you were using a item that turned you into a npc? would u just add that line to that string of code?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |