Jump to content

[Share][Guide] L2J Πώς Να Κάνετε Τα Δικά σας npc


Recommended Posts

Πρόσεξα οτι πάρα πολλά άτομα έχουν πρόβλημα στο πως να φτιάξουν Custom ή Multisell NPC's.

Με το παρακάτω Guide ελπίζω να βοηθήσω.

 

 

1)Πώς Να Κανετε GM-Shop!

Θα σας δείξω τον απλό τρόπο με τον οποίο μπορείς να κάνεις ένα GM-Shop!

Τι θα χρειαστούμε?

*.htm Files (Ανάλογα με τα actions που θα έχει το shop τόσα περίπου files)

*.xml Files (Επίσης Ανάλογα με τα actions που θα έχει το shop τόσα files)

*.sql File (To file αυτό θα μας χρειαστεί για να περάσουμε το shop στην database μας)

 

Ας ξεκινήσουμε λοιπόν!

Ανοίξτε το σημειωματάριο(notepad)

Εδώ πρέπει να γνωρίζετε και λίγο ΗΤΜL(ΗyperText Markup Language)

Θα σας πω τα βασικά τα οποία πρέπει να γνωρίζετε!

 

<html>(άνοιγμα εισόδου γλώσσας HTML)

<body>(άνοιγμα κειμένου γλώσσας HTML)

<title>(δίνει τίτλο στο παράθυρο)

<br>(κενό γραμμής,στο απλό γράψιμο είναι το enter για να καταλάβετε)

<center>(εστίαση στο κέντρο)

<left>(εστίαση στα αριστερά)

<right>(εστίαση στα δεξιά)

<font color="εδώ το code του HTML Color">text</font>(χρωματισμός κειμένου,κάντε click εδώ για τα color code)

 

Να διευκρινήσω κάποια πράγματα.

Θα πρέπει πάντοτε να κλείνετε το command που ανοίγετε.

Τι εννοώ?

π.χ. Βάζετε <center>εδώ το κείμενο σας,και πρέπει πάντα να το κλεινετε,δηλαδή

<center>το κείμενο σας</center>

Πάμε λοιπόν

Θα σας κάνω ένα mini text και θα πάρετε παράδειγμα!

<html>

<body>

<title>Maxcheaters.com</title>

<center><font color="FF0000">Welcome To Maxcheaters.com Community

<br>

Here You Can Buy The Custom Armor!

εδώ πρέπει να βάλουμε το action

 

 <button value="Εδώ το text που θέλετε" action="bypass -h npc_%objectId%_multisell 50001" width=196 height=22 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"> 

 

</center>

</body>

</html>

Αποθήκευση ως και το απο8ηκεύετε ως ένα *.htm αρχείο.

Από την στιγμή που βάλαμε path με multisell 50001

Πρέπει να δημιουργήσουμε την λίστα με τα items που 8α δίνουμε στον player

Θα σας δώσω το code που πρέπει να έχετε για να πέρνει ο Player Item!

 

Διευκρηνίσεις!

Ingredient ID = εδώ βάζετε το ID του item που θα χρειάζεται ο player για να πάρει το item!

Ingredient Count = πόσα από αυτά πρέπει να έχει ο Player για να πάρει το item!

Production ID = το ID του item που θα πάρει ο Player!

Production Count = πόσα από αυτά τα items θα πάρει ο Player!

ΠΡΟΣΟΧΗ!

Αν θέλετε να βάλετε και άλλα items πρέπει να αλλάξετε

το Item ID.

Δεν Πρέπει να είναι ίδιο πουθενά στο περιεχόμενο ενώς *.xml File

 

Last Step:

Eδώ είμαστε στο τελευταίο βήμα και το ευκολότερο!

Να κάνουμε το *.sql File!

Θα σας Δώσω το code και εσείς απλά πρέπει να addarete μερικά ids

 

INSERT INTO custom_npc
  (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `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`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`, `drop_herbs`)
VALUES
  (ID NPC, Template ID, 'Name', 1, 'Title', 1, 'LineageMonster4.Keyache_tr', 12.00, 29.00, 70, 'female', 'L2Merchant', 40, 3862, 1493, 11.85, 2.78, 40, 43, 30, 21, 20, 10, 0, 0, 1314, 470, 780, 382, 278, 0, 333, 0, 0, 0, 55, 132, 'NULL', 0, 1, 0, 'LAST_HIT', 0, 0, 0, 'fighter', 'false');

 

Πρέπει να βάλετε μόνο 4α πράγματα

ID NPC

Template ID

Name

Title!

Αυτό Ήταν!

το *.htm file μπαίνει στο c:/myserver/gameserver/data/html/merchant/

το *.xml στο c:/myserver/gameserver/data/multisell/

το *.sql το κάνετε execute από το Navicat!

 

 

2)Πώς να κάνετε Gatekeeper

Πιο πάνω σας έδειξα μερικά πράγματα για HTML

χρησιμοποιήστε και εδώ τα ίδια.Aνοίξτε σημειωματάριο και κάντε πάλι τα ίδια

Πρέπει να βάλουμε το path?

Οhh Yeah!

 

<a action="bypass -h npc_%objectId%_goto Εδώ θα βάλετε το ID του Teleport" msg="811;εδώ το όνομα του Teleport"> Εδώ τι θα λέει στον player οταν πηγαίνει στην Gatekeeper</a>

 

Aπό την στιγμή που βάλαμε στο path ΙDs πρέπει να τα περάσουμε και στην Database μας!

Πώς?

Αυτή είναι η λειτουργεία του *.sql file!

Πάμε λοιπόν

 

INSERT INTO `teleport` VALUES
('Name', ID, loc_x, loc_y, loc_z, price, 0)

 

Αυτό είναι το *.sql path!

Πώς θα βρείτε το loc_x, loc_y, loc_z ?

Easy! Πηγαίνετε στο μέρος που θέλετε και πατήστε /loc

εκεί θα σας βγάλει το όνομα της περιοχής και δίπλα κάτι αριθμούς.

Είναι το loc_x το loc_y και το loc_z καταγράψτε τους αριθμούς κάπου για να τους θυμάστε

Στην θέση name θα βάλετε το όνομα του Teleport που θέλετε να βάλετε

Στην θέση ID θα βάλετε έναν αριθμό τον οποίο πρέπει να θυμάστε

Στην θέση loc_x, loc_y, loc_z τους αριθμούς που καταγράψατε!

ΠΡΟΣΟΧΗ!

Δεν έχει σημασία αν στο *.sql file η θέση name είναι διαφορετική από το όνομα του Teleport στο Path Μας!

Δηλαδή Εδώ

 

msg="811;εδώ το όνομα του Teleport

 

Το όνομα που θα βάλετε εδώ θα σας το δείχνει μέσα στο Game οταν είναι να επικυρώσετε το Teleport Σας!

π.χ. Αre You Sure To Want to Teleport At και εδώ θα έχει το όνομα που βάλατε στο path!

Πάμε Τώρα στο άλλο *.sql file.

Αν θέλετε απλά να βάλετε ένα Teleport στην Gatekeeper που έχετε δεν θα χρειαστεί να κάνετε αυτό το βήμα!

 

INSERT INTO custom_npc
  (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `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`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`, `drop_herbs`)
VALUES
  (ID NPC, Template ID, 'Name', 1, 'Title', 1, 'LineageMonster4.Keyache_tr', 12.00, 29.00, 70, 'female', 'L2Teleport', 40, 3862, 1493, 11.85, 2.78, 40, 43, 30, 21, 20, 10, 0, 0, 1314, 470, 780, 382, 278, 0, 333, 0, 0, 0, 55, 132, 'NULL', 0, 1, 0, 'LAST_HIT', 0, 0, 0, 'fighter', 'false');

 

Βάζετε τα ID name κ.λπ. και κάνετε Execute!

 

Το ΗΤΜL File μπαίνει στο c:/myserver/gameserver/data/html/teleport

Tα *.sql τα κάνετε execute με Navicat!

 

Credits go to : Catalyst21 απο την σελίδα Online-games.gr

 

Link to comment
Share on other sites

  • 1 month later...

Καλό αναλυτικό αλλά και καμιά εικόνα θα βοηθούσε!

Αν θες να το κάνεις καλύτερο από τον πρώτο που το έβαλε στο online-games.gr συμπλήρωσε με εικόνες.

Link to comment
Share on other sites

  • 3 months later...

oreos file mpravo sou poli kalo ke analitiko gia ta <.htm> ke <.sql> file's..... apla anaferis ke gia to <.xml> file's, mipos to ksexases ???

pantos poli kalos alo ena mpravo.....

Link to comment
Share on other sites

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

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.



  • Posts

    • Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.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 Whatsapp ; +212614849119 Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.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 Whatsapp ; +212614849119
    • The heavy lifting is done in the client, because while you can get away with small imperfections in the java, everything in the client must be impecable. So, if you haven't touched the client, I'd say pick the newest protocol version you can find the client editing tools and Interface.u (mandatory) / NWindow.dll (better to have it) / Engine.dll (optional) sources for. At the very least, you need the Interface.u to fix the Clan Window and enable skill enchanting on Classic/Essence versions, if you decide to use one of them instead of MAIN/LIVE.
    • Thanks for clarification. Do you think the newest clients offer solid advantages compared to the classic ones like Salvation? I'm also in the process of porting h5 to one of them just for the sake of it, so I was wondering if I should just attempt to go to the newest possible.
    • Upgrading to Salvation is exactly the same as upgrading to the newest client with the only difference being access to free-shared client editing tools and resources. I am speaking from experience. I have upgraded my HF source to one of the newest clients by myself (in terms of server side. got help with the client) and hit every single wall there was in the process. Now, I already have several multi-protocool server cores so I can easily compare different approaches to tackling the same issue, which also helped the learning process. Best way to learn would be to use this one (link below) to snoop around and figure out what has been changed in the server side (the packet structure will be different, for sure, but works for understanding/figuring the process out in general terms). https://github.com/iBezneR/L2J_SunriseProject_Purity The client side will always be the same, always the same files, only the DAT structure will be different. I personally wrote myself some parsers for the data of the DAT files from OLD -> NEW client.
  • Topics

×
×
  • Create New...