Jump to content
  • 0

[help] Cp restore on an item skill.


Question

Posted

I've made a weapon, and i added a skill on it... but i have a problem... i wanna make it to restore 10k cp every time i use this skill..

 

the xml code is that

 

<effect count="1" name="Buff" time="40" val="0" stackOrder="1" stackType="Skillname anyway..">

      <mul val='2.0' order='0x30' stat='mAtk'/>

      <mul val='0.85' order='0x30' stat='pDef'/>

< What should i write here in order to get 10k cp RESTORE?>

 

dont gimme MaxCp command, it doestn restore, it just raises the max cp of mine...

 

neither the braveheart code cause it has SkillType="COMBATPOINTHEAL" , while my item skill needs to be SkillType="BUFF".

 

 

Thanks in advance.

3 answers to this question

Recommended Posts

  • 0
Posted

Well if the weapon is supposed to have a skill on it, you have to code the skill in data part, and code the weapon (add/remove skill when equip/unequip) on java part. You can't made it just from data.

 

The result will be a weapon, when you equip it you got the skill, when you remove the item the skill dissapears.

 

As skill, Braveheart c/p is fine. I don't know why it won't be.

 

Just find the code about the cupid bow which give you "love arrow" skill as a good example. Or cursed weapons, which give you the 2 skills.

 

----

 

I don't get that last part :

neither the braveheart code cause it has SkillType="COMBATPOINTHEAL" , while my item skill needs to be SkillType="BUFF"

Why should it be a buff from what you say higher ? It isn't supposed to work as a OL CP heal ?

  • 0
Posted

Well if the weapon is supposed to have a skill on it, you have to code the skill in data part, and code the weapon (add/remove skill when equip/unequip) on java part. You can't made it just from data.

 

The result will be a weapon, when you equip it you got the skill, when you remove the item the skill dissapears.

 

As skill, Braveheart c/p is fine. I don't know why it won't be.

 

Just find the code about the cupid bow which give you "love arrow" skill as a good example. Or cursed weapons, which give you the 2 skills.

 

----

 

I don't get that last part :Why should it be a buff from what you say higher ? It isn't supposed to work as a OL CP heal ?

 

ok listen. if you check Overlords cp heal/braveheart or ANY Other cp heal. on "Skilltype" you will see as value "COMBATPOINTHEAL". but look my xml..

 

 

<skill id="7056" levels="1" name="Arcane Frenzy">

  <set name="power" val="0.0"/>

  <set name="target" val="TARGET_SELF"/>

  <set name="reuseDelay" val="12000000"/>

  <set name="hitTime" val="4000"/>

<set name="skillType" val="BUFF"/>

  <set name="isMagic" val="true"/>

  <set name="operateType" val="OP_ACTIVE"/>

  <set name="castRange" val="400"/>

  <set name="effectRange" val="400"/>

  <set name="aggroPoints" val="495"/>

  <for>

    <effect count="1" name="Buff" time="40" val="0" stackOrder="1" stackType="ArcaneFrenzy">

      <mul val='2.0' order='0x30' stat='mAtk'/>

      <mul val='0.85' order='0x30' stat='pDef'/>

  <add val='11' order='0x40' stat='runSpd'/>

    </effect>

  </for>

</skill>

Any idea how to add restore Cp simply on this xml? :D

 

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