PHP Code:
temp.npc = this.level.putNPC2(player.x, player.y, "");
temp.npc.join("test");
temp.npc.z = value; //change the word value to the correct numerical value of the z axis you want it on
You should take note, however, that if you place it on a Z coordinate (ex. z = 5) on something that is not a terrain map or level, it will actually LOOK like it's being placed at a y axis lower than the player's y (MORE towards the top of the screen / above the player...).