Teleport with a pet (no out)

11/17/2014 18:52 LoscArmy#1
Hi,
A people can send me a system for the pet (eatpet/and baby pet) no out when u teleport ?
Thanks so much and advance, and sorry for my very bad english!
11/18/2014 23:20 Exrib0.#2
I dont let User teleport with pets. You can do it so :

PHP Code:
CUserpUser;
pUser g_UserMng.GetUserdpidCachedpidUser );
if( 
pUser->HasActivatedEatPet() || pUser->HasActivatedSystemPet() || pUser->HasPet() )
    {
        
char chMessage[100];
        
sprintfchMessage"Get your Pet, CS Pet or Egg pure before you teleport!" );
        
pUser->AddTextchMessage );
        return;
    } 
So they cant port with pets ;).
12/02/2014 12:24 LoscArmy#3
Hi and thanks, but where i put this? I think in mover.cpp, but where exactly please, cause when i put this, i have the dpidcache undecleared..
Thanks :)
12/04/2014 09:30 LoscArmy#4
up *.*
12/04/2014 12:50 raventh1984#5
Depends on what teleport system your using. But take an look into the Teleport in /World/DPSrvr.cpp
12/04/2014 13:20 LoscArmy#6
I use the mentus teleporter, but i just want for the guildwar, when u go in the guildwar combat, i just want the pet no out (sorry for my english :/)!
12/04/2014 13:38 raventh1984#7
So if am not misstaken then you do not want to have pets in guildwar?
Or is it only the teleportation to the guildwar?
12/04/2014 13:50 LoscArmy#8
No, actually, when i go to the guildwar, my pet deactivates. I want simply that it remains activated when I enter in the guildwar

My english is so bad, do you understand?
12/04/2014 13:53 .SnoX#9
Quote:
Originally Posted by LoscArmy View Post
Hi,
A people can send me a system for the pet (eatpet/and baby pet) no out when u teleport ?
Thanks so much and advance, and sorry for my very bad english!
..
CWorld::Process()

Replace
Quote:
SAFE_DELETE( pObj );
with
Quote:
#ifdef __CLIENT
if( pObj->GetIndex() != NULL )
delete pObj;
#else // __CLIENT
SAFE_DELETE( pObj );
#endif // __CLIENT
12/04/2014 19:01 LoscArmy#10
Quote:
Originally Posted by .SnoX View Post
..
CWorld::Process()

Replace with
Hi and thanks,
But that's doesn't work!
And the coded by Exrib0. doesn't work too.