How to make a certain NPC face any direction and say anything!
First go to NPC.java, and search for
You will see the process() of NPC. its very short ^^
Now under the last code in that, after the 2nd last } paste this
Code:
if(npcType == 1413) { // npc id number here
requestText("Mining!"); // what do you want it to say
requestFaceCoords(absX, absY-1); // face south.
updateReq = true;
faceCoordsUpdateReq = true;
}
If you want to change the direction it faces then use the following:
requestFaceCoords(absX, absY-1); // South
requestFaceCoords(absX, absY+1); // North
requestFaceCoords(absX+1, absY-1); // West
requestFaceCoords(absX, absY-1); // East
However, if you are too lazy like me, then go to Engine.java
search for:
Under that, paste
Code:
n.requestFaceCoords(n.absX, n.absY-1);
It makes all your NPCs face south just like normally.
Thanks ;)