Jump to content

Recommended Posts

Posted

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

  • 4 weeks later...
Posted

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

  • 1 month later...
  • 1 month later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hi, great work! Are there any bugs? And will it work with a high five?
    • For others that would like to understand in more details:   The login server also uses a protocol (sent by the server to the client in the very first packet). For instance, the C4 client (the one I'm developing my emulator for) expects the protocol number `50721` (or `0xc621`) which works as follow (from what I've gathered): Preamble: L2 packets are divided into two parts: size and payload; As mentioned, every packet starts with two bytes containing the whole packet size (thus including those two bytes, e.g. a packet of size 15 will have the number `15` written onto its first two bytes and a following payload of 13 bytes); For login server, first byte of the payload is the opcode (game server must deal with variable-sized opcodes); Next bytes are the packet content; Before sending the packet, its buffer size (minus the initial two bytes) is padded to 8 bytes (required by upcoming Blowfish encoding); A checksum of the packet is appended at the end, then the payload is again padded to 8 bytes; If the opcode is not `0` (also written as `0x00`), then the payload is encoded by Blowfish; Packet is sent over the network. You can have a look at my implementation (in C++) here (do note I'm assuming little-endian).   In this protocol, the auth packet (`0x00`) sent back by the client is RSA encrypted using the RSA modulus sent in the first server packet, inserted right after the protocol number.  
    • Hello guys I wanna buy some  Lessons for an L2J Developer
    • Let me give you something for inspiration and get you addicted to bot AI     And a siege 😛     What I have notice helps a lot the LLM to act real, is to give it a real-persons background. So for each LLM in the context beggining, besides the L2 facts, give it a real-life back story "You are a 67 years old retired nurse who plays Lineage 2 while her husband reads his newspaper, you are calm, collected but get mad if insulted". But that makes for a creative bot but its repetitive. So what you can also do, is pick random 20 news sites and for each bot every 2-3 days, initialize a context that is affected by the "news" the bot reads in the "real world".  So for example there's Iran - US war ok ? You take the news, put it in an LLM and ask it, extract the "abstract feelings" that this news piece invokes into you without mentioning anything related to the news. Then you take the result and inject it to the bots LLM prompt after its backstory.  This leads to some VERY human-like behavior from bots. 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..