[SOLVED]Debuff with Buff
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
[SOLVED]Debuff with Buff
Server VER: 5420
Data ver: 8913
I try and try and try,
Many peoples in all servers make a character "example" ( Blazing Skin +0 to debuff in pvp enemys with Blazing Skin +30 ) Please anyone Help ^^
i try Make a condicional with logical:
if ( target buff magicLevel > this buff magicLevel ) DOES NOTHING
but not get Success. I try put CancelLesserEffect ( true and false and not work )
Data ver: 8913
I try and try and try,
Many peoples in all servers make a character "example" ( Blazing Skin +0 to debuff in pvp enemys with Blazing Skin +30 ) Please anyone Help ^^
i try Make a condicional with logical:
if ( target buff magicLevel > this buff magicLevel ) DOES NOTHING
but not get Success. I try put CancelLesserEffect ( true and false and not work )
Last edited by marcoviny on Mon Jul 14, 2014 2:39 pm, edited 1 time in total.
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
Simple way and prefer one coz you will can control skill one by one without core edit.
Code: Select all
<skill id="1232" levels="3" name="Blazing Skin" enchantGroup1="1" enchantGroup2="1" enchantGroup3="1" enchantGroup4="1"> <table name="#abnormalLvls"> 1 2 3 </table> <table name="#effectPoints"> 379 457 532 </table> <table name="#magicLvl"> 40 48 56 </table> <table name="#mpConsume"> 28 35 41 </table> <table name="#mpInitialConsume"> 7 9 11 </table> <table name="#reflectDam"> 10 15 20 </table> <table name="#ench1AbnormalTimes"> 1240 1280 1320 1360 1400 1440 1480 1520 1560 1600 1640 1680 1720 1760 1800 1840 1880 1920 1960 2000 2040 2080 2120 2160 2200 2240 2280 2320 2360 2400 </table> <table name="#ench2mpConsume"> 40 39 38 38 37 36 36 35 34 34 33 32 32 31 30 30 29 28 28 27 26 25 25 24 23 23 22 21 21 20 </table> <table name="#ench2mpInitialConsume"> 10 10 10 10 10 9 9 9 9 9 8 8 8 8 8 8 7 7 7 7 7 6 6 6 6 6 6 5 5 5 </table> <table name="#ench3pDef"> 1.01 1.01 1.01 1.02 1.02 1.02 1.03 1.03 1.03 1.04 1.04 1.04 1.04 1.05 1.05 1.05 1.06 1.06 1.06 1.07 1.07 1.07 1.07 1.08 1.08 1.08 1.09 1.09 1.09 1.1 </table> <table name="#ench4fireRes"> 2 4 5 7 9 10 12 14 15 17 18 20 22 23 25 27 28 30 32 33 35 36 38 40 41 43 45 46 48 50 </table> <table name="#enchMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 </table> <table name="#protectAbnormal"> 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 </table> <set name="abnormalLvl" val="#abnormalLvls" /> <set name="abnormalTime" val="1200" /> <set name="abnormalType" val="DMG_SHIELD" /> <set name="castRange" val="400" /> <set name="effectPoint" val="#effectPoints" /> <set name="effectRange" val="900" /> <set name="hitTime" val="4000" /> <set name="icon" val="icon.skill1232" /> <set name="isMagic" val="1" /> <!-- Magic Skill --> <set name="magicLvl" val="#magicLvl" /> <set name="mpConsume" val="#mpConsume" /> <set name="mpInitialConsume" val="#mpInitialConsume" /> <set name="operateType" val="A2" /> <set name="reuseDelay" val="2000" /> <set name="targetType" val="ONE" /> <enchant1 name="abnormalLvl" val="#protectAbnormal" /> <enchant2 name="abnormalLvl" val="#protectAbnormal" /> <enchant3 name="abnormalLvl" val="#protectAbnormal" /> <enchant4 name="abnormalLvl" val="#protectAbnormal" /> <enchant1 name="abnormalTime" val="#ench1AbnormalTimes" /> <enchant1 name="magicLvl" val="#enchMagicLvl" /> <enchant2 name="magicLvl" val="#enchMagicLvl" /> <enchant2 name="mpConsume" val="#ench2mpConsume" /> <enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" /> <enchant3 name="magicLvl" val="#enchMagicLvl" /> <enchant4 name="magicLvl" val="#enchMagicLvl" /> <for> <effect name="Buff"> <add order="0x40" stat="reflectDam" val="#reflectDam" /> </effect> </for> <enchant3for> <effect name="Buff"> <add order="0x40" stat="reflectDam" val="20" /> <mul order="0x30" stat="pDef" val="#ench3pDef" /> </effect> </enchant3for> <enchant4for> <effect name="Buff"> <add order="0x40" stat="reflectDam" val="20" /> <add order="0x40" stat="fireRes" val="#ench4fireRes" /> </effect> </enchant4for> </skill>
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Debuff with Buff
Bro, thx for help BUUUUUUUUTTT Make this with many skills not is inteligent,
I want make in core because is a way inteligent and that valid to many skills.
Use Blazing with example, but this happen with alll enchanted skills, make this with each of then skills is
I want make in core because is a way inteligent and that valid to many skills.
Use Blazing with example, but this happen with alll enchanted skills, make this with each of then skills is

- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
Im working on something now after finish will made you patch.
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Debuff with Buff
THHHHHXXXXXXXXXXXXXXXXXX 

- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
I don't something fast not sure if will work test it.
http://pastebin.com/ZCqYYJu4
Tell me if not working to to it better
http://pastebin.com/ZCqYYJu4
Tell me if not working to to it better

- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Debuff with Buff
you can inform more compare lines, i not get see insde what void implement in L2PcInstance
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
Just add him with Eclipse
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Debuff with Buff
i'am trying put on
private boolean checkUseMagicConditions
in l2pcinstance not get make nothing but you enabled me think other logic i'am trying
my revision is very old, before high five l2j rebuild.
private boolean checkUseMagicConditions
in l2pcinstance not get make nothing but you enabled me think other logic i'am trying
my revision is very old, before high five l2j rebuild.
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
Try that one : http://pastebin.com/yepSpFct
If Done it by hand use that
http://pastebin.com/dPDPFs8g
In L2PcInstance look for string "skills can be used on Walls and Doors only during siege" in "checkUseMagicConditions" and post it above.
If Done it by hand use that
http://pastebin.com/dPDPFs8g
In L2PcInstance look for string "skills can be used on Walls and Doors only during siege" in "checkUseMagicConditions" and post it above.
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Debuff with Buff
Greaaaaaaaaaaaaaaaaat Bro i try make check skill level but i not get but your code is Amazing. ^^ Thx God Bless You.
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
I split variables and is very easy to be understand and update so if you want can switch it. But imo is better still can take buffs from friends party/clan/ally
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Debuff with Buff
^^
Not is easy if not known variables necessaries, is easy find logical but make work that is hard i try check skill magic level but db not store magiclevel db only store SkillLevel ( that is different )
I try check level too but i'am very bad kkkkkk
Not is easy if not known variables necessaries, is easy find logical but make work that is hard i try check skill magic level but db not store magiclevel db only store SkillLevel ( that is different )
I try check level too but i'am very bad kkkkkk
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
Re: Debuff with Buff
Here is with level => http://pastebin.com/MjzW13r5