Jump to content

Recommended Posts

Posted

Πρόσεξα οτι πάρα πολλά άτομα έχουν πρόβλημα στο πως να φτιάξουν 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

 

  • 1 month later...
Posted

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

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

  • 3 months later...
Posted

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

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

    • I was doing fixes long time ago before he rips me off , for him pixels matter more  
    • What is the reason for this new behavior where people criticize other users' posts? Do they think people are naive? Here everyone understands and everyone knows who's who. Focus on your work and be happy!    Lately, all they do is criticize anyone who posts anything; it's pure spam. Are they just looking for fame?  
    • Of course, bro So he writes to the admin: “Remove reactions because Skylord talks too much and says things that will make me lose clients.” And boom.. Maxor removes the reactions. Then he says: “Close my topics because too much nonsense is being written on my server.” And boom... the topics get closed. Bro, what century are we living in? People are not stupid. Just think for a second. Of course I won’t be able to fix anything like this. But at the same time, everyone here acts like they’re so great. They write their projects here, selling things for $5k–$10k  but in reality these fools just can’t find clients, so they spam nonsense and pretend they’re some huge professionals selling “super professional” files. From this point on, I can confirm that I will no longer be writing comments, replying to topics, or saying anything about anyone here. Honestly, I no longer care about the people on this forum who are trying to sell things, make a quick $100, and pretend to be something they are not. Many of these so-called “projects” and “official files” turn out to be fake, copied, or misleading. And let’s be honest this is not something new. There have been situations in the past where people asked me for help, copied things from my test servers, took my scripts or folders, and then tried to present them as their own official work. This kind of behavior should be visible to everyone. I am addressing the administration of this forum directly: these things should not be hidden. You should not be deleting posts, closing topics, removing replies, or covering up the truth just because someone is exposing what is actually happening. What kind of community are you building if the truth is constantly being hidden? For years, posts have been removed, topics have been closed, and replies have disappeared just because people said something uncomfortable. That is honestly sad. This is my final message. I no longer care what happens with this forum. Ban me if you want, remove my posts if you want, do whatever you want. I am done here.   I said what I had to say. @Maxtor    
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • 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..