It is currently Wed Nov 19, 2008 3:59 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: sendStats.src
PostPosted: Thu Dec 28, 2006 1:23 am 
Online
Certified POL Expert
User avatar

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 573
sendStats currently expects you to have MinDam and MaxDam entered into the itemdesc.cfg file for weapons. However the distro doesn't have them.

Can I suggest you use an 096 feature to calculate it instead?
In the weapons section for both 1 and 2 handed weapons:

remove:
Code:
var cfg := ReadConfigFile(":*:itemdesc");
mindmg := CInt(cfg[weaponone.objtype].MinDam) + weaponone.dmg_mod;
maxdmg := CInt(cfg[weaponone.objtype].MaxDam) + weaponone.dmg_mod;


replace with:
Code:
var weapinfo := GetItemDescriptor(weaponone.objtype);
mindmg := weapinfo.MinDamage + weaponone.dmg_mod;
maxdmg := weapinfo.MaxDamage + weaponone.dmg_mod;


Do similar for weapontwo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 2:00 am 
Online
Certified POL Expert
User avatar

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 573
My fix is cuter than Austins.....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl