Jump to content
  • 0

Infinity Rod


Question

Posted

Hello again!

Infinity Rod now is working on good_magic. I want to make it works only when someone is using heal and not every good_magic. Any idea?

8 answers to this question

Recommended Posts

  • 0
Posted
19 hours ago, Eleven said:

Hello again!

Infinity Rod now is working on good_magic. I want to make it works only when someone is using heal and not every good_magic. Any idea?

Upload weapons xml

  • 0
Posted

    <item id="6614" type="Weapon" name="Infinity Rod">
        <set name="is_magical" val="true" />
        <set name="default_action" val="equip" />
        <set name="weapon_type" val="BLUNT" />
        <set name="bodypart" val="rhand" />
        <set name="random_damage" val="20" />
        <set name="attack_range" val="40" />
        <set name="damage_range" val="0;0;40;120" />
        <set name="crystal_count" val="2850" />
        <set name="crystal_type" val="S" />
        <set name="material" val="ADAMANTAITE" />
        <set name="weight" val="1300" />
        <set name="price" val="0" />
        <set name="soulshots" val="1" />
        <set name="spiritshots" val="1" />
        <set name="is_oly_restricted" val="true" />
        <set name="is_tradable" val="false" />
        <set name="is_dropable" val="false" />
        <set name="is_destroyable" val="false" />
        <set name="is_sellable" val="false" />
        <set name="is_depositable" val="false" />
        <set name="oncast_chance" val="3" />
        <set name="oncast_skill" val="3598-1" />
        <set name="item_skill" val="3597-1" />
        <cond msgId="1518">
            <player isHero="true" />
        </cond>
        <for>
            <set stat="pAtk" val="238" />
            <set stat="mAtk" val="182" />
            <set stat="rCrit" val="4" />
            <add stat="accCombat" val="4" />
            <set stat="pAtkSpd" val="379" />
        </for>
    </item>

 

    <skill id="3597" levels="1" name="Special Ability: Infinity Rod">
        <set name="target" val="SELF"/>
        <set name="skillType" val="BUFF" />
        <set name="operateType" val="PASSIVE" />
        <set name="magicLvl" val="80" />
        <set name="chanceType" val="ON_MAGIC_GOOD" />
        <set name="activationChance" val="3" />
        <set name="triggeredId" val="3598" />
        <set name="triggeredLevel" val="1" />
        <for>
            <mul stat="maxMp" val="1.3"/>
            <mul stat="maxCp" val="1.5"/>
            <mul stat="mAtkSpd" val="1.15"/>
            <add stat="regMp" val="0.51"/>
            <mul stat="pvpPhysDmg" val="1.05"/>
            <mul stat="pvpMagicalDmg" val="1.05"/>
            <mul stat="pvpPhysSkillsDmg" val="1.05"/>
        </for>
    </skill>

 

  • 0
Posted (edited)
1 hour ago, Eleven said:

    <item id="6614" type="Weapon" name="Infinity Rod">
        <set name="is_magical" val="true" />
        <set name="default_action" val="equip" />
        <set name="weapon_type" val="BLUNT" />
        <set name="bodypart" val="rhand" />
        <set name="random_damage" val="20" />
        <set name="attack_range" val="40" />
        <set name="damage_range" val="0;0;40;120" />
        <set name="crystal_count" val="2850" />
        <set name="crystal_type" val="S" />
        <set name="material" val="ADAMANTAITE" />
        <set name="weight" val="1300" />
        <set name="price" val="0" />
        <set name="soulshots" val="1" />
        <set name="spiritshots" val="1" />
        <set name="is_oly_restricted" val="true" />
        <set name="is_tradable" val="false" />
        <set name="is_dropable" val="false" />
        <set name="is_destroyable" val="false" />
        <set name="is_sellable" val="false" />
        <set name="is_depositable" val="false" />
        <set name="oncast_chance" val="3" />
        <set name="oncast_skill" val="3598-1" />
        <set name="item_skill" val="3597-1" />
        <cond msgId="1518">
            <player isHero="true" />
        </cond>
        <for>
            <set stat="pAtk" val="238" />
            <set stat="mAtk" val="182" />
            <set stat="rCrit" val="4" />
            <add stat="accCombat" val="4" />
            <set stat="pAtkSpd" val="379" />
        </for>
    </item>

 

    <skill id="3597" levels="1" name="Special Ability: Infinity Rod">
        <set name="target" val="SELF"/>
        <set name="skillType" val="BUFF" />
        <set name="operateType" val="PASSIVE" />
        <set name="magicLvl" val="80" />
        <set name="chanceType" val="ON_MAGIC_GOOD" />
        <set name="activationChance" val="3" />
        <set name="triggeredId" val="3598" />
        <set name="triggeredLevel" val="1" />
        <for>
            <mul stat="maxMp" val="1.3"/>
            <mul stat="maxCp" val="1.5"/>
            <mul stat="mAtkSpd" val="1.15"/>
            <add stat="regMp" val="0.51"/>
            <mul stat="pvpPhysDmg" val="1.05"/>
            <mul stat="pvpMagicalDmg" val="1.05"/>
            <mul stat="pvpPhysSkillsDmg" val="1.05"/>
        </for>
    </skill>

 

 

change that or delete it completely
<set name="chanceType" val="ON_MAGIC_GOOD" />

Edited by Sidereal Day
  • 0
Posted
On 12/29/2021 at 10:51 AM, Eleven said:

Hello again!

Infinity Rod now is working on good_magic. I want to make it works only when someone is using heal and not every good_magic. Any idea?

Which pack/client do you use?

  • 0
Posted
9 hours ago, Eleven said:

exactly

CreatureCast.java method callSkill

 

find this

Quote

if (_actor.getChanceSkills() != null)
                        _actor.getChanceSkills().onSkillHit(target, false, skill.isMagic(), skill.isOffensive());
 

 

change to if (_actor.getChanceSkills() != null && !skill.isToggle() && !skill.isPotion() )

 

You might need to add more checks there

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


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