L2JMobius

Public Development => Solved/Invalid Bug Reports => Topic started by: Olivka on June 22, 2019, 10:20:59 PM

Title: Newbie guide (magic support) (fixed)
Post by: Olivka on June 22, 2019, 10:20:59 PM
Hi.

error log after click "receive help from beneficial magic"

[22/06 22:14:28] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
[22/06 22:15:24] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
[22/06 22:15:30] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
[22/06 22:16:11] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance

fix for me:

/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java

:2480

skill.getEffects(this, player);
// doCast(skill);


BLESSING ALSO

:1787

skill.getEffects(this, player);
// doCast(skill);
Title: Re: Newbie guide (magic support)
Post by: Mobius on June 23, 2019, 06:22:06 AM
I do not have any warnings upon recieving buffs.

In case you do not get effects casted on you try this.
https://pastebin.com/3q4GCEQk

Alternatively remove broadcastPacket(new MagicSkillUse
Title: Re: Newbie guide (magic support) (fixed)
Post by: Olivka on June 23, 2019, 01:33:35 PM
At first I just deleted doCast (skill) and added skill.getEffects (this, player); - everything worked

then added "broadcastPacket (new MagicSkillUse.." still works
Title: Re: Newbie guide (magic support) (fixed)
Post by: Mobius on June 23, 2019, 01:37:39 PM
How do you get the warning above?
I do not know about you but I see skills casted even without the broadcast.
Title: Re: Newbie guide (magic support) (fixed)
Post by: Olivka on June 23, 2019, 03:21:26 PM
magic... I restored the file from bitbucket and everything works

p.s. when i received an error the file was also a copy from the repository.

I will still test.
Title: Re: Newbie guide (magic support) (fixed)
Post by: Mobius on June 25, 2019, 05:26:19 AM
Solved.