sylwuu Posted March 17, 2021 Share Posted March 17, 2021 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 Link to comment Share on other sites More sharing options...
0 Rootware Posted March 31, 2021 Share Posted March 31, 2021 You need make few steps: Make in Player instance boolean variable like showShotSpell and make it as TRUE or restore from personal player's config; Make command or HTML window for changing this trigger; 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. PROFIT. Server will use SS/BSS and don't send them usage if palyer blocked them. Link to comment Share on other sites More sharing options...
0 An4rchy Posted March 27, 2021 Share Posted March 27, 2021 You need to send a different Attack packet with no soulshot flags to players with disabled effects. Link to comment Share on other sites More sharing options...
Question
sylwuu
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
Link to comment
Share on other sites
2 answers to this question
Recommended Posts