Page 2 of 2
Re: Start Learning java
Posted: Sun Feb 09, 2014 3:13 pm
by xban1x
Sdw wrote:xban1x wrote:Sdw wrote:Broadcast something maybe ?
I usually don't add broadcast for things like this. It will be updated when he relogs or at some other occassion. No need for spamming.
My players expect it asap. A broadcasttitleinfo wont do any harm once in a while.
Once in a while. But what if i add a bot and spam it?
Re: Start Learning java
Posted: Sun Feb 09, 2014 3:14 pm
by St3eT
"For change your title pls restart"
Re: Start Learning java
Posted: Sun Feb 09, 2014 3:15 pm
by Sdw
I wouldnt worry at all as there is action which trigger more heavier packet which can be spammed: )
Re: Start Learning java
Posted: Sun Feb 09, 2014 3:59 pm
by Sdw
Gries wrote:xban1x wrote:Sdw wrote:The title is sent through params
Exactly, other then that Gries it is perfectly fine.
What you mean?
The command in game works like this :
.title My Supa Title
So the command takes one parameter, which you aren't using currently.
Re: Start Learning java
Posted: Sun Feb 23, 2014 4:51 pm
by Tryskell
If you got the luck to get some logic, you can directly read sources and "guess". 99% of the source got legit method names, and sources got more and more javadoc with time. The only points are then :
- know what does what.
- know where you have to search.
- know Java syntax.
80% of what you need to code already exist and don't need to be written.
About easy steps in, I would suggest to pass customs codes, try to guess what each line does, and then edit the custom to fit with your desire. Extensively, fix issues, try to guess how to improve it (reusing existing parts of code, or recode it to shorter the code / improve performance). Finally, write your own customs (voicehandler in your case).
L2J is nothing more than knowing how the source is organized. When you know where to search, even a perfect programming noob can understand and code.
Some reminders :
- all already exists, perhaps on a different format, but it exists. At least you shouldn't have issues to find, and at very worst Google is your friend.
- Instances can inheritate from "mother" instances. It's heavily used for all types of NPCs notably.