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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2010, 05:39 PM
Ropethunder
Fire Beetle
 
Join Date: Apr 2007
Posts: 16
Default Questions regarding Mob::PassCharismaCheck

I'm trying to get some information on how mobs check for whether to have a BardSnack (tm) or ignore the caster on a failed lull/pacify.

I believe the check is done in Mob::PassCharismaCheck. However when doing a search for PassCharismaCheck I could not find a reference of it being used anywhere.
Reply With Quote
  #2  
Old 06-25-2010, 11:51 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

DoBuffTic makes a call to PassCharsimaCheck @ line 3226 in spell_effects.cpp

Code:
		case SE_Charm: {
			if (!caster || !PassCharismaCheck(caster, this, spell_id)) {
				BuffFadeByEffect(SE_Charm);
			}

			break;
		}
SpellOnTarget makes a call to PassCharismaCheck @ line 2859 in spells.cpp

Code:
							if(!PassCharismaCheck(this, spelltar, spell_id))
								spelltar->AddToHateList(this, aggro);
Reply With Quote
  #3  
Old 07-17-2010, 05:42 PM
Ropethunder
Fire Beetle
 
Join Date: Apr 2007
Posts: 16
Default

I'm looking at:

http://projecteqemu.googlecode.com/svn › trunk › EQEmuServer › zone › spell_effects.cpp

This file has 88 lines. Where is line 3226 coming from?
Reply With Quote
  #4  
Old 07-17-2010, 05:51 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by Ropethunder View Post
I'm looking at:

http://projecteqemu.googlecode.com/svn › trunk › EQEmuServer › zone › spell_effects.cpp

This file has 88 lines. Where is line 3226 coming from?
http://code.google.com/p/projecteqem...ll_effects.cpp

has 4154 lines for me.
Reply With Quote
  #5  
Old 07-17-2010, 05:59 PM
Ropethunder
Fire Beetle
 
Join Date: Apr 2007
Posts: 16
Default

I went to the google code page and did a search for spell_effects.cpp. This is where spell_effects.cpp redirects me:

http://www.google.com/codesearch/p?h...ecode\.com&d=3

Is is not a good idea to use the google code search to browse the source tree?
Reply With Quote
  #6  
Old 07-17-2010, 07:44 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

No, searching the code only shows a small portion of the files from around where the code you searched is. Also, searches use cached versions of the code which are generally fairly old. So, when you do searches for recent changes, you won't find them normally. If you just use browse instead of search, you will see the entire file and it will be from the current revision as well.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #7  
Old 07-18-2010, 01:23 PM
Ropethunder
Fire Beetle
 
Join Date: Apr 2007
Posts: 16
Default

Thanks a lot.
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 10:45 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