Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

L2J [Guide]How to make infinity time buffs

Junior Spellweaver
Joined
Jan 31, 2007
Messages
141
Reaction score
0
Originally a buff should look like like this. ( I will take the prophet buff Focus for example )

<skill id="1077" levels="3" name="Focus"
enchantLevels1="30" enchantLevels2="30">
<table name="#enchantMagicLvl">
76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81
82 82 82 82 83 83 83 84 84 85 85 85
</table>
<enchant1 name="magicLvl" val="#enchantMagicLvl" />
<enchant2 name="magicLvl" val="#enchantMagicLvl" />
<table name="#ench1time">
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">
37 36 36 35 34 34 33 32 32 31 31 30 29 29 28 27 27 26
25 25 24 24 23 22 22 21 20 20 19 19
</table>
<table name="#ench2MpConsume_Init">
9 9 9 9 9 9 8 8 8 8 8 8 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5
5 5 5
</table>
<table name="#mpConsume_Init">5 8 10</table>
<table name="#mpConsume">18 31 38</table>
<table name="#Tab-rCrit">0.2 0.25 0.3</table>
<table name="#aggro">243 418 495</table>
<set name="mpInitialConsume" val="#mpConsume_Init" />
<set name="mpConsume" val="#mpConsume" />
<set name="power" val="0.0" />
<set name="target" val="TARGET_ONE" />
<set name="reuseDelay" val="6000" />
<set name="hitTime" val="4000" />
<set name="skillType" val="BUFF" />
<set name="isMagic" val="true" />
<set name="operateType" val="OP_ACTIVE" />
<set name="castRange" val="400" />
<set name="effectRange" val="900" />
<set name="aggroPoints" val="#aggro" />
<enchant2 name="mpConsume" val="#ench2MpConsume" />
<enchant2 name="mpInitialConsume"
val="#ench2MpConsume_Init" />
<for>
<effect count="1" name="Buff" time="120" val="0"
stackOrder="#Tab-rCrit" stackType="rCrit">

<basemul order="0x30" stat="rCrit" val="#Tab-rCrit" />
</effect>
</for>
<enchant1for>
<effect count="1" name="Buff" time="#ench1time"
val="0" stackOrder="1.3" stackType="rCrit">

<basemul order="0x30" stat="rCrit" val="0.3" />
</effect>
</enchant1for>
</skill>


You should change


<set name="skillType" val="BUFF" /> ---------------> <set name="skillType" val="CONT" />



<effect name="Buff" time="120" count="1" val="0"> -----> <effect name="Buff" time="3" count="0x7fffffff" val="0">


<effect name="Buff" time="#ench1time" count="1" val="0"> ------> <effect name="Buff" time="3" count="0x7fffffff" val="0">
 
Junior Spellweaver
Joined
Jan 31, 2007
Messages
141
Reaction score
0
Okay, the timer of the buffs will be gone when you do it.
 
Supreme Arcanarch
Joined
Apr 24, 2006
Messages
906
Reaction score
10
but why time=3?
the buff will last only for 3 seconds then...
 
Junior Spellweaver
Joined
Oct 29, 2005
Messages
185
Reaction score
0
he also changed the count to 0x7fffffff
that is why it isn't 3 seconds (i think)
 
Custom Title Activated
Loyal Member
Joined
May 26, 2005
Messages
1,042
Reaction score
6
Interesting, I will try this out :]
 
Just Ask ME!!!
Joined
Nov 16, 2006
Messages
833
Reaction score
0
i ask u are writtin 0xffff (that is Hex rifhtP) now the bufs only disapear whem you did? (if you dont have noblese)
 
Back
Top