L2JMobius

C6 Newbie guide (magic support) (fixed)

Olivka · 6 · 6076

Offline Olivka

  • Heir
  • **
    • Posts: 39
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);


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16147
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


Offline Olivka

  • Heir
  • **
    • Posts: 39
At first I just deleted doCast (skill) and added skill.getEffects (this, player); - everything worked

then added "broadcastPacket (new MagicSkillUse.." still works


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16147
How do you get the warning above?
I do not know about you but I see skills casted even without the broadcast.


Offline Olivka

  • Heir
  • **
    • Posts: 39
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.