The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Life Mana Stam Regen *solved*
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #5
RE: Changing Life Regen
(09-13-2013 12:41 PM)Extreme Wrote:  
PHP Code:
[EVENTS E_REGEN]
ON=@SKILLCHANGE
TAG
.OVERRIDE.REGEN_0 100
TAG
.OVERRIDE.REGENVAL_0 <EVAL (<STR>/100) + (<HEALING>/50)>
ON=@STATCHANGE
TAG
.OVERRIDE.REGEN_0 100
TAG
.OVERRIDE.REGENVAL_0 <EVAL (<STR>/100) + (<HEALING>/50)> 
Mana: TAG.OVERRIDE.REGEN_1 and TAG.OVERRIDE.REGENVAL_1
Stam: TAG.OVERRIDE.REGEN_2 and TAG.OVERRIDE.REGENVAL_2

it is only changing the value, right?

The time between the heals is "100" seconds, right?

To activate it only for players,
Code:
//Events related to all players
EventsPlayer=E_REGEN
should I put on "sphere.ini" like this?

PHP Code:
[EVENTS E_REGEN]
ON=@SKILLCHANGE
     TAG
.OVERRIDE.REGEN_0 <EVAL (20) - (<HEALING>/5)> 
     IF (
TAG.OVERRIDE.REGEN_0 <= 0)
          
TAG.OVERRIDE.REGEN_0 1
     
ENDIF
     
TAG.OVERRIDE.REGENVAL_0 <EVAL (<STR>/100) >
     IF ( 
TAG.OVERRIDE.REGENVAL_0 )
          
TAG.OVERRIDE.REGENVAL_0 //default = 1
     
ENDIF 
ON=@STATCHANGE
     TAG
.OVERRIDE.REGEN_0 <EVAL (20 - (<HEALING>/5)>
     IF (
TAG.OVERRIDE.REGEN_0 <= 0)
          
TAG.OVERRIDE.REGEN_0 1
     
ENDIF 
     
TAG.OVERRIDE.REGENVAL_0 <EVAL (<STR>/100)> 
     IF ( 
TAG.OVERRIDE.REGENVAL_0 )
          
TAG.OVERRIDE.REGENVAL_0 //default = 1
     
ENDIF 

Is it Right?
(This post was last modified: 09-13-2013 01:15 PM by AmpereJoule.)
09-13-2013 01:07 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Changing Life Regen - RanXerox - 09-13-2013, 06:55 AM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 10:04 AM
RE: Changing Life Regen - Extreme - 09-13-2013, 12:41 PM
RE: Changing Life Regen - AmpereJoule - 09-13-2013 01:07 PM
RE: Changing Life Regen - Extreme - 09-13-2013, 01:24 PM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 01:33 PM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 04:41 AM
RE: Changing Life Regen - Extreme - 09-14-2013, 04:54 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 05:58 AM
RE: Changing Life Regen - Ben - 09-14-2013, 08:20 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 08:35 AM
RE: Changing Life Regen - Extreme - 09-14-2013, 10:05 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 11:56 AM
RE: Changing Life Regen - Ben - 09-14-2013, 10:22 AM
Re: RE: Changing Life Regen - Extreme - 09-14-2013, 02:17 PM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 02:49 PM
RE: Changing Life Regen - Ben - 09-14-2013, 10:38 PM
RE: Changing Life Regen - AmpereJoule - 05-06-2015, 11:09 PM

Forum Jump:


User(s) browsing this thread: 8 Guest(s)