Description: How to customise an NPC.
Difficulty: 1/10 - EASY
Assumed Knowledge: Able to use Ctrl+F, copy + paste
Files/Classes Modified: Client: Class5.java
When you right click an NPC, It says;etc.
This tutorial will show you how to edit what it says.Client Side1. Open
Class5.java (this contains all your custom NPCs, for example, General Graardor. :P)
Search for:if(i ==Above that add:
if(i == ####) { //change #### to your NPC ID.
Class5.aStringArray66[0] = "Talk-to"; //You can change this if you like
Class5.aStringArray66[2] = "Trade"; //You can change this if you like
Class5.aStringArray66[3] = "Examine"; //You can change this if you like
Class5.aString65 = "Your NPC/SHOP"; //Npc name
Class5.aByteArray89 = "examine info here, put whatever you like.".getBytes(); //examine info
}2. Save and compile.
This is all I will be teaching here.
How to basically edit an NPC text when you right click them.
This doesn't include making the action happen so if you right-click and choose an option, it won't happen,
you will need to add the code yourself.
Maybe sometime I will make a tut for that :)