Page 1 of 1

Some errors on new changes

Posted: Thu Oct 23, 2014 10:40 pm
by Berkas
Hello, I don't know how correctly name this topic so after solve you can just delete it.
Thank you very much for help!
if (player.getPet() == null) - What write instead of getPet()?
{
return;
}
Skill skill = SkillTable.getInstance().getInfo(i, SkillTable.getInstance().getMaxLevel(i)); - What write instead of SkillTable?
skill.getEffects(player, player); - What write instead of getEffects?
for (L2Effect e : player.getAllEffects()) - What write instead of L2Effect and getAllEffects?
{
if (_avaiblebuffs.contains(e.getSkill().getId()) && (e.getEffected().getKnownSkill(e.getSkill().getId()) == null))
{
e.exit();
}
}

Re: Some errors on new changes

Posted: Fri Oct 24, 2014 8:01 am
by Zoey76
getSummon(), SkillData, applyEffects(..), BuffInfo, getEffectList().getEffects().

the for must be like this:

Code: Select all

        for (int skillId : _avaiblebuffs)        {            final BuffInfo bi = player.getEffectList().getBuffInfoBySkillId(skillId);            if (bi.getEffected().getKnownSkill(skillId) == null)            {                player.getEffectList().stopSkillEffects(true, skillId);            }        }
:D

Re: Some errors on new changes

Posted: Fri Oct 24, 2014 10:05 am
by Berkas
Big big thanks for you!!!
Now only 1 problem here

Skill skill = SkillData.getInstance().getInfo(i, SkillData.getInstance().getMaxLevel(i)); - What write instead of getInfo?

P.S. Writed getSkill and everything perfect, now I will test and I will say.

Re: Some errors on new changes

Posted: Fri Oct 24, 2014 5:03 pm
by Zoey76
Berkas wrote:Big big thanks for you!!!
Now only 1 problem here

Skill skill = SkillData.getInstance().getInfo(i, SkillData.getInstance().getMaxLevel(i)); - What write instead of getInfo?

P.S. Writed getSkill and everything perfect, now I will test and I will say.
Yes, getSkill(..) is the correct method.

Re: Some errors on new changes

Posted: Fri Oct 24, 2014 6:17 pm
by Berkas
Zoey76 wrote:
Berkas wrote:Big big thanks for you!!!
Now only 1 problem here

Skill skill = SkillData.getInstance().getInfo(i, SkillData.getInstance().getMaxLevel(i)); - What write instead of getInfo?

P.S. Writed getSkill and everything perfect, now I will test and I will say.
Yes, getSkill(..) is the correct method.
Everything working, but only one thing was bad and I changed to this:

Code: Select all

            for (int skillId : _avaiblebuffs)            {                    player.getEffectList().stopSkillEffects(true, skillId);            }
P.S. Topic can be closed or deleted. Thank you Zoey, really :)