Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 06-03-2004, 11:47 AM   #1 (permalink)
Dream Sage
 
joshw's Avatar
 
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 841
Default How to add Stat bonuses to vet rewards

In engines/VeteranRewards folder open up RewardSystem.cs look for the code

Code:
public static bool Enabled = true; // change to true to enable vet rewards
		public static bool SkillCapRewards = true; // assuming vet rewards are enabled, should total skill cap bonuses be awarded? (720 skills total at 4th level)
public static TimeSpan RewardInterval = TimeSpan.FromDays( 30.0 );
in that area add this code

Code:
public static bool StatCapRewards = true; // assuming vet rewards are enabled, should total skill cap bonuses be awarded? (300 skills total at 4th level)
your stat cap can be what ever you want i use 300 as an exsample

the scroll down till you see this code

Code:
private static void EventSink_Login( LoginEventArgs e )
		{
			if ( !e.Mobile.Alive )
				return;

			int cur, max, level;

			ComputeRewardInfo( e.Mobile, out cur, out max, out level );

			if ( e.Mobile.SkillsCap == 7000 || e.Mobile.SkillsCap == 7200 || e.Mobile.SkillsCap == 7400 || e.Mobile.SkillsCap == 7600 || e.Mobile.SkillsCap == 7800 || e.Mobile.SkillsCap == 8000 || e.Mobile.SkillsCap == 8200 || e.Mobile.SkillsCap == 8400 || e.Mobile.SkillsCap == 8600 || e.Mobile.SkillsCap == 8800 || e.Mobile.SkillsCap == 9000 || e.Mobile.SkillsCap == 9200 )
			{
				if ( level > 11 )
					level = 11;
				else if ( level < 0 )
					level = 0;

				if ( SkillCapRewards )
					e.Mobile.SkillsCap = 7000 + (level * 200);
				else
					e.Mobile.SkillsCap = 7000;
			}
if ( cur < max )
				e.Mobile.SendGump( new RewardNoticeGump( e.Mobile ) );
		}
	}
now in this area after this line of code

Code:
if ( SkillCapRewards )
					e.Mobile.SkillsCap = 7000 + (level * 200);
				else
					e.Mobile.SkillsCap = 7000;
			}
place this code

Code:
if ( e.Mobile.StatCap == 225 || e.Mobile.StatCap == 230 || e.Mobile.StatCap == 235 || e.Mobile.StatCap == 240 || e.Mobile.StatCap == 245 || e.Mobile.StatCap == 250 || e.Mobile.StatCap == 255 || e.Mobile.StatCap == 260 || e.Mobile.StatCap == 265 || e.Mobile.StatCap == 270 || e.Mobile.StatCap == 275 || e.Mobile.StatCap == 280 )
			{
				if ( level > 11 )
					level = 11;
				else if ( level < 0 )
					level = 0;

				if ( StatCapRewards )
					e.Mobile.StatCap = 225 + (level * 5);
				else
					e.Mobile.StatCap = 225;
			}
you can pretty much set up any amount of time to affect this reward
__________________
To walk among the few of understanding
Admin of Geia Adventures A dead Shard no longer in existsance
joshw 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