Jump to content

Recommended Posts

Posted

[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!

 

  • 1 month later...

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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..