Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

  • 0

Help [L2jServer H5] Soulshot effects disable


Go to solution Solved by Rootware,

Question

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

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
  • Solution

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.

Share this post


Link to post
Share on other sites
  • 0

Just avoid sending magicskilluse packet on ss use, should be 3/4 occurencies in your handlers (soulshot.java, spiritshot.java etc)

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, Zake said:

Just avoid sending magicskilluse packet on ss use, should be 3/4 occurencies in your handlers (soulshot.java, spiritshot.java etc)

This will disable the effect on the weapon when you activate a soulshot, Attack packet is responsible for the on-hit effects.

Share this post


Link to post
Share on other sites
  • 0
9 hours ago, An4rchy said:

This will disable the effect on the weapon when you activate a soulshot, Attack packet is responsible for the on-hit effects.

Item handlers are not only used by rightclicking ur inventory item or shortcut, they are  used upon attacks and skill casts aswell so this will disable any visual effect upon shot recharge.

Share this post


Link to post
Share on other sites
  • 0
On 3/27/2021 at 6:59 PM, Zake said:

Item handlers are not only used by rightclicking ur inventory item or shortcut, they are  used upon attacks and skill casts aswell so this will disable any visual effect upon shot recharge.

Unfortunately in this case

Disable broadcasting from soulshot.java etc works only on weapon.

It's possible by disable magicskilluse but it works for everyone, not just for specified by some field etc

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.