Jump to content
  • 0

[Weapon] Multiskill


Question

Posted (edited)

Hello ppl

 

I dont know if is possible set multi skill in a weapon.

 

Example:

 

Homunkulus's Sword - Acumen + Haste[Active Skill]

 

In the database (weapons) I can set only 1 skill.

 

Server C5.

 

Srry for my english,

Thanks

Edited by maganius

Recommended Posts

  • 0
Posted

ok dude easy there is tho ways

 

First one:

 

Steep 1: add this line to your weapon .xml 

<set name="item_skill" val="3599-1" /> <!-- Where Val="3599-1" its your Skill-SkillLvl -->

Steep 2: Create an new skill like this at stats/skill/ folder

<skill id="3599" levels="1" name="Special hability Acumen/Haste">
		<set name="magicLvl" val="70" /> 
		<set name="icon" val="icon.skill1085" />
		<set name="operateType" val="P" />
		<set name="targetType" val="SELF" />
		<for>
			<effect name="Buff">
				<mul order="0x30" stat="mAtkSpd" val="1.15" /><!-- Acumen effect-->
                                <mul order="0x30" stat="pAtkSpd" val="1.08" /><!-- Haste effect-->
			</effect>
		</for>
	</skill>

Second and easyer one:

 

Find Your Weapon .xml and add this in their bonnuses 

<for>
     <mul order="0x30" stat="mAtkSpd" val="1.15" /><!-- Acumen effect-->
     <mul order="0x30" stat="pAtkSpd" val="1.08" /><!-- Haste effect-->
</for>

let me know if works for u

  • 0
Posted (edited)

Hi Rsx

 

I can increase mAtkSpd and pAtkSpd but I cant set 2 skill active in a weapon.

 

I configure this weapon but dont work:

 

Weapon XML

<item id='8689' name="Blood Sword Akamanah">
  <for>
    <set val='122' order='0x08' stat='pAtk'/>
    <set val='68' order='0x08' stat='mAtk'/>
    <set val='8' order='0x08' stat='rCrit'/>
    <add val='0' order='0x10' stat='accCombat'/>
    <set val='379' order='0x08' stat='pAtkSpd'/>
    <enchant val='0' order='0x0C' stat='pAtk'/>
    <enchant val='0' order='0x0C' stat='mAtk'/>
    <!-- SA: Back Blow -->
    <add order='0x40' stat='rCrit' val='67'>
      <and>
        <player behind='True'/>
      </and>
    </add>
  </for>
</item>

Skill XML

<skill id="7065" levels="1" name="Special hability Acumen/Haste">
		  <set name="save" val="4"/>
		  <set name="power" val="5.0"/>
		  <set name="target" val="TARGET_ONE"/>
		  <set name="skillType" val="BLEED"/>
		  <set name="operateType" val="OP_ACTIVE"/>
		  <set name="castRange" val="-1"/>
		  <for>
			<effect count="7" name="DamOverTime" time="3" val="66"/>
		  </for>
</skill>

In mysql weapon set in:

item_skill_id = 7065
item_skill_level = 1

Image when use the weapon in active skills

 

skill_zpsdd19eb0c.jpg

Edited by maganius
  • 0
Posted (edited)

skill type bleed?

Effect damOverTime?

 

do you want an weapon skill ability not an debuff skill... check it again.

 

And you have to add data to your client to see ur skill icon, skillgrp and stuff

 

and just add 1 skill wich have all ur effects, First way i said

Edited by Rsx - HellaFlush
  • 0
Posted

He told you and gave ready example on how to make it work as you wish and still, you failed .. It's sad :P

 

The example dont work, for these reason I modify the script and try set the skill..

 

Do not mock those who do not know, no one was born knowing I can also have other skills in which you do not.

 

Talking and explaining people understand.

 

There are always people who know more but do not think for this reason that we all need to know the same thing.

 

Remember:

Talking and explaining people understand.
  • 0
Posted (edited)

skill type bleed?

Effect damOverTime?

 

do you want an weapon skill ability not an debuff skill... check it again.

 

And you have to add data to your client to see ur skill icon, skillgrp and stuff

 

and just add 1 skill wich have all ur effects, First way i said

 

I try ur script but it only add mAtkSpd and pAtkSpd, I need add 2 active skill Haste and Acumen active skill.

 

I'll keep trying with ur script.

 

PD: skill Special hability Acumen/Haste dont show in active/pasive skill

Edited by maganius
  • 0
Posted (edited)

so you want acumen, and haste skill when u eqquip ur weapon? thats it?

 

I want acumen and haste skill active <- click icon skill for use, when equip the weapon appear in windows skill actives.

Edited by maganius
  • 0
Posted

 

Just add this line to your weapon's xml

<set name="item_skill" val="1085-3;1086-2" />

 

The weapon disappears and give error in console:

Item item_id=8689 not know, object_id=268478961

Weapon XML

<item id='8689' name="Blood Sword Akamanah">
  <for>
    <set val='361' order='0x08' stat='pAtk'/>
    <set val='137' order='0x08' stat='mAtk'/>
    <set val='8' order='0x08' stat='rCrit'/>
    <add val='0' order='0x10' stat='accCombat'/>    
    <enchant val='0' order='0x0C' stat='pAtk'/>
    <enchant val='0' order='0x0C' stat='mAtk'/>
    <set name="item_skill" val="1085-3;1086-2" />
  </for>
</item>
  • 0
Posted

Do not add it under <for> clause.. Example

 

 

    <item id="9140" type="Weapon" name="Salvation Bow">
        <set name="default_action" val="equip" />
        <set name="weapon_type" val="BOW" />
        <set name="bodypart" val="lrhand" />
        <set name="random_damage" val="1" />
        <set name="attack_range" val="500" />
        <set name="damage_range" val="0;0;10;0" />
        <set name="material" val="WOOD" />
        <set name="weight" val="900" />
        <set name="soulshots" val="1" />
        <set name="spiritshots" val="1" />
        <set name="mp_consume" val="1" />
        <set name="reuse_delay" val="1500" />
        <set name="item_skill" val="1085-3;1086-2" />
        <for>
            <set order="0x08" stat="pAtk" val="1" />
            <set order="0x08" stat="mAtk" val="1" />
            <set order="0x08" stat="rCrit" val="12" />
            <sub order="0x10" stat="accCombat" val="3" />
            <set order="0x08" stat="pAtkSpd" val="293" />
        </for>
    </item>
  • 0
Posted

Do not add it under <for> clause.. Example

 

 

    <item id="9140" type="Weapon" name="Salvation Bow">
        <set name="default_action" val="equip" />
        <set name="weapon_type" val="BOW" />
        <set name="bodypart" val="lrhand" />
        <set name="random_damage" val="1" />
        <set name="attack_range" val="500" />
        <set name="damage_range" val="0;0;10;0" />
        <set name="material" val="WOOD" />
        <set name="weight" val="900" />
        <set name="soulshots" val="1" />
        <set name="spiritshots" val="1" />
        <set name="mp_consume" val="1" />
        <set name="reuse_delay" val="1500" />
        <set name="item_skill" val="1085-3;1086-2" />
        <for>
            <set order="0x08" stat="pAtk" val="1" />
            <set order="0x08" stat="mAtk" val="1" />
            <set order="0x08" stat="rCrit" val="12" />
            <sub order="0x10" stat="accCombat" val="3" />
            <set order="0x08" stat="pAtkSpd" val="293" />
        </for>
    </item>

I set after clause for and work but only appear the first skill declared :/

 

I try following this changes:

 

http://trac.l2jfree.com/l2jserver/changeset/2047

 

but when compile and start server game appear severals error mybe not is for my rev¿?

 

I will keep looking for ways

 

In l2weapons.java have this code:

 

 

int sId = set.getInteger("item_skill_id");
int sLv = set.getInteger("item_skill_lvl");
  if (sId > 0 && sLv > 0)
         _itemSkill = SkillTable.getInstance().getInfo(sId, sLv);

mybe is only for one skill?

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



×
×
  • Create New...