[Where?]CharStat and buff effects.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Sylar88
Posts: 113
Joined: Sun Feb 06, 2011 6:34 pm

[Where?]CharStat and buff effects.

Post by Sylar88 »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

My brain is going to explode from reading all that lines of code. Or maybe im plain stupid and cant read :)

Im trying to find where in the code a skill, passes its effect options into a character. For example, i wanna find out how the patk multiplier from Might gets applied on a character.

I got up to here:

L2Skill skill;
skill = SkillTable.getInstance().getInfo(skillId, skillLevel);

if (skill != null)
skill.getEffects(player, target);

Then it goes to :

public final L2Effect[] getEffects(L2Character effector, L2Character effected, Env env) of L2Skill

Then

if (success)
{
L2Effect e = et.getEffect(env);
if (e != null)
{
e.scheduleEffect();
effects.add(e);
}
}

Then in scheduleEffect we go in started case


And then i get lost ...
Someone who didnt bother reading the svn or ant manual and just waited for you to make him a visual guide for eclipse is not a guy that is willing to learn ... He is the definition of the leecher.
Sylar88
Posts: 113
Joined: Sun Feb 06, 2011 6:34 pm

Re: [Where?]CharStat and buff effects.

Post by Sylar88 »

Found it. For those interested the loading happens like this :

xml->documentBase->create EffectTempaltes based on xml --> create FuncTemplates based on xml.

FuncTemplate holds the type of attribute, and the type of operation( 'mul','add' ) etc.

At first sight, such un-hardcoded code looks totally random in meaning and essense. But if you look closely and for long, patterns emerge ... :P

PS: The guy that created Func/Env/Lambda system in l2j is a genious :)
Someone who didnt bother reading the svn or ant manual and just waited for you to make him a visual guide for eclipse is not a guy that is willing to learn ... He is the definition of the leecher.
Post Reply