Jump to content
  • 0

Edit SC_EXPBOOST to accept negative values.


Jovz

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  02/23/21
  • Last Seen:  

 

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

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  02/23/21
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

you don't need to use SC_EXPBOOST. better use bExpAddClass,CLASS_ALL,-90;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  02/23/21
  • Last Seen:  

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