Jump to content

Recommended Posts

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock