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 06-25-2006, 11:39 AM   #1 (permalink)
Lurker
 
Join Date: Dec 2005
Posts: 9
Post Misbehaving "if" statment in Spell.cs (??) [2.0]

Could someone tell whether the below code (which is stock) is correct?

PHP Code:
if( casterEI targetRS )
    
scalar = (1.0 + ((casterEI targetRS) / 500.0));
else
    
scalar = (1.0 + ((casterEI targetRS) / 200.0)); 
It seems for me that, this way, when someone has higher Evaluating Inteligente than his spell target's Resisting Spells, it deals less damage when it should be dealing more. I think it should be like this:

PHP Code:
if( casterEI targetRS )
    
scalar = (1.0 + ((casterEI targetRS) / 200.0));
else
    
scalar = (1.0 + ((casterEI targetRS) / 500.0)); 
Since I am novice with RunUO code, I am not confident to change it on my own. Veterans??
wiseduck is offline  
Old 06-25-2006, 06:04 PM   #2 (permalink)
Lurker
 
Join Date: Dec 2005
Posts: 9
Default

Nah, I was wrong. I reviewed it. The stock is correct. Some moderator please delete this post.
wiseduck 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