Skip to content

[GUIDE]How To Add A simple Text On NPC

Featured Replies

Step 1)

Find an NPC that you like and you want your NPC to look like, i chosed an "Golden Pig" - ID = 13035. I always just take the easy way and go to DataBase and then just find a strange name and try it out. You need to take the "idTemplate" - that is the look of the NPC. You also need to take the "class" from it. In this case it is "NPC2.E_pig_ball" you also need the "type" "L2Merchant"

 

Step 2)

Now make a new row in the NPC table at database. Type in the ID you want. Eg. "99999" And then at "idTemplate" put in our Golden pig idTemplate (13035) + our "class" id "NPC2.E_pig_ball". I allways type in "L2Merchant" at "type" - because then you can keep all the NPC files at one folder "html/merchant" but thats just me. Anyway.

Now just fill out the rest of the rows as it is in the golden pig row. Change the title and such things to what you want.

 

Step 3)

Ok now the Database part is done. Go to your "data/html/merchant" folder. make a new HTML file named the id as we said above "99999". In the HTML file put in this text:

 

<html><body>

<table width=200>

<tr><td><center>Welcome to my server</center></td></tr>

</table>

</body></html>

 

Save it as a ".htm" file.

 

Step 4)

Now you are actuly done. Start server and go ingame and type: //spawn 99999

And wupti you have a golden pig with that text :) If you want a GM shop its almost that, then you just need to add an ".xml"

 

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.