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.

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.



  • Posts

    • Good day everybody.   A credible team that SGuard represents is looking for a java developer.    The position is full time only i.e. your time is mostly dedicated within the team and team tasks.  All necessary tools are provided.  The team is consistent with > 6 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense knowledge is needed.  Experience with l2r/l2p/l2s (not l2j or mobius) type of servers. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard however strong java codding skill is necessary for the position.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You have to have either a public name that can be checked out or a strong reference from credible sources. You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   If you think you're a good fit. Please contact me at:   skype: live:sguard.soft telegram: https://t.me/tech_support_s2    
    • SCAMMER Please do not get scammed! His Sellix Feedback is fake, his store opening date is manipulated by scripts. Daniele, the developer of Sellix confirmed this before suspending his account. You will receive a rar file with a doc that contains some random email and password and it won’t work. He won’t respond to your tickets either. I lost $120
    • Lineage II Interlude: Ember x3 The server offers a retail atmosphere with NPC buffs, low rates, and a bug-free environment. The auto-hunt feature transforms your game adventure by allowing you to easily accomplish challenges while managing the demands of a busy life.   Server Status: Online [Closed Beta Test] Official Opening: TBD Website: l2ember.online Community: Discord Channel   Key Features Our network infrastructure can support up to 5,000 simultaneous connections without compromising the quality of gameplay. The augmentation system follows the guidelines of the official server. Geodata operates smoothly and without issues. The game's data, which includes monster spawns, loot availability, and player skills, is working correctly. We are actively working on official-like quests and refining the game. Our AI is adequate and corresponds to the PTS server. Sieges are similar to the official server, without any lag or glitches. The Olympiad is fully functional and may be customized to the preferences of the players.   Rates EXP/SP (Regular Monsters): x3 EXP/SP (Raid Bosses): x2 EXP/SP (Quest): x1 Items Drop Rate: x2 Items Drop Rate (Raid Bosses): x2 Items Drop Rate (Quest): x2 Quest Items Reward Rate: x1 Quest Adena Reward Rate: x1 Adena Drop Rate: x2 Seal Stones Drop Rate: x2 Spoil Drop Rate: x2
    • I come here to show some of my work for any L2j version.   Base project for the work: L2jAcis 401   I will constantly update when I create more demonstration videos.   SellBuff System ( Online And Offline Mode ) : 50€  Payments: PayPal / Binance Videos:      NOTE: If I have broken any rules, please send me a PM.  
    • Are there any servers or customers using this at the moment? I'm interested but $300 is a lot (which I know that L2 related stuff is expensive anyway) so I'd like to test and experience the interface before making a decision
  • Topics

×
×
  • Create New...