Jump to content

[Guide]Make your Own Npc


Recommended Posts

To make ur own npc u must know the basics (how to make htmls and other thinks...)

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

That's all plz tell me if I do something wrong because I am not too good :D

[glow=red,2,300]POST EDIT SORRY FOR BEING LEECHER :([/glow]

 

credits to h3xX

Link to comment
Share on other sites

Nice work again :)

but this guide its for non quest npc's

for quest npc's need and java script but GZ @slayerg1

yeah you need an java script sorry for forgoten it :(

Link to comment
Share on other sites

I am sorry to tell u that..but u stole h3Xx's work !Even the title is stolen!

U should give credits..now some1 has to remove this +1

And u stole his work from here...

 

http://forum.ragezone.com/f324/guide-make-your-own-npc-237194/

Link to comment
Share on other sites

Slayerg1, alright what's the fucking problem? Can't you just give simple credit?

I hate leechers.

very nice.. +1 from me

Slayerg1 gets a -1 from me so as to make it neutral.
Link to comment
Share on other sites

yes -1  but not -2 i had +1 karma and i now have -1 ......

U got -1 because u were 0 and then atp made ur karma +1 (he didn't know that it wasn't ur work) so from 0 (if we remove atp's mistake) u go to -1.I hope that i helped u to understand..Anyway it is just a number,but it was reduced because u didn't give any credits !

very nice.. +1 from me

Link to comment
Share on other sites

1st check the 1 post 2nd omg maths 0 right???

 

i had 1 from atp's. -1 for this topic goes -1 ??? or 0 ????

 

EDIT: OMG! ANOTHER -1 ???? REASON LOL I HAD +1  you take me -1 GOES TO 0 NOT to -2 !!

 

EDIT2 : ANOTHER -1 KARMA GOES TO -3 NO COMMENTS . . . . . . . . . . .

Link to comment
Share on other sites

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock