Jump to content

Recommended Posts

Posted

Λοιπών σήμερα θα κάνω ένα αναλυτικό Guide για το πως θα φτιάξετε έναν δικό σας Npc/Trader.

 

Αρχίζουμε :

Βήμα: 1 (Βρήτε το ID Template)

 

Αρχικά πρέπει να διαλέξουμε πως ο Npc μας θα μοιάζει.... ( ID Template )

 

Αν δεν έχουμε επιλέξει ακόμα πως θα μοιάζει ο Npc μας:

  • μπαίνουμε l2.
  • Βρίσκουμε ένα ωραίο mob ή Npc που μας αρέσει.
  • πατάμε Shilf+1klik πάνω του...
  • και συμιώνουμε το NPC ID του κάπου (ώστε να το θυμόμαστε)

 

Κάπως έτσι:

 

88174817.jpg

 

 

Βήμα: 2 (Δημιουργήστε το NPC σας)

 

Αρχικά:

  • Ανοίγουμε το Navicat
  • Ανοίγουμε το table με όνομα 'npc'
  • Πατάμε Control + F ταυτόχρονα (για να μας βγάλει το search)
  • Πληκτρολογούμε το ID του Mob/Npc που επιλέξαμε (μέσα στο search)...71018516.jpg
  • Και βρίσκουμε την γραμη που περιέχει όλα τα στοιχία του mob ή Npc που διαλέξαμε...

 

κάπως έτσι:

 

width=1024 height=29http://img820.imageshack.us/img820/9451/38552745.jpg[/img]width=1024 height=37http://img812.imageshack.us/img812/4585/74503266.jpg[/img]

 

Λοιπών εδώ έχουμε 2 επιλογές:

  • Χαλάμε το mob και το κάνουμε npc...(mp@)
  • Κάνουμε νέο Npc...

 

> Πως κάνω ένα νέο NPC?

 

Μπορούμε να περάσουμε έναν νέο NPC με  2 τρόπους:

  • Με SQL αρχείο -->θέλει λίγο παραπάνω γνώσεις...(αν θέλουμε να το δώσουμε σε άλλον σίγουρα το κάνουμε με SQL)
  • Χειροκίνητα --> απλά και εύκολα...

 

>> Xirokinita:

  • Πατάμε το 84217600.jpg που είναι κάτω στο Table του 'npc'
  • θα βγει μια κενή γραμη, εκεί βάζουμε τα στοιχία του νέου Npc.

Τα οποία εξηγώ παρακάτω...

 

>> Me SQL:

  • Κανείς ένα .txt αρχείο

  • Βάζουμε μέσα

INSERT INTO `npc` VALUES (ID, Id Template, "name", 1, "title", 1, "class", 20, 25, 80, "male", "Type", 80, 4609, 2085, 13, 14, 40, 43, 30, 21, 20, 10, 112, 0, 1158, 1972, 574, 1182, 477, 0, 227, 0, 0, 0, 88, 132, "NULL", 0, 1, 0, 'last_hit'); 


    • Κάνουμε edit τα στοιχία του npc μέσα στο .txt file

  • Μετά κάνουμε το File/ "Save As" / name.sql (name ότι θέλουμε)

 

 

>>> Npc settings

  • ID = το ID του Npc μας (θα πρέπει να είναι μοναδικός αριθμός, δηλαδή να μην ξανά υπάρχει)
  • ID Temlpate = Εδώ το ID που έχουμε διαλέξει... (στο παράδειγμα 21392)
  • name/title =  το name και το title που θα έχει ο Npc μας...
  • Class = το Class του mob/npc που έχουμε διαλέξει (στο παράδειγμα "Monster2.ifrit_30_bi")
  • rhand = τί θα κρατάει ο Npc στο δεξί του χέρι (βάζουμε το id του όπλου που θέλουμε)
  • lhand = τί θα κρατάει ο Npc στο αριστερό του χέρι (βάζουμε το id του όπλου που θέλουμε)

 

Type = Πολύ σημαντικό επιδή από αυτή την επιλογή θα διαβάζει το .htm αρχείο :

  • L2Npc = άμα το βάλω L2Npc θα ψάχνει το .htm αρχείο μέσα στο φάκελο (gameserver\data\html\default)
  • L2Merchant = άμα το βάλω L2Merchant θα ψάχνει το .htm αρχείο μέσα στο φάκελο (gameserver\data\html\merchant)
  • L2Teleport = άμα το βάλω L2Teleport θα ψάχνει το .htm αρχείο μέσα στον φάκελο (gameserver\data\html\teleport)

 

PS : Για Gracia+  ισχύει μόνο το L2Merchant για Trader.

 

Βήμα: 3 (Δημιουργήστε το Html σας)

 

 

Αφού φτιάξαμε τον Npc μας, καιρός να του δώσουμε και ζωή... Να φτιάξουμε δηλαδή το .html αρχείο...

 

Μπορείτε εύκολα να φτιάξετε ένα με αυτό εδώ το program : l2j dialog maker   (to link είναι δικό μου άρα δεν θα γίνει ποτέ dead :))

 

Παρόλα αυτά θα σας δώσω ένα έτοιμο html code και τον κάνετε fix όπως εσείς θέλετε:

<html>
<body>
<title>Trader</title>
<br>
<img src="L2UI_CH3.onscrmsg_pattern01_2" width=300 height=32 align=left><br><br>
<center><font color="FF0000">Edw grafete oti eseis 8elete</font></center>
<br>
<center><img src="L2UI_CH3.herotower_deco" width=256 height=32></center>
<br>
<center>
<button value="Edw" action="bypass -h npc_%objectId%_multisell 3000" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">
<br>
<img src="L2UI_CH3.onscrmsg_pattern01_2" width=300 height=32 align=left>
</body>
</html>

 

Το οποίο Html φενετε έτσι...

83633506.jpg

 

> Και κάποιες συμβουλές/εξηγήσεις...

  • Πάντα τα html αρχεία ta αρχίζουμε με <html><body> και τα τελιωνουμε με </html></body>
  • To <br> σημενει αφήνεις μια κενή γραμη...
  • To <title> είναι το title του npc (δεν είναι αναγκαίο να το βάλουμε)
  • Πάντα όταν ανοίγετε έναν code (px <center> ) πάντα να τον  κλίνετε (px </center>)
  • Το <font color="FF0000"> δίνει χρώμα στο text μας.... Εδώ έχετε τα colors : HTML Colors το τελειώνετε με </font>
  • Όταν τελιωνουμε ένα html το κάνουμε "save as" και βάζουμε στο τέλους του ονόματος .htm (px 0000.htm)

 

>> Button Settings

  • <button value="Edw" = Στο "edw" βάζετε τί θα γράφει το κουμπί ....
  • "bypass -h npc_%objectId%_multisell 3000" = αυτό οδηγεί το κουμπί μόλις το πατήσετε... px εδώ το στέλνει στον φάκελο multisell και στο αρχείο 3000.xml

 

Για να φτιάξετε έναν trader, πρέπει να οδηγήσετε όλα τα <buttons στα αντίστοιχα multisell (τα multisells είναι στο τέταρτο Βήμα)

 

Αφού φτιάξετε το Html σας το κάνετε "Save As" ID.htm (το ID είναι το ID του Npc σας)  και το τοποθετίτε μέσα στο φάκελο default ή merchant (εξαρτάτε από το Type που βάλατε στο navicat)

 

Βήμα: 4 (Δημιουργήστε τα multisells σας)

 

Τα .xml αρχεία είναι ποιο εύκολα στην δημιουργία τους από τα .html

 

Πληροφορίες:

Πάντα το .xml αρχείο αρχίζει με <list> και τελιώνει με </list>

 

Edw sas dinw ena aplo xml:

 

<list>                         Έτσι αρχίζει πάντα!!

<item id='0'>            Έτσι ανοίγετε items και βάζω μέσα ότι θέλω... δηλαδή όσα productions και ingredient θέλετε... το 'ID = 0' πρέπει να είναι μοναδικό μέσα στο multisell

<production id='3470' count='1'/>     Εδώ είναι τί item θα παίρνετε και πόσες φορές (ID του item είναι '3470' και το πόσες φορές count='1') (1gb = 1kkk)

<ingredient id='57' count='1000000000'/>   Εδώ το item που θα δίνετε για να πάρετε το από πάνω item

</item>                           Εδώ κλιδώνει το item

</list>                            Έτσι τελιώνει πάντα το κάθε multisell

 

 

Το συγκεκριμένο .xml φενετε έτσι:

 

91367664.jpg

 

 

Μπορείτε να βάλετε όσα "production" και "ingredient" θέλετε εσείς

 

όπως εδώ:

 

<list>

<item id='0'>

<ingredient id='20009' count='45000'/>

<production id='9451' count='1'/>

<production id='9450' count='1'/>

<production id='9452' count='1'/>

<production id='9453' count='1'/>

</item>

 

Το οποίο φενετε έτσι :

77687717.jpg

 

 

Μόλις τελιωσετε το .xml αρχείο τότε το κάνετε  File/ "Save as" / name.xml και  το μετονομάζουμε με τον αριθμό που βάλατε παραπάνω στο html....(px: 3000.xml) και το τοποθετίτε μέσα στο gameserver σας : gameserver\data\multisell

 

Πως Φτιάχνουμε ότι ίδους αρχείο θέλουμε??

 

Αρχικά  κάνουμε δεξί klik>Δημιουργεία>Νέο έγγραφο κειμένου.txt File

 

Γράφουμε ότι θέλουμε μέσα... και το κάνουμε "Save As" εκεί που γράφουμε το όνομα προστετούμε .Τύπος αρχιου στο τέλος

 

Δηλαδή θες να φτιάξεις .htm γράφεις:  Νέο έγγραφο κειμένου.htm

Αν θες .xml γράφεις: Νέο έγγραφο κειμένου.xml klp

 

 

Ελπίζω να σας άρεσε....

 

Ακούω comments... :)

 

Credits: Me

Posted

polu kalo ta e3igeis telia kai analitika mpravo sou!

 

ok +1 karma apo emena den 3erw an einai katalilo an kai pisteuw pos to a3izei!

Posted

polu kalo ta e3igeis telia kai analitika mpravo sou!

 

ok +1 karma apo emena den 3erw an einai katalilo an kai pisteuw pos to a3izei!

Tnx gia to +1 karma.. prospa8isa na kanw oti kalitero kai pio katanoito... Elpizw na to petixa :P

Posted

polu kalo ta e3igeis telia kai analitika mpravo sou!

 

ok +1 karma apo emena den 3erw an einai katalilo an kai pisteuw pos to a3izei!

poli kalo guide gia tous newbie !! thx ! me prolave alos gai to karma :P

Ποιός ο λόγος να δώσετε karma για ένα topic Που έχει ξαναγείνει άπηρες φορές?

Posted

Ποιός ο λόγος να δώσετε karma για ένα topic Που έχει ξαναγείνει άπηρες φορές?

karma pernei panta to kalitero kane mia sigkrish me ta alla post

Posted

teleio guide kai poli analutiko 8a voi8isi newbies sigoura...

tnx paidia gia ta kala sas logia....

 

@`Willowy^ den katalabenw ton logo na min parw karma... :S

Posted

Polu kalos.

Voh8hses pollous me auto to guide.

Gratz.

Tnx, autos itan o skopos m na help oso to dinaton perisotera atoma...

 

To 3erw exoun ginei polla tetia alla panta einai kalitera ena akoma....

kai pistebw pws eiani analitiko... :D

Posted

Gzz kr1n0s* Poli wraio to guide sou kai analutikota to sunexise thn kalh douleia pou kaneis etsi wste na exoume wraia kai kalogramena post sto greek section !!!! Gzz kai pali ;)

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

    • I can see that the admins arent taking any action, yet they still seem willing to share information about various other people names and IP addresses. But when it comes to scams, no one reacts.      
    • Server Info Chronicle:  Interlude                                                                                                                                    XP: 100x | SP: 100x | Drop: 50x | Adena: 75x Enchant: Safe +3 |  Max +21 Website: Website Link Discord: Discord Link   WHY? When I was a teenager I had this idea. Build my own Lineage 2 server. My own rules. My own world. I wasn't a programmer. I had no idea how any of it worked. I tried, hit a wall, and quit. But the idea never left. I came back years later. Got further. Quit again. Watched friends try similar things. The idea stayed stuck in my head for fifteen years. I'm a developer now. I finally finished it. Not because I suddenly had more time - I have a full-time job and real responsibilities. An hour before bed if I'm lucky. That's actually exactly why I finished it.   The problem I kept running into I still love this game. But every server I tried as an adult made that one hour feel worthless. Log in, kill a few mobs, make no real progress, log out frustrated. The game was designed for someone with unlimited time. That person doesn't exist in my life anymore. I looked around. Everyone I used to play with has the same problem. Same love for the game. Same lack of time. Jobs, families, maybe an hour late at night. So I stopped waiting for someone else to build it.           WHAT? Custom starting zone in Gludin (up until 2nd profession start) Talent system - rebirth at level 80 and choose your talents Bounty hunter system - daily tasks to kill random monsters to receive great reward! Potion crafting system - custom HP/MP potions and recipes Custom 1st & 2nd class quests (shorter) Scheme buffer Shop until C grade   Visit our website to get more info: Website Link   The philosophy 95% of the game is completely soloable. No clan required. No raid schedules. No guilt when you have to log off. You are the solo director of your own session. Log in, pursue your goal for an hour, log out on your own terms. When you've conquered what you wanted - you stop naturally. A new season drops with fresh Talent Tree changes and you come back to build something completely different. No endless stretched grind. No pay-to-win. No shady admin decisions. No surprise wipes. I'm one developer who built this because I love it.                                          This is the server I needed fifteen years ago. Glad I finally had the skills to build it. Come see what I made. [Forever Lineage]
    • Hello MaxCheaters community! We’ve all been there: you spend months customizing your NPCs, balancing classes, and setting up the perfect farm zones. You launch your server, the hype is real, and suddenly you hit 200 players—and the "delay" starts. The mobs stop reacting, the Olympiad matches stutter, and your players start complaining on Discord. Many "newbie" admins think the solution is just throwing more RAM at the VPS. While hardware matters, Java is a finicky beast. If you don't tune your JVM (Java Virtual Machine) and your core code, you’ll lag even on a NASA supercomputer. Today, I’m sharing a deep dive into optimizing your L2 server for maximum performance. 1. The Myth of "More RAM" The biggest mistake people make is assigning 32GB of RAM to a server that only needs 8GB. In Java, if your Heap size is too large, the "Garbage Collector" (GC) has to work much harder. When the GC runs a "Full GC" cycle on a massive heap, it performs a "Stop-the-World" event. This literally freezes your server threads for 1–3 seconds to clear memory. Recommendation: For a mid-rate server with 500 players, 6GB to 8GB of Xmx (Max Heap) is usually the sweet spot. Use G1GC (Garbage First Garbage Collector) instead of the old ParallelGC. It handles large heaps much more gracefully by breaking memory into regions. 2. JVM Startup Flags (The Secret Sauce) Don't just run java -jar l2jserver.jar. You need specific flags to ensure the CPU prioritizes the right tasks. Try adding these to your start.sh or start.bat: Bash   -Xms6G -Xmx6G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+TieredCompilation MaxGCPauseMillis=50: This tells Java, "Try not to freeze the server for more than 50ms at a time." It makes the gameplay feel much smoother for the end-user. 3. Geodata and Pathfinding Optimization Geodata is the biggest CPU killer in Lineage 2. Every time a mob moves or a player clicks, the server calculates "Can I see this target?" and "Is there a wall in the way?". The Fix: Use a "Pathfinding Cache." If 100 players are running from the Giran Gate to the Luxury Shop, the server shouldn't calculate that path 100 times. Check your Geodata format: Ensure you are using the .l2j or .dat formats optimized for your specific core. If your console is flooded with "Pathfind node limit reached," increase your node limit in the geo.properties file, but be prepared for higher RAM usage. 4. Database Pooling (HikariCP vs. C3P0) If your server freezes for a split second every time someone saves their character or buys an item, your Database Connection Pool is the bottleneck. Most old L2J cores use C3P0, which is outdated and slow. Switch to HikariCP: It is significantly faster and handles "dead" connections much better. Also, ensure your characters and items tables are indexed correctly in MySQL. Running a VACUUM or OPTIMIZE TABLE once a week can prevent those annoying "saving player data" spikes. 5. Network Threading In your server settings, look for "Network" or "Thread" configurations. Usually, you’ll see SelectorThreads and WorkerThreads. Selector Threads: Should be equal to the number of physical CPU cores. Worker Threads: This is where the logic happens (skills, movement). If this is too low, actions will "queue up," creating a delay even if your ping is low. 6. Community Board (BBS) Optimization On MaxCheaters, we love fancy Community Boards. However, if your Buffer or Shop script is poorly coded, it might be reloading the entire HTML from the hard drive every time a player clicks a button. The Fix: Ensure your scripts cache the HTML in the RAM. Reading from an SSD is fast, but reading from RAM is thousands of times faster. Conclusion Optimization isn't a "one-click" fix; it’s about finding the balance between your hardware and your software. Start with your JVM flags, clean up your Geodata settings, and make sure your Database isn't choking on old logs. If you found this helpful, leave a comment or a "Thank You" below! If you have specific lag issues with a certain core (aCis, L2Emu, etc.), post your server.properties and I’ll try to help you tune it.
    • Hello all, we are a small team of developers working on two servers right now. One of them is Interlude and the other Gracia Final. Both will be pride-like aiming to make the servers similar to old pride's chronicles, C6 and GF respectively. For those not familiar here's some quick info:  9300x XP / 5500x Adena 1x Drop / 1x Spoil Safe Enchant +3 Start at Level 80 Custom PvP Zones & Reward System  Reworked Buffer Classes Wondrous Cubic All-in-one Panel  For more information visit our discord: https://discord.com/invite/YmCa7kbMuG
    • Up! Can make c4 project too retail x1 if someone is interested
  • 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..