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();
}
}
Some errors on new changes
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Some errors on new changes
getSummon(), SkillData, applyEffects(..), BuffInfo, getEffectList().getEffects().
the for must be like this:

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); } }

Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

-
- Posts: 94
- Joined: Sat Dec 14, 2013 9:23 am
Re: Some errors on new changes
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.
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.
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Some errors on new changes
Yes, getSkill(..) is the correct method.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.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

-
- Posts: 94
- Joined: Sat Dec 14, 2013 9:23 am
Re: Some errors on new changes
Everything working, but only one thing was bad and I changed to this:Zoey76 wrote:Yes, getSkill(..) is the correct method.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.
Code: Select all
for (int skillId : _avaiblebuffs) { player.getEffectList().stopSkillEffects(true, skillId); }
