PDA

View Full Version : Questions regarding Mob::PassCharismaCheck


Ropethunder
06-23-2010, 05:39 PM
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.

c0ncrete
06-25-2010, 11:51 AM
DoBuffTic makes a call to PassCharsimaCheck @ line 3226 in spell_effects.cpp

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

if(!PassCharismaCheck(this, spelltar, spell_id))
spelltar->AddToHateList(this, aggro);

Ropethunder
07-17-2010, 05:42 PM
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?

Derision
07-17-2010, 05:51 PM
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/projecteqemu/source/browse/trunk/EQEmuServer/zone/spell_effects.cpp

has 4154 lines for me.

Ropethunder
07-17-2010, 05:59 PM
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?hl=en#gBbYfVgiBxk/trunk/EQEmuServer/zone/spell_effects.cpp&q=spell_effects.cpp%20package:http://projecteqemu\.googlecode\.com&d=3

Is is not a good idea to use the google code search to browse the source tree?

trevius
07-17-2010, 07:44 PM
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.

Ropethunder
07-18-2010, 01:23 PM
Thanks a lot. :)