Jump to content
  • 0

compilation error when correcting new formula


Question

Posted

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

1 answer to this question

Recommended Posts

  • 1
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...