Jump to content
  • 0

Item skill passive


InFocus
 Share

Question

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?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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


 

 

Link to comment
Share on other sites

  • 0
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.

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.

Guest
Answer this question...

×   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.

 Share



×
×
  • 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