Jump to content

[Guide] How To Make your Own Npc


Recommended Posts

You must follow my step to success if u have problem tell me

I will make my custom gatekeeper for example:>

1. Go to your L2j Database

2. Go to your NPC Table

3. Search and find one npc that you like his template

 

4. After that make a text file and put this :

 

INSERT INTO `npc` (`id`, `name`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `str`, `con`, `dex`, `int`, `wit`, `men`, `exp`, `sp`, `patk`, `pdef`, `matk`, `mdef`, `atkspd`, `aggro`, `matkspd`, `rhand`, `lhand`, `armor`, `walkspd`, `runspd`, `faction_id`, `faction_range`, `isUndead`) VALUES (put an id that not exist, 'put npc name', 'put npc class for example GK : NPC.a_teleporter_FHuman', 10, 24, 70, 'male or female', 'his type for example GK: L2Teleporter', 40, 3862, 1494, 40, 43, 30, 21, 20, 10, 5879, 590, 1444, 514, 760, 381, 253, 0, 253, 0, 0, 0, 80, 120, NULL, NULL, 0);

5. Then execute from navicat the text

6. Now go C:/yourserver/gameserver/data/html/thetypethatuputontext for example L2Teleporter (so file Teleporter) and there make a html file

7. Rename the file to the Id of ur npc for example 4444.html

 

8. Now open and make anything u want for example if u want a gk that go only frinteza type this (u must open in as text not html):

<html>

<body>

<center><tr><td><font color="FF40FF">-= Chose Your npc Name =-</font></tr></td><br>

 <tr><td><font color="FF0066">______________________________</font></tr></td><br>

<tr><td><font color="FF40FF">Chose Your npc Name</font></tr></td><br>

<tr><td>Welcome, Traveler you can go Frintezza</tr></td><br>

<tr><td>for 10.000 adena.</tr></td>

<br>

<tr><td><a action="bypass -h npc_%objectId%_Chat 30"><font color="8000C0">Frintezza room</font></a></tr>

<br>

 

<tr><td><font color="FF0066">______________________________</font></tr></td>

</body>

</html>

9. Now u have only to create a file that it have the id and the npc_%objectId%_Chat that u put and make in C:/yourserver/gameserver/data/html/thetypethatuputontext (the green number) for example 4444_30.html and type in this:

<html>

<body>

<center><tr><td><font color="800080">-= Frintezza =-</font></tr></td><br>

 <tr><td><font color="FF0066">______________________________</font></tr></td><br><br>

<tr><td><a action="bypass -h npc_%objectId%_goto 9054" msg="811;Frintezza Room"><font color="FF0000">Frintezza Room</font></a></td></tr>

<tr><td><br></td></tr>

<tr><td><br></td></tr>

 

<tr><td><font color="FF0066">______________________________</font></tr></td><br>

<a action="bypass -h npc_%objectId%_Chat 0"><font color="FFF080">Back</font></a>

</body>

</html>

 

10. Now u have to make a text file with this inside and u put it at C:/yourserver/sql/yourtextname

insert into teleport values

('Frintezza Room , 9054, 174238, -86405 -5109, 10000, 0);

11. Execute in navicat that text to insert the value

 

12. Now u have only to go in ur server and spawn it

 

Credits/Source : http://www.gnx.ro/npc.php

 

 

P.S : Look guyz im sure thats posted but i think this is easy explanation.. and i decided to post it

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone, forum members!!! Our service does not stand still, continuing to expand the price list and quality of services WE HAVE PREPARED A LARGE NUMBER OF ACCOUNTS IN THE WAREHOUSE FOR YOUR WORK ✔N26 + VCC DE - DE IBAN / Sepa Instant / Virtual cards / LDPlayer ✔Payset business - GB IBAN / sort code / account number / €, GBP ✔BBVA + VCC ES - IBAN ES / Visa card / transaction limit 2000€ per day ✔4x4.io EU - Virtual debit cards for GOOGLE, FACEBOOK, TIKTOK ✔Bitmart EU - Buy & Sell Crypto Instantly provider: Moonpay / Banxa / Legend Trading ✔Xapo Bank Business EU - Sort code / IBAN / account number ✔Wittix Business EU - IBAN LT, GB, DK / SEPA / SWIFT ✔Wise business + VCC - IBAN BE + GB + sort code / USD: AN+RN / Virtual cards ✔Brighty app + VCC EU - IBAN FI / Virtual cards / SWIFT / SEPA / Google, Apple pay, PayPal 2,5% ✔Paytend + VCC EU - IBAN LT / LDPlayer / Virtual card ✔PST + VCC EU - Unlimited virtual cards ✔eBay.com new and aged US - 10k$ - 25k$ limits ✔RedotPay + VCC EU - Virtual cards / Crypto / Apple Pay, Google Pay ✔Wise + VCC EU - IBAN BE + GB / Virtual cards (3DS) / VISA AND MANY OTHERS
    • CLExt Captcha System 4.69+      
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Welcome to my store :https://ultrasstore11.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord :@ultrasstore11 Telegram : https://t.me/ultrastore11   Welcome to my store :https://ultrasstore11.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord :@ultrasstore11 Telegram : https://t.me/ultrastore11  
  • Topics

×
×
  • Create New...