Jump to content
  • 0

compilation error when correcting new formula


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

old formula:

        case TK_JUMPKICK:
            //Different damage formulas depending on damage trigger
            if (sc && sc->data[SC_COMBO] && sc->data[SC_COMBO]->val1 == skill_id)
                skillratio += -100 + 4 * status_get_lv(src); //Tumble formula [4%*baselevel]
            else if (wd->miscflag) {
                skillratio += -100 + 4 * status_get_lv(src); //Running formula [4%*baselevel]
                if (sc && sc->data[SC_SPURT]) //Spurt formula [8%*baselevel]
                    skillratio *= 2;
            }
            else
                skillratio += -70 + 10 * skill_lv;
            break;

new on rAthena:

        case TK_JUMPKICK:
            skillratio += -70 + 10*skill_lv;
            if (sc && sc->data[SC_COMBO] && sc->data[SC_COMBO]->val1 == skill_id)
                skillratio += 10*status_get_lv(src)/3; //Tumble bonus
            if (wd.miscflag)
            {
                skillratio += 10*status_get_lv(src)/3; //Running bonus (TODO: What is the real bonus?)
                if( sc && sc->data[SC_SPURT] )  // Spurt bonus
                    skillratio *= 2;
            }
            break;

1630892884_errorkick.thumb.png.a3cc72c6f9f4a49255bde022b1bbfb25.png

 

I went to add the new formula because the old one was having conflict with the Sprint skill so I went to correct it. When recompiling this error appears

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

4 hours ago, IsabelaFernandez said:

old formula:

        case TK_JUMPKICK:
            //Different damage formulas depending on damage trigger
            if (sc && sc->data[SC_COMBO] && sc->data[SC_COMBO]->val1 == skill_id)
                skillratio += -100 + 4 * status_get_lv(src); //Tumble formula [4%*baselevel]
            else if (wd->miscflag) {
                skillratio += -100 + 4 * status_get_lv(src); //Running formula [4%*baselevel]
                if (sc && sc->data[SC_SPURT]) //Spurt formula [8%*baselevel]
                    skillratio *= 2;
            }
            else
                skillratio += -70 + 10 * skill_lv;
            break;

new on rAthena:

        case TK_JUMPKICK:
            skillratio += -70 + 10*skill_lv;
            if (sc && sc->data[SC_COMBO] && sc->data[SC_COMBO]->val1 == skill_id)
                skillratio += 10*status_get_lv(src)/3; //Tumble bonus
            if (wd.miscflag)
            {
                skillratio += 10*status_get_lv(src)/3; //Running bonus (TODO: What is the real bonus?)
                if( sc && sc->data[SC_SPURT] )  // Spurt bonus
                    skillratio *= 2;
            }
            break;

1630892884_errorkick.thumb.png.a3cc72c6f9f4a49255bde022b1bbfb25.png

 

I went to add the new formula because the old one was having conflict with the Sprint skill so I went to correct it. When recompiling this error appears

 if (wd.miscflag) replace it with if (wd->miscflag)

  • Like 1
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...