Some errors on new changes

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
Berkas
Posts: 94
Joined: Sat Dec 14, 2013 9:23 am

Some errors on new changes

Post 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();
}
}
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Some errors on new changes

Post 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
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Berkas
Posts: 94
Joined: Sat Dec 14, 2013 9:23 am

Re: Some errors on new changes

Post 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.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Some errors on new changes

Post 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.
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Berkas
Posts: 94
Joined: Sat Dec 14, 2013 9:23 am

Re: Some errors on new changes

Post 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 :)
Post Reply