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?

  • 0
Posted

So what a hell pack are you using that it doesn't work ? oO

 

If you do like the l2jserver it's supposed to work.

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

    • Inventory restock: Premium business accounts are now available.   ✔ Wallester Business EU 🇪🇺|💳 Unlimited virtual cards, physical cards, 🏦 multi-currency IBAN, ₿ crypto & stablecoin deposits. ✔ Stripe Business UK 🇬🇧|💳 Instant virtual cards (Visa/Mastercard), high-conversion checkout, multi-currency payouts, ₿ crypto payments, no-code payment links. ✔ Mercury Business US 🇺🇸|🏦 US checking & savings, 💳 unlimited virtual cards, domestic & International wires, native stablecoin settlement. ✔ Payset Business EU 🇪🇺|🏦 Multiple IBANs, UK sort code, SEPA Instant, 💳 unlimited virtual cards, multi-currency accounts. ✔ Novo Business US 🇺🇸|🏦 Business checking account, ACH payments & invoicing, 💳 virtual & physical cards, novo boost.
    • Let me see if I understand correctly, older gentlemen, when a newcomer shows up to create modern things with the help of AI, doing what you charge them to do, you point the finger and laugh. I believe that's why everything is stagnant. The product isn't for programming experts, it's for newcomers. Don't buy from you if they can do it themselves using this base. You're going to deliver a similar product, maybe even worse than this one, so why are you complaining? PowerShell, as you well know, started with it, then came new platforms and new apps, new creation models, all with different languages; I chose the simplest one for my taste. This is about being organized and knowing how to choose the right words for each situation. It's not 100%, but it already gives a good impression. Nothing is 100%, so a topic written by AI, and all the code that you charge an absurd amount for to prohibit and sell hacks, could be open source so that everyone can create new practices, new models, new information for passing packets, prohibiting the use of cheats that cause server owners to break so much. Let's remember that the Admin doesn't always shut down the server; it's the players who find problems and take advantage by buying and reselling items, and they say that the GM shuts down the server every week, but that's a lie. What they do is duplicate items with packages and sell them, but perhaps this could give some future developers a starting point to create their own protection following the model in the initial documentation. Because none of you answer a question from a newbie, you think you're superior because you have knowledge, but with AI, people like that can have the same knowledge as you, but with less practice. And if they practice a lot, 10,000 hours, they can be as good as all of you older developers in the L2J field.
    • ✨ Exclusive Offer for Marketplace Growth 🔥 Elevate your performance with a premium bonus. 💲 Top up your balance with $100 or more and receive an additional $5 credit — seamlessly added to your account. ⭐️ Designed for those who value efficiency, scale, and results. ⚡️ Effortless. Refined. Effective. 💥 Enhance your strategy today 💥
  • 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..