Official Core: 096.7
Official Core: 097 2008-02-26
POL Home
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
sendStats.src
PenUltima Online Forum Index
->
Development Discussion
Display posts from previous
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
sendStats.src
Author
Message
OldnGrey
Joined: 04 Feb 2006
Posts: 520
Posted: Thu Dec 28, 2006 5:23 am
Post subject: sendStats.src
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
Author
Message
OldnGrey
Joined: 04 Feb 2006
Posts: 520
Posted: Thu Dec 28, 2006 6:00 am
Post subject:
My fix is cuter than Austins.....
PenUltima Online Forum Index
->
Development Discussion
All times are GMT - 4 Hours
Page
1
of
1
Powered by
phpBB
© 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty