Jump to content
  • 0

Change triple rate when equip specific item


eppc0330

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  11/17/18
  • Last Seen:  

Hi, I want to make knuckle with changing triple attack rate for +20 refine bonus. 

I found this in battle.cpp

if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) {
#ifdef RENEWAL
		int triple_rate = 30; //Base Rate
#else
		int triple_rate = 30 - skillv; //Base Rate
#endif

My custom item name is Asura.

Is it possible to change triple rate to 60% if I equip item +20 Asura?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

Hello,

Triple attack is an auto cast right? So maybe add a check inside your item to autocast tripleattack if refine +20? Dunno how it adds to the bas chance to triple attack so may need to test what happens and put the right values.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  11/17/18
  • Last Seen:  

8 minutes ago, Kreustoo said:

Hello,

Triple attack is an auto cast right? So maybe add a check inside your item to autocast tripleattack if refine +20? Dunno how it adds to the bas chance to triple attack so may need to test what happens and put the right values.

That means triple rate is always 30% in any level. 

Actually I already have tested script :

skill "MO_TRIPLEATTACK",11;

and have changed battle.cpp to :

if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) {
#ifdef RENEWAL
		int triple_rate = (skillv == 11)?100:30; //Base Rate
#else
		int triple_rate = 30 - skillv; //Base Rate
#endif

It works well but there's very very tiny error with skill MO_TRIPLEATTACK 11 level.

So I'm finding another way.

 

Thanks for advice anyway!!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

Adding MO_TRIPLEATTACK level 11 when wearing is a huge buff, because now, they don't need AT ALL the skill, I'd rather put in the item script, getting the level of the skill +1 (forgot how but there's a script command to check it, checkskill?).

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  11/17/18
  • Last Seen:  

On 8/16/2020 at 11:57 PM, Kreustoo said:

Adding MO_TRIPLEATTACK level 11 when wearing is a huge buff, because now, they don't need AT ALL the skill, I'd rather put in the item script, getting the level of the skill +1 (forgot how but there's a script command to check it, checkskill?).

Exactly my item script is :

if(getskilllv("MO_TRIPLEATTACK") == 10){ skill "MO_TRIPLEATTACK",getskilllv("MO_TRIPLEATTACK")+1; }

But I don't want to use "skill" script because when I unequip and equip this item, 

Tripleattack skill level is shown as 10 until I relog my character, even though it still works as 11.

 

On 8/16/2020 at 11:57 PM, Kreustoo said:

Adding MO_TRIPLEATTACK level 11 when wearing is a huge buff, because now, they don't need AT ALL the skill, I'd rather put in the item script, getting the level of the skill +1 (forgot how but there's a script command to check it, checkskill?).

OH MY GOD.... I found the reason of error. It was my custom weapon card. When I use official card there's no error. I can use skill script now....

Edited by eppc0330
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...