Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-29-2012, 11:25 AM
Thuz989
Sarnak
 
Join Date: Jan 2006
Posts: 45
Default

if i updated to 2337 and then replace zonedb.cpp things seem to work fine..

this piece of code seems to cause the problem from 3222..

Code:
	Modify	/trunk/EQEmuServer/zone/zonedb.cpp	diff
...			
2109	2109			}
2110	2110			safe_delete_array(query);
2111	2111		
2112		-		for(i=0; i<BUFF_COUNT; i++) {
2112	+		for(i=0; i < RuleI(Spells, MaxTotalSlotsNPC); i++) {
2113	2113				if (petinfo->Buffs[i].spellid != SPELL_UNKNOWN && petinfo->Buffs[i].spellid != 0) {
2114	2114					database.RunQuery(query, MakeAnyLenString(&query,
2115	2115						"INSERT INTO `character_pet_buffs` (`char_id`, `pet`, `slot`, `spell_id`, `caster_level`, "
...			
2241	2241						continue;
2242	2242		
2243	2243					uint32 slot_id = atoul(row[1]);
2244		-				if(slot_id >= BUFF_COUNT) {
2244	+				if(slot_id >= RuleI(Spells, MaxTotalSlotsNPC)) {
2245	2245						continue;
2246	2246					}
2247	2247
Reply With Quote
 

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

Forum Jump

   

All times are GMT -4. The time now is 09:25 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3