Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2010, 11:58 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default NPCs not gaining stats for offhand

Code:
--- bonuses.cpp	(revision 991)
+++ bonuses.cpp	(working copy)
@@ -1126,7 +1126,7 @@
 {
 	if(newbon){
 
-		for(int i = 0; i < 8; i++){
+		for(int i = 0; i < MAX_MATERIALS; i++){
 			const Item_Struct *cur = database.GetItem(equipment[i]);
 			if(cur){
 				//basic stats
Noticed that pets with 2 summoned pet weapons only gained 50 HP from main hand, slot 9 is secondary. This is in NPC::CalcItemBonuses(StatBonuses *newbon).
Reply With Quote
Reply


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

Forum Jump

   

All times are GMT -4. The time now is 02:32 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3