[HELP] How to add effect to character
Posted: Sat Sep 03, 2011 10:59 am
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: last at now time
L2JDP Revision Number: last at now time
How to add effect to character with my abnormal time?
If i use modified
or
I don't take good result, in both cases when relogin player get standart abnormal time (like 20 mins for buffs, 5 for songs and etc). And second method don't update player buff icons (abnormal status).
setAbnormalTime code (L2Effect.java):
skill.getEffects code (L2Skill.java):
» Find Revision
L2J Revision Number: last at now time
L2JDP Revision Number: last at now time
How to add effect to character with my abnormal time?
If i use modified
Code: Select all
Env env = new Env(player, player, skill, PERIOD);skill.getEffects(player, player, env);
Code: Select all
effect.setAbnormalTime(PERIOD);player.addEffect(effect);
setAbnormalTime code (L2Effect.java):
Code: Select all
public void setAbnormalTime(int time){ _abnormalTime = time;}
Code: Select all
L2Effect e = et.getEffect(env);if (e != null){ if(env.period > 0) e.setAbnormalTime(env.period); e.scheduleEffect(); effects.add(e);}