|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Feb 2003
Posts: 68
|
I've been trying to change the mana regen rate but haven't quite figured out how.. I've edited regenrates.cs, and i've tried:
Mobile.DefaultManaRate = TimeSpan.FromSeconds( 0.01 ); or Mobile.DefaultManaRate = TimeSpan.FromSeconds( 500.0 ); doesn't matter what I change it to, the mana regenerates at the same rate. Any advice would be greatly appreciated. Thanks |
|
|
|
|
|
#2 (permalink) |
|
Join Date: Feb 2004
Location: Canada eh
Posts: 413
|
The value you're playing with, default rate, seems to only be used if the mobile has no skills:
Code:
private static TimeSpan Mobile_ManaRegenRate( Mobile from )
{
if ( from.Skills == null )
return Mobile.DefaultManaRate;
----------------------------------------------------------------------------------------------------------------------------------- awdball · NON-beligerent Forum Member · · · · ;^) · · · · RUNUO-FAQ · · [CODE] Post CODE inside tags [/CODE] The team for moderation on RUNUO Forums · · · · HelpSomeone (old school c coder learning and luvin c#) · · · · · · · Great C# Tutorial
__________________
awdball |
|
|
|
|
|
#4 (permalink) | |
|
Join Date: Feb 2004
Location: Canada eh
Posts: 413
|
Quote:
Code:
return TimeSpan.FromSeconds( rate ); ----------------------------------------------------------------------------------------------------------------------------------- awdball · NON-beligerent Forum Member · · · · ;^) · · · · RUNUO-FAQ · · [CODE] Post CODE inside tags [/CODE] The team for moderation on RUNUO Forums · · · · HelpSomeone (old school c coder learning and luvin c#) · · · · · · · Great C# Tutorial
__________________
awdball |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|