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
Potion unable to use
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 51
- Joined: Sun Dec 06, 2009 10:28 pm
Re: Potion unable to use
Noboys knows something about the problem?
Could it be that this is the problem?
or maybe at this lines?
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; }
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);
- VlLight
- L2j Veteran
- Posts: 577
- Joined: Fri Dec 14, 2007 11:58 am
- Location: Russia
Re: Potion unable to use
No, not here. It is in clientpackets/UseItem java. Posted in viewtopic.php?f=95&t=19581#p107475 by Zakoomar2
-
- Posts: 51
- Joined: Sun Dec 06, 2009 10:28 pm
Re: Potion unable to use
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
can you tell me where this file is?
thank you in advance
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Potion unable to use
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 51
- Joined: Sun Dec 06, 2009 10:28 pm
Re: Potion unable to use
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
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
-
- Posts: 7
- Joined: Thu Oct 14, 2010 3:56 am
Re: Potion unable to use
no, you can'tADONES wrote:i can use this svn java file for my nightly build?
yesand is this the only way to fix the problem with the potion during skill?
yescan't change it in nightly builds?
-
- Posts: 51
- Joined: Sun Dec 06, 2009 10:28 pm
Re: Potion unable to use
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
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