Jump to content
  • 0
Jovz

Edit SC_EXPBOOST to accept negative values.

Question

 

anyone know how to edit the SRC_EXPBOOST to accept negative values?

 

My script.

-   script  rates   -1,{
 
OnPCLoginEvent:
OnPCBaseLvUpEvent:
 
    if(BaseLevel >= 255 && BaseLevel <= 264) {
        announce "Good job for reaching level "+ BaseLevel +". We are now decreasing the EXP Rates for this character. GLHF!",bc_self, 0xF83D6A, FW_BOLD;
        sc_start SC_EXPBOOST,864000000,-990;
        sc_start SC_JEXPBOOST,864000000,-990;
        //sc_end SC_EXPBOOST;
        //sc_end SC_JEXPBOOST;
    }
 
    if(BaseLevel == 265) {
        sc_end SC_EXPBOOST;
        sc_end SC_JEXPBOOST;
    }
 
    end;
}



I updated the status.cpp - case SC_EXPBOOST: case SC_JEXPBOOST: val1 = val1; break;

 

it didn't work it still uses the normal base exp rate /job exp rate.

 

 

 

Edited by Jovz
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
1 minute ago, Haruka Mayumi said:

I recommend that you use `bonus_script` for the easiest one which doesn't require source modification..

Can I use SC_EXPBOOST?

Link to comment
Share on other sites

  • 0
I hope this will work.
 
-   script  rates   -1,{
 
OnPCLoginEvent:
OnPCBaseLvUpEvent:
 
    if(BaseLevel >= 255 && BaseLevel <= 264) {
        announce "Good job for reaching level "+ BaseLevel +". We are now decreasing the EXP Rates for this character. GLHF!",bc_self, 0xF83D6A, FW_BOLD;
        //sc_start SC_EXPBOOST,864000000,-990;
        //sc_start SC_JEXPBOOST,864000000,-990;
 
        bonus_script "{ bonus2 bExpAddClass,CLASS_ALL,-90; }",864000000;
 
    }
 
    if(BaseLevel == 265) {
        // no need to reset?
    }
 
    end;
}

it didn't work, it now gives a lot of exp...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.