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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2013, 10:31 PM
Thuz989
Sarnak
 
Join Date: Jan 2006
Posts: 45
Default Bot spell damage question

I was trying to parse bots the other day to balance some things and i noticed that bots that cast spell don't seem to actually show how much damage they do unless they crit??

Is this something easy to fix?? I was going to tack on something after the crit block where it says...

Code:
mlog(SPELLS__CRITS, "Spell crit successful. Final damage modifier: %d, Final Damage: %d", modifier, (value * modifier / 100) - spell_dmg);
				entity_list.MessageClose(this, false, 100, MT_SpellCrits, "%s delivers a critical blast! (%d)", GetName(), (-value * modifier / 100) + spell_dmg);
But obviously i don't know what the proper way to do this is??? Can i do a GetCleanName() and set a similar style message after crit line to display spell damage? I am having problems figuring out where this value is returned to. If you turn on #mlog you get nothing from spell casting while bots casting???

Any information is welcome, thanks.
Reply With Quote
  #2  
Old 01-26-2013, 06:59 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

I'll look into this when I get a chance.
Reply With Quote
  #3  
Old 02-26-2016, 10:09 PM
mpeels
Fire Beetle
 
Join Date: May 2009
Location: tennessee
Posts: 3
Default

3 years too late but I googled the same question. This is a simple fix I found to show bot spell damage.. It's not optimal I'm sure. I just added

entity_list.MessageClose(this, false, 100, MT_Spells, "%s hits for (%d)", GetName(), -value);

to the Bot.cpp right above the return value; in GetActSpellDamage
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 04:29 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3