L2JMobius

Public Development => Solved/Invalid Bug Reports => Topic started by: Olivka on June 23, 2019, 04:06:10 PM

Title: Auto-use Spiritshot
Post by: Olivka on June 23, 2019, 04:06:10 PM
Hi.

When change weapon with enabled auto-use spiritshot, spiritshot not worked;

update: soulshots work

Title: Re: Auto-use Spiritshot
Post by: Mobius on June 24, 2019, 10:38:25 AM
Try this.
https://pastebin.com/dH07UYus
Title: Re: Auto-use Spiritshot
Post by: Olivka on June 24, 2019, 01:27:34 PM
did not help, spiritshots are still not applied to new weapons (if auto-use enabled)
Title: Re: Auto-use Spiritshot
Post by: Mobius on June 24, 2019, 04:29:28 PM
Try this, 99% sure it works.
https://pastebin.com/CfBHy8Xh
Title: Re: Auto-use Spiritshot
Post by: Olivka on June 24, 2019, 05:16:05 PM
50/50

step by step:

we have 100 Spiritshot and weapons that uses 1 Spiritshot;

1. enable auto-use; -- ok
 - spiritshot = 99; -- ok
2. use skill; -- ok
 - spiritshot = 98; -- ok
3. equip other weapon; -- ok
 - spiritshot not reuse (98) -- bug?
4. use skill  (before use skills spiritshot has been used);  -- ok?
 - spiritshot = 97; -- ok
-------------------
change weapons repeatedly until spiritshot is applied immediately, and not before using the skill
-------------------
5. if it worked, spiritshot = 96 -- ok;
6. use skill
 - spiritshot = 95 -- bug. spiritshot was used twice
 

need video?


p.s.

are your sure about it ((itemId <= 1804) && (itemId >= 1808))
Title: Re: Auto-use Spiritshot
Post by: Mobius on June 25, 2019, 03:45:21 AM
I do not understand.
Does it work or not?

I did not put those id checks there, so I have no idea about them.
Title: Re: Auto-use Spiritshot
Post by: Olivka on June 25, 2019, 04:49:55 AM
Yes it works.
But sometimes when changing weapon spiritshots are used twice.

can be closed;
Title: Re: Auto-use Spiritshot
Post by: Mobius on June 25, 2019, 05:25:49 AM
Ok closed.