Potion unable to use

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
ADONES
Posts: 51
Joined: Sun Dec 06, 2009 10:28 pm

Potion unable to use

Post by ADONES »

Hello everybody,

i use the newest Freya Server 4.4 from L2JServer nightly builds. First of all i saw a pritty similar topic but nobody know a answer.. so i ask again.

The problem:

If a player is in combat, casting, fighting etc.. he can't use Potions like at Epilogue. The player first got to stop attacking then he can use.

How can i make it like the old one?

Thank you very much in advance for your help (:

yours
ADONES
ADONES
Posts: 51
Joined: Sun Dec 06, 2009 10:28 pm

Re: Potion unable to use

Post by ADONES »

Noboys knows something about the problem?

Could it be that this is the problem?

Code: Select all

if (!itemSkill.isPotion() && playable.isCastingNow())                    {                        return;                    }                                        if (itemSkill.getItemConsumeId() == 0 && itemSkill.getItemConsume() > 0)                    {                        if (!playable.destroyItem("Consume", item.getObjectId(), itemSkill.getItemConsume(), null, false))                        {                            activeChar.sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_ITEMS));                            return;                        }
or maybe at this lines?

Code: Select all

if (itemSkill.isPotion())                    {                        playable.doSimultaneousCast(itemSkill);                        // Summons should be affected by herbs too, self time effect is handled at L2Effect constructor                        if (!isPet && item.getItemType() == L2EtcItemType.HERB                                && activeChar.getPet() != null                                && activeChar.getPet() instanceof L2SummonInstance)                            activeChar.getPet().doSimultaneousCast(itemSkill);                    }                    else                        playable.useMagic(itemSkill, forceUse, false);
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Potion unable to use

Post by VlLight »

No, not here. It is in clientpackets/UseItem java. Posted in viewtopic.php?f=95&t=19581#p107475 by Zakoomar2
ADONES
Posts: 51
Joined: Sun Dec 06, 2009 10:28 pm

Re: Potion unable to use

Post by ADONES »

Thank you for your help, but i can't find this clientpackets/UseItem.java

can you tell me where this file is?

thank you in advance
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Potion unable to use

Post by janiii »

you need the source files from svn. in nightly, there is only a compiled version which you cannot change mostly. check wiki or other posts about svn and eclipse and patch applying.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
ADONES
Posts: 51
Joined: Sun Dec 06, 2009 10:28 pm

Re: Potion unable to use

Post by ADONES »

ah ok thank you...

so maybe someone here know or can tell me how i can use this svn java file for my nightly build?

and is this the only way to fix the problem with the potion during skill? can't change it in nightly builds?

thank you in advance
ADONES
Posts: 51
Joined: Sun Dec 06, 2009 10:28 pm

Re: Potion unable to use

Post by ADONES »

hello? (:
Zakoomar2
Posts: 7
Joined: Thu Oct 14, 2010 3:56 am

Re: Potion unable to use

Post by Zakoomar2 »

ADONES wrote:i can use this svn java file for my nightly build?
no, you can't
and is this the only way to fix the problem with the potion during skill?
yes
can't change it in nightly builds?
yes
ADONES
Posts: 51
Joined: Sun Dec 06, 2009 10:28 pm

Re: Potion unable to use

Post by ADONES »

thank you for your answers..

can i use my old db from nightly with the svn server? or is there a way to save characters etc..? or a wipe is the only way?

thank you in advance
Post Reply