L2JMobius

Free Users => Bug Reports => Topic started by: tetu on January 12, 2022, 10:44:20 AM

Title: auto use bsps and ss
Post by: tetu on January 12, 2022, 10:44:20 AM
Hi , i'm trying to fix some errors on L2J mobius classic savior database in files BlessedSpiritShot.Java, SpiritShot.Java and SoulShot.Java

The problem :

First activate auto use shots on a weapon

Then switch to another weapon it will activate auto shot also

Finally desactivate autoshot and switch to the first weapon which one you activated shots : it will activate shots but not the autoshots in toolbar.

i tried these code lines in all shots java files and still doesnt work. Do you guys have any clues ?
      if (player.disableAutoShot(itemId))
      {
         (player.chargeShot(ShotType.BLESSED_SPIRITSHOTS) == null);
      }
thanks
Title: Re: auto use bsps and ss
Post by: nasseka on January 12, 2022, 10:47:49 AM
You mean that it shouldn't activate new soulshot when switching weapons if there is already 1 charged?
Title: Re: auto use bsps and ss
Post by: tetu on January 12, 2022, 11:17:59 AM
look : enable auto shots on toolbar on one weapon. Switch to a 2nd weapon and disable auto shot on toolbar.

if you switch to the first weapon, even if autoshots are disable it will use shots you can see the shots effect on weapon

the only way to dont see the shots effect on weapons is to enable and then disable again autoshots on all weapons with different grades

do you understand me ?
Title: Re: auto use bsps and ss
Post by: nasseka on January 12, 2022, 11:26:07 AM
Every time a shot is charged because unchargeAllShots() is called at notifyUnequiped at /java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java ->

Code: [Select]
if (item.isWeapon())
{
player.unchargeAllShots();
}
Title: Re: auto use bsps and ss
Post by: tetu on January 12, 2022, 11:40:12 AM
are you sure this is the problem ? i can see its on internet or external right ? i cant change it myself ?
Title: Re: auto use bsps and ss
Post by: tetu on January 13, 2022, 03:40:45 AM
i'm a newbie in coding and java can you please explain to me how it works about this ? anyone else can try to help me please ? thank you
Title: Re: auto use bsps and ss
Post by: Voldoman on January 16, 2022, 04:08:46 PM
I saw what you mean ... this is how you preproduce it

Take one R grade weapon or what ever, use BSSR/SSR or what ever SS grade ,after switch to what ever Grade weapon still using SSR/BSSR and consumes if you still have them in inventory.
If you have B grade weapon consumes SSB even if you switch to R grade weapon still will consume SSB ( you can see it visually )
Title: Re: auto use bsps and ss
Post by: Mobius on January 16, 2022, 05:17:54 PM
I saw what you mean ... this is how you preproduce it

Take one R grade weapon or what ever, use BSSR/SSR or what ever SS grade ,after switch to what ever Grade weapon still using SSR/BSSR and consumes if you still have them in inventory.
If you have B grade weapon consumes SSB even if you switch to R grade weapon still will consume SSB ( you can see it visually )

Not a thing on subscriber version.
Check at l2mobius.net