Jump to content

{Guide}Make your own Npc


Recommended Posts

Gia na kanis to diko sou npc prepi na kseris ta basika (how to make htmls and other thinks...)

Prepi na akolouthisis ta bimata mou gia na to kanis Ena exis problem pes mou .

Tha kano tin dikia mou custom gatekeeper gia paradigma:

 

1.Pane L2j Database

 

2. PAne sto diko sou NPC Table

 

3. Psakse ke bres to  npc pou thes

 

4. MEta kane ena  text file ke bale afta :

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. Tora pane sto C:/yourserver/gameserver/data/html/thetypethatuputontext for example L2Teleporter (so file Teleporter) ke eki kane ena  a html file

 

7. Metonomase to arxio  sto  Id apo to npc. gia paradigma 4444.html

 

8. Tora anikse ke kane  otidipote thes  gia paradigma ama thes mia npc na pigeni  mono ston fritezza ke grapse afto tha to aniksis omos os text oxi os html:

<html>

<body>

<center><tr><td><font color="FF40FF">-= Bale to Npc Name =-</font></tr></td><br>

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

<tr><td><font color="FF40FF">Bale to 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. Tora exis na kanis ena text pou tha exi ena  id ke to npc_%objectId%_To kimeno tou sto  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. Ke kane alo ena text dipla tou ne balto sto C:/yourserver/sql/yourtextname

Quote:bale tis sintetagmenes tou teleport

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

 

 

 

 

11. Tora to mono pou exis na kanis ine na to kanis spawn sto server:)

 

Many thanks to the [Dev Team]Zeus and [Dev Team]Angle and [Dev Team]Zodiac

Link to comment
Share on other sites

  • 4 weeks later...

Gia na kanis to diko sou npc prepi na kseris ta basika (how to make htmls and other thinks...)

Prepi na akolouthisis ta bimata mou gia na to kanis Ena exis problem pes mou .

Tha kano tin dikia mou custom gatekeeper gia paradigma:

 

1.Pane L2j Database

 

2. PAne sto diko sou NPC Table

 

3. Psakse ke bres to  npc pou thes

 

4. MEta kane ena  text file ke bale afta :

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. Tora pane sto C:/yourserver/gameserver/data/html/thetypethatuputontext for example L2Teleporter (so file Teleporter) ke eki kane ena  a html file

 

7. Metonomase to arxio  sto  Id apo to npc. gia paradigma 4444.html

 

8. Tora anikse ke kane  otidipote thes  gia paradigma ama thes mia npc na pigeni  mono ston fritezza ke grapse afto tha to aniksis omos os text oxi os html:

<html>

<body>

<center><tr><td><font color="FF40FF">-= Bale to Npc Name =-</font></tr></td><br>

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

<tr><td><font color="FF40FF">Bale to 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. Tora exis na kanis ena text pou tha exi ena  id ke to npc_%objectId%_To kimeno tou sto  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. Ke kane alo ena text dipla tou ne balto sto C:/yourserver/sql/yourtextname

Quote:bale tis sintetagmenes tou teleport

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

 

 

 

 

11. Tora to mono pou exis na kanis ine na to kanis spawn sto server:)

 

Many thanks to the [Dev Team]Zeus and [Dev Team]Angle and [Dev Team]Zodiac

 

Eleos estw pes swsta to name M ti dev team angle :S

Nice Guide alla to ekanes se lathos section apoti blepw :D btw matheneis :P

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 3 weeks 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.

×
×
  • Create New...