Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 05-19-2006, 04:50 AM   #1 (permalink)
Forum Newbie
 
Join Date: Oct 2004
Age: 20
Posts: 19
Default PvP damage cap

if you want cap damages on pvp you must make few modifications:

in AOS.cs
under it:
Code:
totalDamage /= 10000;

			if ( totalDamage < 1 )
			{
				totalDamage = 1;
			}
add:
Code:
if ( from is PlayerMobile )
			{	
				if ( m is PlayerMobile )
				{
					if ( totalDamage > 40 )
					{
						totalDamage = 40;
					}
				}				
			}
its maked on max 40 dmg, you can increases/decreases this dmg changing red values

Last edited by Kolo; 05-20-2006 at 11:35 AM.
Kolo is offline  
 

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