Jump to content

Combination of buffs for Interlude.


sotid

Recommended Posts

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
Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 2 weeks later...

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>

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • /data/attachments/4/4519-0e10f165cf34562cd44d346d47967752.jpg Dear friends! September 27 we start Event for Olympiad games on Open Beta server Start Olympiad games in 19:00 (UTC +3) September 27 Fights will be till 23:40, then we get Heroes (after 00:00) All who get Hero status, will receive 500 ToDs. Best 5 Hero, who will get the most PTS, will get 800 ToDs instead of 500. ToDs you will get on your Master Account balance No class vs class fights Enchant Level Restrictions: S gr +6, A gr + 7, C/B gr + 16. On Olympiad, all items that higher than restriction level will be removed, and you won't be able to use them or wear them Talent Tree avaible only Tier 1 (same like will be on 1st Oly cycle on Live server) Skill enchant lvl: 15 max for 2nd profession, 7 for 3rd profession - its global rules for all Beta Good luck to Everyone!  
    • I'm currently working on an advanced auto-farm compatible with older chronicles (C4, IL, HF, etc) and older L2J-Mobius builds. https://imgur.com/a/LJS2OMC
    • GamezAION 4.8 High Quality Relaunch Coming Friday 4th October 2024   All Latest Retail Skin Appearances Unique RvR Battlegrounds (Guardian) (Battle of Gods) Added New PvPvE Map with Seasonal Ranking System Active Anticheat System & Shugo Console Support   Download links available on website   https://gamezaion.com Join the Action!
    • 🌟 Step Into Lin2Age C4 – Your Nostalgic Journey Awaits! 🌟 Get ready for an unforgettable adventure filled with fierce battles ⚔️, mighty clans 👑, and epic quests 🌍! Lin2Age is a custom Lineage 2 server designed to bring you the ultimate classic experience, enriched with modern features. Whether you're a battle-hardened veteran or a fresh-faced newcomer, there's a place for everyone in our world! 🛡️✨   🔥 Why Lin2Age is Your Best Choice 🔥 ✅ Dynamic Events & Rewards: Enjoy thrilling features like TVT, Magic Roulette, Daily Rewards, measures to enhance your gameplay. ✅ Advanced Security Features: Enjoy robust protections with Anti-Bot measures, Password Lock, and Raid Boss Information to keep your adventures safe and secure. ✅ Balanced Gameplay for All: Dive into a harmonious blend of PvP, PvE, and crafting! Lin2Age combines the finest elements from Scions of Destiny MasterWork and Interlude, ensuring an immersive experience for every playstyle! 🛡️⚔️ ✅ Epic Gear & AIO Buffer: Equip Legendary Armor and powerful jewels! Our All-In-One Buffer is at your service, empowering you to dominate the battlefield! 💎💪 ✅ Unique Custom Features: Embark on exclusive quests 📜 and take on formidable raid bosses 🐉! Lin2Age is filled with thrilling content that keeps your adventures lively and exciting. 🎯🎮 ✅ Thriving Community: Join a vibrant community where teamwork and friendship thrive! Whether leading a clan or joining one, support is always at your fingertips! 🤝👑 ✅ Regular Updates & Events: Experience continuous excitement! With frequent updates, fresh custom content, and epic events, Lin2Age is always evolving, thanks to your invaluable feedback! 🔄🏆 ✅ Smooth, Lag-Free Experience: Enjoy uninterrupted gameplay on our top-tier servers—say goodbye to lag! 🚀⚡   💎 Fair Play Above All 💎 At Lin2Age, we champion a balanced and equitable gaming experience. Our No Pay-to-Win policy ensures that success comes from skill, strategy, and teamwork, not your wallet! 💪 Everything you need to thrive can be earned through quests, crafting, and epic battles! 🏆🎮   🔑 Key Features You’ll Love 🔑 🔹 Rates: EXP x45, SP x45, ADENA x300—meticulously balanced for your enjoyment! 🔹 Custom Classes & Skills: Discover unique classes and skills that make PvP combat dynamic! ⚔️ 🔹 Epic Raid Bosses: Challenge yourself against custom bosses for legendary loot! 💀🏹 🔹 Clan Wars & Sieges: Test your strength in exhilarating clan wars and castle sieges! 🏰⚔️ 🔹 Dedicated Support Team: Our active Game Masters are committed to ensuring fairness and smooth gameplay! 👥🛡️ ⚔️ Join the Lin2Age Beta Test – Adventurers Needed! 🛡️ Are you ready to experience the glory of Lineage 2, reimagined for a new generation? 🌍 Become part of our exclusive beta test and help shape the future of Lin2Age! 🚀✨ Start your epic journey today. Welcome to Lin2Age C4! 💬 Connect with Us on Discord Join our community, stay updated, and take part in the latest events! Discord: https://discord.gg/qKJnQ7Kp5X Youtube: https://www.youtube.com/watch?v=nnO-J_uAqvg https://prnt.sc/b3tRHlxT6YS7
  • Topics

×
×
  • Create New...