buffer cancel buffs and heal option?

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
cheatax21
Posts: 115
Joined: Thu Aug 14, 2008 10:10 am

buffer cancel buffs and heal option?

Post 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
toastgodsupreme
Posts: 750
Joined: Sun Dec 07, 2008 7:01 pm
Location: Poland

Re: buffer cancel buffs and heal option?

Post 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.
cheatax21
Posts: 115
Joined: Thu Aug 14, 2008 10:10 am

Re: buffer cancel buffs and heal option?

Post by cheatax21 »

thanks, i'm on it. ^^
cheatax21
Posts: 115
Joined: Thu Aug 14, 2008 10:10 am

Re: buffer cancel buffs and heal option?

Post 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^
toastgodsupreme
Posts: 750
Joined: Sun Dec 07, 2008 7:01 pm
Location: Poland

Re: buffer cancel buffs and heal option?

Post 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());
cheatax21
Posts: 115
Joined: Thu Aug 14, 2008 10:10 am

Re: buffer cancel buffs and heal option?

Post by cheatax21 »

okz thanks :)
Post Reply