Jump to content
  • 0

Edit SC_EXPBOOST to accept negative values.


Question

Posted (edited)

 

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

4 answers to this question

Recommended Posts

  • 0
Posted
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?

  • 0
Posted
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...

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