Jump to content
  • 0

[L2jServer H5] Soulshot effects disable


Question

Posted

Hello,

I'm trying to add disable soulshots/spiritshots effects option to player menu to improve game performance and i'm stuck.


I searching answer across the internet and this forum but things that i'm tried can't be implemented in l2jserver.


Change broadcast gave me almost nothig. The same with listening of client packets.

The only working thing is to change broadcasting in soulshot handler but it works only on weapon and expolosion on target is still visible.

 

Is it possible to disable it on server side?

 

Best regards

2 answers to this question

Recommended Posts

  • 0
Posted

You need make few steps:

  1. Make in Player instance boolean variable like showShotSpell and make it as TRUE or restore from personal player's config;
  2. Make command or HTML window for changing this trigger;
  3. Edit all item handlers like: SoulShot.java, SpititShots.java, etc for next behavior. In all this handlers in the end of all checks exists code with broadcasting MagicSkillUse packet which contains skill id of soulshot/spiritshot. You need make FOR() cycle for manual broadcasting this packet by condition if showShotSpell is TRUE. Or dublicate existing broadcastPacketInRadius() as new (e.g. broadcastShotUsagePacketInRadius()) with this condition. This case will more elegant.
  4. PROFIT. Server will use SS/BSS and don't send them usage if palyer blocked them.
Guest
This topic is now closed to further replies.


×
×
  • Create New...