|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#29 (permalink) |
|
Forum Novice
Join Date: Aug 2003
Location: Malas
Age: 41
Posts: 242
|
I added this script and the fixes and once in a great while we get a stat gain but way to far and few between.
whould i change the 33.3 to a larger number or smaller number to increase the speed on this just abit? Code:
SkillInfo info = skill.Info;
if ( from.StrLock == StatLockType.Up && ((info.StrGain / 33.3) + RateDefinitions.StatGainBonus) > Utility.RandomDouble() )
{
if( info.StrGain != 0 )
GainStat( from, Stat.Str );
}
else if ( from.DexLock == StatLockType.Up && ((info.DexGain / 33.3) + RateDefinitions.StatGainBonus) > Utility.RandomDouble() )
{
if( info.DexGain != 0 )
GainStat( from, Stat.Dex );
}
else if ( from.IntLock == StatLockType.Up && ((info.IntGain / 33.3) + RateDefinitions.StatGainBonus) > Utility.RandomDouble() )
{
if( info.IntGain != 0 )
GainStat( from, Stat.Int );
I was also hoping to fully understand the impact of these numbers in the second .cs Code:
public static double ratebonus = 0.0; // skillgain rate increase public static int gainbonus = 1; // gain rate increment public static double statgaindelay = 60.0; // stat gain delay public static double StatGainBonus = 0.0; // extra chance to gain in stats. 0.0 - 1.0 even after adding the fix. You get 1 stat gain and nothing till a restart. Thank you for your time in this matter.
__________________
Save the flames for your own personal life Last edited by Cyndrz; 09-22-2008 at 03:36 PM. Reason: added more |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|