Jump to content
  • 0
Sign in to follow this  
prism

Cloaking SP Cost/Renovatio Emperium Healing

Question

I want to modify the SP cost of cloaking if the level is 3. I want it to drain 10% of the user's maximum SP per second while cloaked.

 

 

Also, I want Renovatio to work on Emperiums but I only want it to heal 1% of it's HP every 4 seconds.

Edited by prism

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I found how to change the SP cost. It's in status.c. Search for this:

 

case SC_MAXIMIZEPOWER:
case SC_CLOAKING:
if(!status->charge(bl, 0, 1))
break; //Not enough SP to continue.
sc_timer_next(sce->val2+tick, status->change_timer, bl->id, data);
return 0;

 

The 1 is the amount of SP drained per tick.

 

Note: changing this will affect Maximize Power as well so you'll need to separate them into different cases.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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