Jump to content

Recommended Posts

Posted (edited)

l2jacis.

This is an example of how to combine two or more buffs into one using only xml.

So lets say we want to combine shield and magic barrier , two defensive skills into one.

 

Shield xml:



    

<skill id="1040" levels="3" name="Shield" 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>
        <table name="#ench2MpConsume"> 30 29 29 28 28 27 27 26 26 25 25 24 24 23 23 22 22 21 21 20 20 19 19 18 18 17 17 16 16 15 </table>
        <table name="#ench2mpInitialConsume"> 7 7 7 7 7 7 7 6 6 6 6 6 6 6 6 5 5 5 5 5 5 5 4 4 4 4 4 4 4 4 </table>
        <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="#mpInitialConsume"> 2 5 8 </table>
        <table name="#mpConsume"> 8 18 31 </table>
        <table name="#rate"> 1.08 1.12 1.15 </table>
        <table name="#stackOrder"> 1 2 3 </table>
        <table name="#aggro"> 121 243 418 </table>
        <set name="mpInitialConsume" val="#mpInitialConsume"/>
        <set name="mpConsume" val="#mpConsume"/>
        <set name="target" val="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="ACTIVE"/>
        <set name="castRange" val="400"/>
        <set name="effectRange" val="900"/>
        <set name="aggroPoints" val="#aggro"/>
        <enchant1 name="magicLvl" val="#enchantMagicLvl"/>
        <enchant2 name="magicLvl" val="#enchantMagicLvl"/>        
        <enchant2 name="mpConsume" val="#ench2MpConsume"/>
        <enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume"/>
        <for>
            <effect name="Buff" time="1200" val="0" stackOrder="#stackOrder" stackType="pd_up">
                <mul stat="pDef" val="#rate"/>
            </effect>
        </for>
        <enchant1for>
            <effect name="Buff" time="#ench1time" val="0" stackOrder="3" stackType="pd_up">
                <mul stat="pDef" val="1.15"/>
            </effect>
        </enchant1for>
    </skill>





Magic Barrier xml:


    <skill id="1036" levels="2" name="Magic Barrier" 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>
        <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="#ench2mpInitialConsume"> 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="#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="#mpInitialConsume"> 8 10 </table>
        <table name="#mpConsume"> 31 38 </table>
        <table name="#mDef"> 1.23 1.3 </table>
        <table name="#stackOrder"> 2 3 </table>
        <table name="#aggro"> 418 495 </table>
        <set name="mpInitialConsume" val="#mpInitialConsume"/>
        <set name="mpConsume" val="#mpConsume"/>
        <set name="target" val="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="ACTIVE"/>
        <set name="castRange" val="400"/>
        <set name="effectRange" val="900"/>
        <set name="aggroPoints" val="#aggro"/>
        <enchant1 name="magicLvl" val="#enchantMagicLvl"/>
        <enchant2 name="magicLvl" val="#enchantMagicLvl"/>        
        <enchant2 name="mpConsume" val="#ench2MpConsume"/>
        <enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume"/>
        <for>
            <effect name="Buff" time="1200" val="0" stackOrder="#stackOrder" stackType="md_up">
                <mul stat="mDef" val="#mDef"/>
            </effect>
        </for>
        <enchant1for>
            <effect name="Buff" time="#ench1time" val="0" stackOrder="3" stackType="md_up">
                <mul stat="mDef" val="1.3"/>
            </effect>
        </enchant1for>
    </skill>



New combined skill xml:

    We remove the extra tables if our new buff has only 1 level .Either way you should add tables like a normal buff.
    We take the orange lines from each xml and combine as shown and add the  noicon="1" to every other buff we combine.



<skill id="CombinedID" levels="1" name="CombinedName" >
        <set name="mpInitialConsume" val="15"/>
        <set name="mpConsume" val="45"/>
        <set name="target" val="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="ACTIVE"/>
        <set name="castRange" val="400"/>
        <set name="effectRange" val="900"/>
        <set name="aggroPoints" val="495"/>
        <for>
            <effect name="Buff" time="1200" val="0" stackOrder="10" stackType="pd_up">
                <mul stat="pDef" val="1.2"/>
            </effect>
            <effect name="Buff" time="1200" noicon="1" val="0" stackOrder="10" stackType="md_up">
                <mul stat="mDef" val="1.35"/>
            </effect>
        </for>
    </skill>

 

Notice:

1)noicon="1" is to remove the icon of the effect so you wont be getting multiple icons of the same buff.

2)stackOrder must always be higher than the original skill , number doesn't matter just need to be higher.

3)stackType must always be the same as the original buffs to replace it.

 

Hopefully I didn't forget anything and works, good luck.

 

Disclaimer, haven't tested,  I don't have any pack to test it at the moment but as I recall it works but I'm making this topic for someone that wants to combine buffs and can't find a correct answer on the forum.Last time I checked my old topic on how to do noone gave a correct answer even my so called developer at the time.

If anything doesn't work I will try and fix it.

 

 

Edited by Vision
  • Upvote 1
  • 1 month later...
Posted

Thanks for the input and the suggestion to make buffs that combine.

 

This idea works, if the buffs are combined and the stats are also respected.

 

The only "bad" thing about it is that it doesn't release the buff slot, that is, the new combined buff consumes 2 slots.

 

I will keep trying to do it in java, even if I don't know how to do it.

 

Thanks for the input and the idea.

  • 2 weeks later...
Posted

can you help me to make these 2 together
thanks
 

	<skill id="302" levels="9" name="Spoil Festival" enchantGroup1="2" enchantGroup2="2" enchantGroup3="2">
		<!-- Confirmed CT2.5 -->
		<!-- NOTE: Ignore description for Enchant 3 in client due is incorrect -->
		<table name="#magicLvl"> 28 36 43 49 55 62 66 70 74 </table>
		<table name="#mpConsume"> 73 93 113 131 150 172 183 194 204 </table>
		<table name="#ench1Power"> 1 2 3 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 </table>
		<table name="#ench2Power"> 0 0 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 </table>
		<table name="#ench3EarthPower"> 6 8 9 11 12 14 15 17 18 20 21 23 24 26 27 23 30 32 33 35 36 38 39 41 42 44 45 47 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>
		<set name="affectLimit" val="9-10" />
		<set name="affectRange" val="200" />
		<set name="castRange" val="40" />
		<set name="effectRange" val="400" />
		<set name="hitTime" val="1800" />
		<set name="magicLvl" val="#magicLvl" />
		<set name="mpConsume" val="#mpConsume" />
		<set name="nextActionAttack" val="true" />
		<set name="offensive" val="true" />
		<set name="operateType" val="A1" />
		<set name="reuseDelay" val="3000" />
		<set name="targetType" val="AREA" />
		<enchant1 name="element" val="3" /> <!-- Earth -->
		<enchant1 name="elementPower" val="20" />
		<enchant1 name="isDebuff" val="true" />
		<enchant1 name="lvlBonusRate" val="1" />
		<enchant1 name="magicLvl" val="#enchMagicLvl" />
		<enchant1 name="offensive" val="true" />
		<enchant1 name="saveVs" val="MEN" />
		<enchant1 name="skillType" val="DUMMY" />
		<enchant2 name="element" val="3" /> <!-- Earth -->
		<enchant2 name="elementPower" val="20" />
		<enchant2 name="isDebuff" val="true" />
		<enchant2 name="lvlBonusRate" val="1" />
		<enchant2 name="magicLvl" val="#enchMagicLvl" />
		<enchant2 name="offensive" val="true" />
		<enchant2 name="saveVs" val="MEN" />
		<enchant2 name="skillType" val="DUMMY" />
		<enchant3 name="element" val="3" /> <!-- Earth -->
		<enchant3 name="elementPower" val="20" />
		<enchant3 name="isDebuff" val="true" />
		<enchant3 name="lvlBonusRate" val="1" />
		<enchant3 name="magicLvl" val="#enchMagicLvl" />
		<enchant3 name="offensive" val="true" />
		<enchant3 name="saveVs" val="MEN" />
		<enchant3 name="skillType" val="DUMMY" />
		<for>
			<effect name="Spoil" noicon="1" />
		</for>
		<enchant1for>
			<effect name="Debuff" abnormalTime="30" effectPower="#ench1Power" abnormalLvl="3" abnormalType="attack_time_up">
				<mul stat="pAtkSpd" val="0.77" />
			</effect>
			<effect name="Spoil" noicon="1" />
		</enchant1for>
		<enchant2for>
			<!-- 118HP * 3 During 15 Sec -->
			<effect count="5" name="DamOverTime" abnormalTime="3" val="354" effectPower="#ench2Power" abnormalLvl="3" abnormalType="dot_attr" />
			<effect name="Spoil" noicon="1" />
		</enchant2for>
		<enchant3for>
			<effect name="Debuff" abnormalTime="15" effectPower="80" abnormalLvl="1" abnormalType="holy_attack">
				<sub stat="earthPower" val="#ench3EarthPower" />
			</effect>
			<effect name="Spoil" noicon="1" />
		</enchant3for>
	</skill>




	<skill id="444" levels="1" name="Sweeper Festival">
		<!-- High Five Skill -->
		<set name="affectLimit" val="9-10" />
		<set name="affectRange" val="200" />
		<set name="hitTime" val="500" />
		<set name="magicLvl" val="78" />
		<set name="mpConsume" val="12" />
		<set name="offensive" val="true" />
		<set name="operateType" val="A1" />
		<set name="reuseDelay" val="3000" />
		<set name="targetType" val="AURA_CORPSE_MOB" />
		<for>
			<effect name="Sweeper" noicon="1" />
			<effect name="ConsumeBody" noicon="1" />
		</for>
	</skill>

 

Posted
On 1/22/2023 at 11:28 AM, Lullo said:

can you help me to make these 2 together
thanks
 

	<skill id="302" levels="9" name="Spoil Festival" enchantGroup1="2" enchantGroup2="2" enchantGroup3="2">
		<!-- Confirmed CT2.5 -->
		<!-- NOTE: Ignore description for Enchant 3 in client due is incorrect -->
		<table name="#magicLvl"> 28 36 43 49 55 62 66 70 74 </table>
		<table name="#mpConsume"> 73 93 113 131 150 172 183 194 204 </table>
		<table name="#ench1Power"> 1 2 3 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 </table>
		<table name="#ench2Power"> 0 0 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 </table>
		<table name="#ench3EarthPower"> 6 8 9 11 12 14 15 17 18 20 21 23 24 26 27 23 30 32 33 35 36 38 39 41 42 44 45 47 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>
		<set name="affectLimit" val="9-10" />
		<set name="affectRange" val="200" />
		<set name="castRange" val="40" />
		<set name="effectRange" val="400" />
		<set name="hitTime" val="1800" />
		<set name="magicLvl" val="#magicLvl" />
		<set name="mpConsume" val="#mpConsume" />
		<set name="nextActionAttack" val="true" />
		<set name="offensive" val="true" />
		<set name="operateType" val="A1" />
		<set name="reuseDelay" val="3000" />
		<set name="targetType" val="AREA" />
		<enchant1 name="element" val="3" /> <!-- Earth -->
		<enchant1 name="elementPower" val="20" />
		<enchant1 name="isDebuff" val="true" />
		<enchant1 name="lvlBonusRate" val="1" />
		<enchant1 name="magicLvl" val="#enchMagicLvl" />
		<enchant1 name="offensive" val="true" />
		<enchant1 name="saveVs" val="MEN" />
		<enchant1 name="skillType" val="DUMMY" />
		<enchant2 name="element" val="3" /> <!-- Earth -->
		<enchant2 name="elementPower" val="20" />
		<enchant2 name="isDebuff" val="true" />
		<enchant2 name="lvlBonusRate" val="1" />
		<enchant2 name="magicLvl" val="#enchMagicLvl" />
		<enchant2 name="offensive" val="true" />
		<enchant2 name="saveVs" val="MEN" />
		<enchant2 name="skillType" val="DUMMY" />
		<enchant3 name="element" val="3" /> <!-- Earth -->
		<enchant3 name="elementPower" val="20" />
		<enchant3 name="isDebuff" val="true" />
		<enchant3 name="lvlBonusRate" val="1" />
		<enchant3 name="magicLvl" val="#enchMagicLvl" />
		<enchant3 name="offensive" val="true" />
		<enchant3 name="saveVs" val="MEN" />
		<enchant3 name="skillType" val="DUMMY" />
		<for>
			<effect name="Spoil" noicon="1" />
		</for>
		<enchant1for>
			<effect name="Debuff" abnormalTime="30" effectPower="#ench1Power" abnormalLvl="3" abnormalType="attack_time_up">
				<mul stat="pAtkSpd" val="0.77" />
			</effect>
			<effect name="Spoil" noicon="1" />
		</enchant1for>
		<enchant2for>
			<!-- 118HP * 3 During 15 Sec -->
			<effect count="5" name="DamOverTime" abnormalTime="3" val="354" effectPower="#ench2Power" abnormalLvl="3" abnormalType="dot_attr" />
			<effect name="Spoil" noicon="1" />
		</enchant2for>
		<enchant3for>
			<effect name="Debuff" abnormalTime="15" effectPower="80" abnormalLvl="1" abnormalType="holy_attack">
				<sub stat="earthPower" val="#ench3EarthPower" />
			</effect>
			<effect name="Spoil" noicon="1" />
		</enchant3for>
	</skill>




	<skill id="444" levels="1" name="Sweeper Festival">
		<!-- High Five Skill -->
		<set name="affectLimit" val="9-10" />
		<set name="affectRange" val="200" />
		<set name="hitTime" val="500" />
		<set name="magicLvl" val="78" />
		<set name="mpConsume" val="12" />
		<set name="offensive" val="true" />
		<set name="operateType" val="A1" />
		<set name="reuseDelay" val="3000" />
		<set name="targetType" val="AURA_CORPSE_MOB" />
		<for>
			<effect name="Sweeper" noicon="1" />
			<effect name="ConsumeBody" noicon="1" />
		</for>
	</skill>

 

some help here please

Posted
3 hours ago, Lullo said:

some help here please

 

Impossible to combine them just in xml, they have different target and skill types. But yeah, you can make it to work like you want, make a new skilltype or modify existing one.

Posted
4 hours ago, xJustMe said:

 

Impossible to combine them just in xml, they have different target and skill types. But yeah, you can make it to work like you want, make a new skilltype or modify existing one.

oke but how to make this 2 work auto spoil sweep if you kill a mob

Posted

You can make it work but the problem remains on the buff slot, you will also require to do the java part for fix the buff slot issues. But if you make it just for fun and visuals for a server with unlimited buff slots, it will be just fine.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • LA ERA DE EINHASAD - Lineage 2 en Castellano Lineage II Crónica 4: Vástagos del Destino x5 - Main Class - Full Craft ───────────────────────────── La diosa Einhasad ha despertado... Una nueva era comienza para los verdaderos aventureros. Un mundo completamente traducido al español, fiel al Lineage II original, creado para una comunidad hispanohablante unida por la nostalgia y la pasión. ───────────────────────────── APERTURA OFICIAL: 14 de NOVIEMBRE - 20:00hs (GMT-3) ───────────────────────────── INFORMACIÓN PRINCIPAL Rates: x5 Tipo: Main Class Sistema: Full Craft Idioma: 100% Español (traducción completa del juego) Comunidad hispanohablante Balance original con mínimas modificaciones Buffer Offline, los jugadores pueden crear sus tiendas de buffs Progresión de crónicas cada 4 meses aprox. Economía estable - Sin Pay to Win - No venta de items/adena por donación Comunidad de 1.000 personas Anterior versión x1 duro casi 3 años con 952 IPs distintas de pico ───────────────────────────── CARACTERÍSTICAS DESTACADAS Experiencia fiel al Lineage II clásico, sin alteraciones invasivas Interfaz, diálogos y objetos completamente en español Ventana de comunidad con servicios personalizados y comercio por Monedas de Oro Olimpiadas, Épicos y Asedios originales Recompensas por votación, Eventos TVT con 3 arenas diferentes. Participan todos sin importar el nivel, pero dentro de la arena solo se atacan por rango cercano Soporte activo y presencia constante del administrador Tickets de soporte con atención rápida en Discord ante cualquier problema ───────────────────────────── ENLACES OFICIALES Website: La Era de Einhasad Discord: https://discord.com/invite/A6PtCCN2SF ───────────────────────────── Una comunidad unida por el idioma, la pasión y la nostalgia. Redescubrí Aden… en tu propio idioma. Bienvenido a La Era de Einhasad.  
    • English you belarus retard ) Seems you so desperate and angry cant even speak back in EN, well guys you see how its easy to destroy scammer xD
    • Чувак) мне на него насрать давно, ты не мне сделал подлянку а людям которые купили и используют. Я его удалил год назад) когда закрыл продажи.   мне вообще похер кто ты и что ты.    Можешь сесть и попрыгать на тот же член на котором ты прыгаешь все это время) и этой версии более 3х лет) ты откопал залупу мамонта , поздравляю)) кто скачает это дерьмо используйте на свой страх и риск)) кто знает что там наворочено)))  удачи в шаринге обиженный жизнью неандерталец.   Можешь лизнуть мое очко на прощание.
    • Rosyk or rusik or whatever u blaim me that my mouth stinks but I assume you the one who stinks and your perfect pack will be now shared and you can suck a DICK )  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Eng Client.rar Drama link    For this crap u need Lucera 2 classic license ) people paying 300 euros for this shit  lol Some Shit will come out soon mxc website need shake it a bit coz getting boring here )    Whats happen rosyk lost speach  xD Your pack was downloded  29 times bussines  not going as plan xD?
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock