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.

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

    • Opening December 6th at 19:00 (GMT +3)! Open Beta Test from November 30th!   https://l2soe.com/   🌟 Introducing L2 Saga of Eternia: A Revolution in Lineage 2 High Five! 🌟   Dear Lineage 2 enthusiasts, Prepare to witness the future of private servers! L2 Saga of Eternia is not just another High Five project—it’s a game-changing experience designed to compete with the giants of the Lineage 2 private server scene. Built for the community, by the community, we’re here to raise the bar in quality, innovation, and longevity. What Sets Us Apart? 💎 No Wipes, Ever Say goodbye to the fear of losing your progress. Our server is built to last and will never close. Stability and consistency are our promises to you. ⚔️ Weekly New Content Our dedicated development team ensures fresh challenges, events, and updates every week. From custom quests to exclusive features, there will always be something exciting to explore. 💰 No Pay-to-Win Skill and strategy matter most here. Enjoy a balanced gameplay environment where your achievements come from effort, not your wallet. 🌍 A Massive Community With 2000+ players expected, join a vibrant and active community of like-minded adventurers ready to conquer the world of Aden. 🏆 Fair and Competitive Gameplay Our systems are designed to promote healthy competition while avoiding abusive mechanics and exploits. 🔧 Professional Development From advanced bug fixes to carefully curated content, we pride ourselves on smooth performance, no lag, and unparalleled server quality. Key Features Chronicle: High Five with unique interface Rate: Dynamic x10 rates Class Balance: Carefully fine-tuned for a fair experience PvP Focused: PvP Ranking & aura display effect for 3 Top PvPers every week Custom Events: Seasonal and permanent events to keep you engaged Additional Features:   Custom Endgame Content: Introduce unique dungeons, raids, or zones unavailable in other servers. Player-Driven Economy: Implement a strong market system and avoid overinflated drops or rewards. Epic Siege Battles: Announce special large-scale sieges and PvP events. Incentives for Streamers and Clans: Attract influencers and big clans to boost server publicity. Roadmap Transparency: Share a public roadmap of planned updates to build trust and excitemen   Here you can read all the features: https://l2soe.com/features   Video preview: Join the Revolution! This is your chance to be part of something legendary. L2 Saga of Eternia is not just a server; it’s a movement to redefine what Lineage 2 can be. Whether you’re a seasoned veteran or a newcomer to the world of Aden, we invite you to experience Lineage 2 at its finest.   Official Launch Date: December 6th 2024 Website: https://l2soe.com/ Facebook: https://www.facebook.com/l2soe Discord: https://discord.com/invite/l2eternia   Let’s build the ultimate Lineage 2 experience together. See you in-game! 🎮
    • That's like a tutorial on how to run l2 on MacOS Xd but good job for the investigation. 
    • small update: dc robe set sold   wts adena 1kk = 1.5$ 
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt
    • Why adena in this sever so expensive 🙂
  • Topics

×
×
  • Create New...