Jump to content
  • 0

Question

Posted

Hi all, Today i edit a bit Tattoos, and i want to make it nice. I try to edit tattoos to keep in inventory (Without Equip) and get passive skill. I add Skill.

This is XML from Tattoo

	<item id="486" type="Armor" name="Tattoo of Fire">
		<set name="icon" val="icon.weapon_voodoo_doll_i00" />
		<set name="default_action" val="EQUIP" />
		<set name="armor_type" val="LIGHT" />
		<set name="bodypart" val="chest" />
		<set name="immediate_effect" val="true" />
		<set name="crystal_count" val="276" />
		<set name="crystal_type" val="D" />
		<set name="material" val="DYESTUFF" />
		<set name="weight" val="4050" />
		<set name="price" val="117000" />
		<set name="enchant_enabled" val="1" />
		<for>
			<add order="0" stat="pDef" val="73" />
			<enchant stat="pDef" val="0" />
		</for>
	</item>

and this is Skill XML 

 <skill id="27000" levels="1" name="Tattoo Of Strenght Passive">
		<table name="#maxHp">2.00 </table> 
		<table name="#maxMp">2.00 </table> 
		<table name="#cAtk">2.00 </table>
		<table name="#rCrit">2.00 </table> 
		<table name="#pvpPhysDmg">2.00 </table> 
		<table name="#pvpPhysDef">2.00 </table> 
		<set name="icon" val="icon.weapon_voodoo_doll_i00" />
		<set name="operateType" val="P" />
		<set name="targetType" val="SELF" />
		<for>
			<effect name="Buff">
			 <mul stat="pAtk" val="#maxHp"/>
			 <mul stat="mAtk" val="#maxMp"/>
			 <mul stat="pDef" val="#cAtk"/>
			 <mul stat="mDef" val="#rCrit"/>
             <mul stat="pvpPhysDmg" val="#pvpPhysDmg"/>
			 <mul stat="pvpPhysDef" val="#pvpPhysDef"/>
			</effect>
		</for>
	</skill>

Now, How i can edit Items To have effect from skill and to have skill at passive?

Can help me someone?

5 answers to this question

Recommended Posts

  • 0
Posted

If you want to make the item to give the skills without equip you need to change the item TYPE

( in l2jserver files it would look something like this )

 

<item id="73055" type="EtcItem" name="Tatoo of Something">
        <set name="etcitem_type" val="RUNE" />
        <set name="immediate_effect" val="true" />
        <set name="material" val="PAPER" />
        <set name="weight" val="120" />
        <set name="handler" val="ItemSkills" />
        <set name="item_skill" val="27000-1" />
    </item>    

 

skill id 

skill level


 

 

  • 0
Posted
On 9/12/2022 at 9:46 PM, demzyraggaa said:

is it possible that when I equip an armor I can execute a skill at the same time? or summon an npc?

 

Yes, start from UseItem.java and locate the method called to equip an item. When the item is successfully equipped (passed the checks), add your logic. Modern packs usually offer some kind of OnEquipListener, so you don't need to hardcode your logic inside useEquippableItem. Figure out yourself the best way to do it.

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

    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • https://jumpshare.com/share/L45ApA5PVrGN2O5Ua5pQ   Skill synchronization with the server: Launching and synchronizing animations, launching and synchronizing effects. All of this is tied to the server's timing  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..