EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Questions regarding Mob::PassCharismaCheck (https://www.eqemulator.org/forums/showthread.php?t=31519)

Ropethunder 06-23-2010 05:39 PM

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.

c0ncrete 06-25-2010 11:51 AM

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);


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

Quote:

Originally Posted by Ropethunder (Post 189901)
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.

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?h...ecode\.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. :)


All times are GMT -4. The time now is 05:08 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.