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"

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...