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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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