Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 04-25-2004, 02:48 AM   #1 (permalink)
Newbie
 
Join Date: Feb 2003
Posts: 68
Question Mana Regen Rate

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
bleef is offline   Reply With Quote
Old 04-25-2004, 03:41 AM   #2 (permalink)
 
Join Date: Feb 2004
Location: Canada eh
Posts: 413
Default

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;
It seems you might want to play with the code that follows those three lines.
-----------------------------------------------------------------------------------------------------------------------------------
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
awdball is offline   Reply With Quote
Old 04-25-2004, 03:54 AM   #3 (permalink)
Newbie
 
Join Date: Feb 2003
Posts: 68
Default

Quote:
Originally Posted by awdball
It seems you might want to play with the code that follows those three lines.
hehe thats my problem, i've been playing around with the code but i'm totally lost....
bleef is offline   Reply With Quote
Old 04-25-2004, 05:24 AM   #4 (permalink)
 
Join Date: Feb 2004
Location: Canada eh
Posts: 413
Default

Quote:
Originally Posted by bleef
hehe thats my problem, i've been playing around with the code but i'm totally lost....
Hows about a bigger hint then. The last line of the method Mobile_ManaRegenRate reads:
Code:
return TimeSpan.FromSeconds( rate );
You could probably get away with changing nothing but that line from the base distro and achieve your goal.
-----------------------------------------------------------------------------------------------------------------------------------
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
awdball is offline   Reply With Quote
Old 04-25-2004, 05:37 AM   #5 (permalink)
Newbie
 
Join Date: Feb 2003
Posts: 68
Talking

thank you very much awdball for the help!!!!! your awesome
bleef is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5