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

    • This update resaves 25_25 from the original (with sounds) (without the cave below) Some emitter fixes (removed waterfalls with high-poly meshes) The geodata is old, but it works Everything else is unchanged Download P.S. The effect files are taken from the high client for Interlude, so if you're experiencing critical skills, use the default ones for your Version.  
    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock