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 09-08-2007, 05:39 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default Summoned Pets Turn to Ghosts

I know its been chatted up, but it needs to be addressed. There is an issue when the owner of a pet zones out, it leaves a shadow copy of itself in the old zone, even with persistent zones turned off if there is people in that zone afking or boxing the pets can be item duped by placing tons of items on the pets, zoning back and forward till someone has enough plat and items and then kill each pet for those items. The shadow version of the pet is placed in the npc_types table as SumEarthR001 or SumFireR001 etc, so as I'm trying to track this down it seems that there is a problem or something overlooked when someone leaves the zone there doesn't seem to be a kill or depop command for the pet. I've tried writing and applying quest scripts to run sub EVENT_SPAWN { quest::depop(); } but that does not work naturally being the mob isn't a spawn from the DB itself.

Can we, the community please get to work on this code. I'd be willing to start in but I'm only 70ish % through trying to learn the code myself. Any coding I can apply or conjure I will but this bug is definitely taking the mages out of the game or at least ruining a lot of server's economies =(.
Reply With Quote
  #2  
Old 09-08-2007, 06:02 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Here we go...

Code:
	if(tmp->GetOwnerID() != GetID()) {
		SetPetID(0);
		// WE NEED TO KILL THE PET HERE!!!!!
		return(NULL);
	}
I'm assuming adding a kill code here in pets.cpp will get the job done?

Would this work for instance?

Code:
	if(tmp->GetOwnerID() != GetID()) {
		SetPetID(0);
        // Attempting to remove shadow pet.
		depop();
		return(NULL);
	}
Not sure that depop() is registered in any global functions or not =S

Last edited by Breea; 09-09-2007 at 02:07 AM..
Reply With Quote
  #3  
Old 09-08-2007, 06:13 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Also if we can get the pets working adding the same to the mounts would be an easy fix.
Reply With Quote
  #4  
Old 09-08-2007, 07:39 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

I tried strait up Depop(); that crashed the zone server... should it be pet->Depop(); ??
Reply With Quote
  #5  
Old 09-08-2007, 07:58 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

How exactly can I reproduce this 100% of the time? Or does this only happen sometimes?
Reply With Quote
  #6  
Old 09-08-2007, 08:50 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Quote:
Originally Posted by KLS View Post
How exactly can I reproduce this 100% of the time? Or does this only happen sometimes?
It happens 100% of the time on a source build (last 5 releases) on a linux (fedora 6) quad-core box.

It is also adding these as npcs in the npc_types table.. Basically this could become a stability comprimise if a mage or pet class decides to just zone back and forth a few thousand times.

Last edited by Breea; 09-09-2007 at 04:52 AM..
Reply With Quote
  #7  
Old 09-09-2007, 06:14 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Hm well it doesn't happen here as described.

Player1 in zone with pet, player2 in same zone. Player1 zones out and pet disappears.

I'm not sure how or why it's getting added to your npc_types table. The only code that does that from stock emu code is command related...

Not sure what's going on but that doesn't sound good.
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:16 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