Jump to content

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


Recommended Posts

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

 

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

  • 1 month later...

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