Page 1 of 1

buffer cancel buffs and heal option?

Posted: Fri May 29, 2009 7:33 am
by cheatax21
L2J Revision Number:2733
L2JDP Revision Number:5612

hello all ,

i have modified the core buffer used in that revisions, but i dont know how i can add cancel buffs/heal (hp,mp,cp) options on it. If you will ,answer please :)

ty 4 ur time,
hf all

Re: buffer cancel buffs and heal option?

Posted: Fri May 29, 2009 3:41 pm
by toastgodsupreme
For cancel, look at the oly code. Players get buffs canceled when they enter. Use that method.

For heal, look at the l2raidbossinstance code. They heal to full when they teleport to spawn. Use that method.

Re: buffer cancel buffs and heal option?

Posted: Fri May 29, 2009 3:53 pm
by cheatax21
thanks, i'm on it. ^^

Re: buffer cancel buffs and heal option?

Posted: Fri May 29, 2009 5:00 pm
by cheatax21
i searched it for a while,, w/o success ;// the only thing i found was smth from the arena director but it doesnt work on the buffer . need help^

Re: buffer cancel buffs and heal option?

Posted: Fri May 29, 2009 5:27 pm
by toastgodsupreme
cheatax21 wrote:i searched it for a while,, w/o success ;// the only thing i found was smth from the arena director but it doesnt work on the buffer . need help^
player.stopAllEffects();

activeChar.setCurrentHp(activeChar.getMaxHp());
activeChar.setCurrentMp(activeChar.getMaxMp());
activeChar.setCurrentCp(activeChar.getMaxCp());

Re: buffer cancel buffs and heal option?

Posted: Fri May 29, 2009 7:39 pm
by cheatax21
okz thanks :)