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

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2009, 02:25 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default

Oh.. my heart is not set in one direction or the other..
I tried a few times to do this on my own and figured an example would help a lot. I will be satisfied with it working at all.

Thanks Yeormom, your example helps me see how this works/what methods I can use.
Reply With Quote
  #2  
Old 06-29-2009, 02:31 PM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

You should technically do more checking when you implement something like that as well, like making sure GetPet() actually returns a pet and isn't null before you kill it for example.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote
  #3  
Old 08-16-2009, 07:24 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

in client_process.cpp at line 542 Below DoStaminaUpdate();

Code:
                        Mob* myPet = this->GetPet();
			bool amClient = IsClient();

			if(this->HasPet() && IsClient())
				if(myPet->IsCharmed() && invisible == true && amClient) {    //Null:  charm fades on Invisibility
				myPet->BuffFadeByEffect(SE_Charm);
				myPet->AddToHateList(this, 100);
			}
			if(myPet && invisible == true && amClient)    //Null:  pet goes away on Invisibility
				this->SetPet(0);

Namely it's the
if(myPet && invisible == true && amClient) //Null: pet goes away on Invisibility
this->SetPet(0);

lines. I didn't test this. I just noticed it while I was doing an old revision to newest that it had this code.
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:32 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