Skip to content

[Guide]How to make NPC? (with links)

Featured Replies

[move]Welcome[/move]

 

First step : HTML:

 

Default codes:

<html>open/close the HTML</html>
<title>The title of the chat</title>
<body>open/close the Body (write place)<body>
<font color="00ff00">open/close text coloring</html>
<br> break the line
<table>open/close table</table>
<tr>vertical tables</tr>
<td>horizontal tables</td>

 

def. HTML:

<html>
<title>The Title</title>
<body>
blah blah blah blah (the text)<br>
blah blah blah blah <br>
</body>
</html>

 

Table useing:

<table>
<tr>
 <td>text1 text1 text1</td>
</tr>
<tr>
 <td>text2 text2 text2
</tr>
</table>

 

looks like:

text1 text1 text1

text2 text2 text2

 

Second step: Making of the SQL

 

Make a sql file and write this into the file.

INSERT INTO `1.` VALUES ('2.', '3.', '4.', '5.', '6.', '7', 'LineageMonster4.eyeless', '8.', '9.', '70', 'male', '10.', '40', '2444', '2444', '0.00', '0.00', '10', '10', '10', '10', '10', '10', '0', '0', '500', '500', '500', '500', '278', '0', '333', '0', '0', null, '60', '60', '', '0', '0', '0', 'LAST_HIT', '0', '0', '0', 'fighter', 'false');

 

1.name of the npc table (default:npc)

2.Id of the NPC

3.Template id

4.Name of the NPC

5.set 1 to enable custom name / set 0 to the npc use the name of the template npc

6.Title of the NPC

7. Set it 1 to enable a title

8-9.Collusion weight/height

10. Type of the NPC (L2Merchant,L2Monster,L2Teleporter..)

 

The others don't need already,so we only copy it.

 

Exemple:

INSERT INTO `npc.` VALUES ('303030.', '1.', 'GMSHOP.', '1.', 'TITLE.', '1', 'LineageMonster4.eyeless', '22.', '32.', '70', 'male', 'L2Merchant.', '40', '2444', '2444', '0.00', '0.00', '10', '10', '10', '10', '10', '10', '0', '0', '500', '500', '500', '500', '278', '0', '333', '0', '0', null, '60', '60', '', '0', '0', '0', 'LAST_HIT', '0', '0', '0', 'fighter', 'false');

 

Third step: Installing:

 

Its so simply.

You need to copy the html file(s) here:

gameserver\data\html\**.**\

 

**.** may:

merchant(shop)

teleporter(gatekeeper)

trainer(blacksmith)

warehouse

default(others)

 

Next is the sql.

Start the MySQL manager and execute it,to your database.

 

 

Last step: Some simply information:

The html's name need to be what the npc's id.

Do not create two npc with one name.

 

[move]

::: other links: :::

 

::: How to make shop with multisell? :::

::: How to make a buffer? :::

::: Some HTML codes :::

[/move]

 

Sorry for bad english . :)

Merry Xmas for MxC users!

 

I Love your share, AntiHero :D. I will give you 1 karma because i know you want :D.

I Know is not something special, but it might be REALLY Useful for a starter.

 

Thank you and MERRY x-Mas.

 

 

  • 1 month later...

cool i need this infos !!!!

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.