If you are clever, Sorry If it made no sense :(
If you have any problems please leave a comment and I will
get back to you soon.
1] The first thing you would need to do is download the tile map editor: Tiled Map Editor
2] Once you downloaded the Tiled Map Editor you would need to open it up and open up a map from your client "res/maps"
(In this tutorial I am going to be adding a fat guy in Kanto.)
3] After you selected your map file you would see your selected map on the screen.
(I selected map "3.1.tmx")
4] Go to your server files and locate "res/npc" and then open up the map you selected on tile map editor.
(I selected map "3.1.tmx" So that means I have to open up "3.1.txt")
5] Once you opened up the .txt file you will see codes that look a little something like this:
6] Use the code below and add it into the bottom of the .txt file.[npc] NULL down 0 4 7 NULL 0 -1 0 false false false [/npc] [npc] NULL down 0 13 7 NULL 0 -1 1 false false false [/npc] [npc] NULL down 0 9 11 NULL 0 -1 2 false false false [/npc] [npc] NULL down 0 5 14 NULL 0 -1 3,4 false false false [/npc] [npc] NULL down 0 16 16 NULL 0 -1 5 false false false [/npc] [warp] 6 7 4 8 -48 -13 0 [/warp] [warp] 15 7 4 8 -48 -15 0 [/warp] [warp] 16 13 7 12 -48 -14 0 [/warp]
(YOU MUST OVERWRITE THE WRITING IN RED WHEN EDITING IT)
7] Now go back to your tiled map editor and hover your mouse over to where you want your NPC to be.[npc] Name Of NPC goes here down NPC Sprite number goes here Coordinate 1 goes here Coordinate 2 goes here NULL 0 -1 Number of the Line for strings go here false false false [/npc]
After you chosen where you wanted it to be, There should be coordinates in the bottom left corner, You would have to keep note of that.
8] Go back to your .txt file that you opened from your server files and insert the first number of the coordinate to where it tells you to put it.
and then put in your second number of the coordinate to where it tells you to put it.
(Must read number 6 if you havn't already.)
9] Now you have to change the Name of the NPC so you can edit that by inserting the name of your choice where it tells you in the .txt file.
10] Now you want to edit what your NPC is going to say, So in your client folder locate "res/language/english/NPC" and then again open up the map you opened up on Tiled Map Editor.
(So I have to open up 3.1.txt because thats what I'm working on)
11] Add a line at the bottom of the text file to what ever you want your NPC to say.
12] Go back to the .txt file from your server files and where it says "Number of the Line for strings go here" replace that with the line number of your speech from the .txt file in the client files.
(So my string is on line 8 so I have to insert that number where "Number of the Line for strings go here" is.)
IF YOUR SPEECH USES UP TO LINES YOU HAVE TO PUT BOTH NUMBERS OF THE LINE IN SEPARATED BY A COMMA. Ex. "8,9"
----
NOW SAVE EVERYTHING YOU EDITED AND CLOSE EVERYTHING SO YOUR BACK TO YOUR DESKTOP.
----
[FINAL STEP] To change what your NPC will look like locate "res/characters" and then choose what character you want and then put the number where it says "NPC Sprite number goes here"
START UP YOUR SERVER AND THEN YOU SHOULD HAVE YOUR NEW NPC!!!