Jump to content
  • 0

A simple help about a item script about if Refine % increase


ItsFree

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   7
  • Joined:  04/11/15
  • Last Seen:  

Hi, rAthena Community can someone help me with this fast script... trying to find a similar script but i cant like i want...

Effect:
Autocast 1% 'Skill' 
If refine +9 o more  => +0.5% chance to autocast
if refine +10 or more => +0.5% chance to autocast
total = 2%.

 

bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10;

Thx!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

if(getrefine()==9) { set .wbchance,5; } else if(getrefine()>=10) { set .wbchance,10; } bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10+.wbchance;

+9 refine: 10+5/10  = 1.5%

+10 refine or more: 10+10/10 = 2%

Not tested but you can try.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

if(getrefine()==9){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10;}else if(getrefine()>=10){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,20;}

try like that

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

if(getrefine()==9){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10;}else if(getrefine()>=10){ bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,20;}

try like that

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   7
  • Joined:  04/11/15
  • Last Seen:  

Sorry for delay answer... both working, thx ^^ just a little question about 

 

{ set .wbchance,5; }

i can change that to anything right ¿? or.... if i want put more scripts like this i can do it ¿? i mean different script but same "set" ¿?

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