Jump to content
  • 0

cap_value


braian

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/26/13
  • Last Seen:  

Show me how use with more than one skill

 

return (skill_num == KN_BOWLINGBASH)?cap_value(damage,0,36000):damage;

 

I repeat whit another skill, but not function...

 

 

On this Topic http://rathena.org/board/topic/58038-question-how-to-put-max-cap-damage/

 

 

 

 

 

 

 

Help me pls...

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

You could use a skill_inf3, to mark all skill you wish to be capped, that would be the best way to do it imo, otherwise here a simple solution for you.

switch(skill_num){
case RK_HUNDREDSPEAR:
case RK_DEATHBOUND:
case KN_BOWLINGBASH: 
//... do not break, list of capped skill
return cap_value(damage,0,36000);
default: return dammage; //other are not capped
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/26/13
  • Last Seen:  

Only the first skill work... Other skills not work...

 

switch( skill_id ){
case MG_FIREBOLT:
case MG_COLDBOLT:
//... do not break, list of capped skill
return cap_value(damage,0,6000);
default: return damage; //other are not capped
}
 
Not work
 
 
 
I put too this form..
 
switch( skill_id ){
case MG_FIREBOLT:
//... do not break, list of capped skill
return cap_value(damage,0,6000);
default: return damage; //other are not capped
}
switch( skill_id ){
case MG_COLDBOLT:
//... do not break, list of capped skill
return cap_value(damage,0,6000);
default: return damage; //other are not capped
}
 
 
It Not Work Too...
 
Only the first skill work, another skill it not work...
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/26/13
  • Last Seen:  

Bump...

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.

×
×
  • Create New...