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: #19
RE: Changing Life Regen
Final solution:

Knowing that the stats max is 800.


in "Sphere.ini" I put:
Code:
// Time in seconds for hitpoint regeneration
Regen0=21

// Time in seconds for mana regeneration
Regen1=21

// Time in seconds for stamina regeneration
Regen2=21


I created an event (in the end of "sphere_events_human.scp"):
Code:
[EVENTS e_meu_regen]
ON=@Login
TAG.OVERRIDE.REGEN_0 <EVAL (<HEALING>/50)> //Regen0 = 21, formula eh Regen0 - OVERRIDE.REGEN_0 e as skills sao 1000, por isso o div por 50
TAG.OVERRIDE.REGENVAL_0 <EVAL 1 + (<STR>/300)>
TAG.OVERRIDE.REGEN_1 <EVAL (<MEDITATION>/50)>
TAG.OVERRIDE.REGENVAL_1 <EVAL 1 + (<INT>/300)>
TAG.OVERRIDE.REGEN_2 <EVAL (<HIDING>/50)>
TAG.OVERRIDE.REGENVAL_2 <EVAL 1 + (<DEX>/300)>


ON=@SKILLCHANGE
TAG.OVERRIDE.REGEN_0 <EVAL (<HEALING>/50)>
TAG.OVERRIDE.REGEN_1 <EVAL (<MEDITATION>/50)>
TAG.OVERRIDE.REGEN_2 <EVAL (<HIDING>/50)>

ON=@STATCHANGE
TAG.OVERRIDE.REGENVAL_0 <EVAL 1 + (<STR>/300)>
TAG.OVERRIDE.REGENVAL_1 <EVAL 1 + (<INT>/300)>
TAG.OVERRIDE.REGENVAL_2 <EVAL 1 + (<DEX>/300)>


back to "Sphere.ini" I add:
Code:
//Events related to all players
EventsPlayer=e_meu_regen //and others events

Now the players can have 1 or 2 regen per second Smile

Thank you very much guys /o/
05-06-2015 11:09 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: 1 Guest(s)