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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-11-2009, 02:00 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

Perhaps try this:
Edit spells.cpp and go to the line it says, 3382
and change it from :
Code:
	if(caster && caster->IsBot())
to:
Code:
	if(caster && caster->CastToNPC()->IsBot())
Same with 3386
from:
Code:
			sint32 focusResist = caster->GetBotFocusEffect(botfocusResistRate, spell_id);
To:
Code:
			sint32 focusResist = caster->CastToBot()->GetBotFocusEffect(12, spell_id);
Since when the bot class gets declared, it's 'class Bot : public NPC {' I think if you cast it over to NPC it should work alright for the IsBot() function, then for the Focus Effect the check is made prior to see if it's a bot or not, so shold be safe to cast it to bot...
botfocusResistRate is just an enumerator for the value of 12, and since it's giving you issues I just temp fixed it with that value.

Anyways, let me know if it compiles. Seems ubuntu's gcc compiler is being more anal receptive than VS2k8
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
 


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