Page 1 of 1
Potion unable to use
Posted: Sat Dec 04, 2010 5:44 am
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
Re: Potion unable to use
Posted: Mon Dec 06, 2010 10:38 am
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);
Re: Potion unable to use
Posted: Mon Dec 06, 2010 5:54 pm
by VlLight
No, not here. It is in clientpackets/UseItem java. Posted in
viewtopic.php?f=95&t=19581#p107475 by
Zakoomar2
Re: Potion unable to use
Posted: Tue Dec 07, 2010 2:13 pm
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
Re: Potion unable to use
Posted: Tue Dec 07, 2010 2:35 pm
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.
Re: Potion unable to use
Posted: Tue Dec 07, 2010 5:15 pm
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
Re: Potion unable to use
Posted: Thu Dec 09, 2010 1:06 am
by ADONES
hello? (:
Re: Potion unable to use
Posted: Thu Dec 09, 2010 4:18 am
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
Re: Potion unable to use
Posted: Fri Dec 10, 2010 6:20 pm
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