Jump to content
  • 0

Learning Java for lineage2.


Question

Posted

So i've been learning the basics of java from a good website http://www.thenewboston.com/?cat=36&pOpen=tutorial . I was wondering if anyone had or knew of some good guides of the basic commands for lineage2 used in java. What I'm having problems with is not knowing what to use for lineage2 if anyone understands what I'm getting at, when I try to make something to test out or whatever I just don't know what code of lineage2 I should be using etc.

8 answers to this question

Recommended Posts

  • 0
Posted

u should search the core files to understand how things work in my opinion search all the pcinstance thingy and all the imports it calls to get a basic idea then start litle by litle to chose ur path let say what u wont to be specialized at ? in AI's ?

instances ? events ? or whatever search the core files of whatever u wana do but u must know good java to do that cuz some things in core are nuff  hard to understand cuz some also use some complex logic  and btw u could also  search the datapack for lots of examples but if u wana make some thing made from brett16 u must learn the logic that l2j uses and that is not the easyest but if u manage to doit then ur on a good path :).

 

 

 

P.S sorry for my english am not da best

  • 0
Posted

I've been learning from looking at other code, but its from things already made lol. Thought maybe someone had a guide out there with the basic logics l2j uses or something.

  • 0
Posted

There is no guides, and things outdate easily with both time and pack differences.

 

There is no specialization to have, java is java, you can touch to all if you understand what you do.

 

Any project is only a suit of methods, than you update, remove or add according to your convenience. The only thing you have to know is what method does what, and uses it in good time. If the method doesn't exists or doesn't do what you want, create a new one or edit it.

 

Many things are already created, just re-use codes.

 

And the whole project is a "howto" tutorial. It's just a matter to "how to search exemples"...

 

Imagine you want to effects all logged players with a random effect (skill or whatever). Just think "what current exemple I have which already do that"... Announcements, for exemple, do that. So go on announcements, analyze it, and you got 1/2 solution.

 

Now you can think "how to add a skill to someone"... Cursed weapons do it, salvation bow too if it has been corrected on your pack. Just search for those, or think more exemples.

 

You can dev on L2J without even have a knowledge on java. It's only a question of imagination and logic.

 

 

 

Tryskell off :P.

  • 0
Posted

Np, the best practices at first times is surely to copy paste codes you find all over MxC, analyze them (aka, know why you copy that here, and what does it do), and do experiences all over with it (change messages, add things and such).

 

Once you understand the principe, try to merge different part of codes to make a single, unificate mod. In the same way, you can begin to ask you "how could I ameliorate it to use less codes/use existing stuff), if it is possible ofc.

 

You will have an overview of main parts of codes && you will work your logic like that. To get others parts, you have to train, and train, and train :). Be original in the mods you take, try to know where is located things like clans, cursed weapons, etc etc.

 

Touch to all. You can't know all in one time.

 

As I said, each pack got his unique "code". To give an exemple, my own IL pack can't use L2J "checkouted" IL skills, as it can't use Freya skills. There are homemade skills, made only for my pack, which won't work "like that" on another pack. I decided to keep some parts of IL and leave some parts of Freya to do a unique combination.

 

Would be pointless to make a wiki about changes. And imagine now if someone base his pack on my own pack, and decide to change something on skills... Documentation will be obsolete after a couple of days.

 

Hope you get the point :). Really often, people deving know the stuff, and don't need javadoc anymore. So when old devs stop, young devs lack of infos. Nothing can be done to correct that, as imrpoving the documentation cut in your developement time. Plus, the pack based problem I related sooner.

 

L2J got the good thing to be pretty logical in both structure&& variables naming. You can often find your paradise simply using the Eclipse's Search tool. You search for freightman stuff, just type "freight", you will find like 200 occurences at maximum. On 1300 files, it finishes to give you only 50 files, so it's pretty accurate if you think of good keywords.

  • 0
Posted

Well, goods tips.

 

I'm a newbie and I really like learning Java to increment my server and help anothers develops. I've reading some tutorials ands tips, but I'm not sure yet to work with Java.

 

My bigger question is, for example if I want to add a quest on my server, how to do that? I'll have to create the htmls (I know), but where to add this game?

 

I'm sorry if this is not the right topic for that question, but as the topic is about learning Java I thought was more appropriate to post here. Because what I really want is to learn Java. And this is the best forum to get help, especially when dealing with Lineage 2.

 

I thank the attention and I apologize again for any error, it was not intentional.

 

PS: Sorry for English, I was too lazy to think and I threw in the Google translator ... (^ ^)

  • 0
Posted

Well, goods tips.

 

I'm a newbie and I really like learning Java to increment my server and help anothers develops. I've reading some tutorials ands tips, but I'm not sure yet to work with Java.

 

My bigger question is, for example if I want to add a quest on my server, how to do that? I'll have to create the htmls (I know), but where to add this game?

 

I'm sorry if this is not the right topic for that question, but as the topic is about learning Java I thought was more appropriate to post here. Because what I really want is to learn Java. And this is the best forum to get help, especially when dealing with Lineage 2.

 

I thank the attention and I apologize again for any error, it was not intentional.

 

PS: Sorry for English, I was too lazy to think and I threw in the Google translator ... (^ ^)

 

Open a new topic, it's another question :P. Quests are datapack side, but the difference comes with chronicle (there are 2 quests engine, IL and postIL).

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 dont sell anything and i got scammed kiddo, if you noticed rookie just scammed me and blocked me. so asking this make you immature.
    • @Maxtor @Dragic @Celestine Why you unban this rat, it's will give very negative review if you will try sell something or provide service this very actually should be for @Dragic and his L2Forge sales.
    • Αχ ναι; τοτε γιατι με παρακαλουσες για κωδικες και οτι σου εδινα ελεγες τελεια και wow σαγαπαω? Ε ψευτρακο; Γιατι οτι πηρες λειτουργει οπως το ηθελες ακομη και σε λεπτομερεια που κανας αλλος θα σου ελεγε αντε κ γα*?   Σε τσουξανε οι τιμουλες μου στη τσεπουλα σου; κ βρηκες κανα new chatgpt dev? Φτωχομπινε του κερατα που κανεις παζαρια για 40-50 ευρω κωδικες.   Δεν ασχολουμε αλλο απλα ενημερωνω @Celestineτο παιδακι χρωσταει λεφτα για κωδικα που ελαβε και λειτουργει και το επιβεβαιωσε και με μπλοκαρε κ ολας. Ban η οχι δεν ασχολουμε αλλο. καλη τυχη 
    • den tha asxolithw allo mazi sou randoma,kserei olo to forum ti  eisai
    • [GR] Εισαι μεγαλο σκουπιδι και τσιπης. Ειχα δουλεια, γυρισα σου εφτιαξα οτι ηθελες κ εκατσα μαζι σου μεχρι να δεις κ τη πιο μικρη λεπτομερεια να δουλευει κ οτι αλλαγη ηθελες που θα μπορουσα να σου πω "φερε ενα 20ρικο" οπως κατι αλλοι εδω μεσα στο εκανα. Το χειροτερο ειναι οτι σου ζητησα 60 εδωσες 50 λες κ κανονιζεις εσυ τι θα δωσεις και το ακομη χειροτερο οτι λες οτι θα προχωρησουμε μαζι σε κατι, κανε μου πρωτα αυτο κ πας ιδια μερα κ ανοιγεις τοπικ κ ζητας αλλον dev. Σκουπιδι γεννηθηκες κ σκουπιδι θα πεθανεις. Παλι σε εμενα θα γυρισεις να ξερεις τη δουλεια που σ εκανα δεν θα την κανει κανεις αλλος εδω μεσα ειδικα σε ενα φορουμ με chatgpt devs. Δεν ασχολουμε αλλο μαζι σου, επισης στειλε μου τα 10 Ευρω revolut αλλιως ανοιγω report (μεχρι αυριο) @rookie23 . [/GR]      Have you ever worked with me? Cause just diggin topics from 2.000 + clients i had since 2014 and finding the only one who had bad business does not make you scammer.     Εσυ που εισαι 35 ετων και καθεσαι κ κυνηγας οτι τοπικ εχει το ονομα καρα ποσο happy customer εισαι; Επισης happy? πληρωσε, πηρε οτι ηθελε, δουλευει 100% κ το θεμα ειναι οτι δεν εδωσε ολα τα λεφτα που λεει, αρα ακομη και η ειρωνια σου ειναι εκτος τοπου και χρονου. 
  • 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..