visibility of pets in the city
#1

Hello everyone, who can tell me how to make pets not disappear in the city when I move





 

#2

In: Player.es

Inside of: Read_net_Pet Or/And Read_net_WildPet

Find: penEntity->SetFlagOn(ENF_HIDDEN); And pInfo->GetMyPetInfo()->pen_pEntity->SetFlagOn(ENF_HIDDEN);

 

#3

Yes, it worked, thanks!

#4

Hello where exactly does this have to be inserted? underneath? Best regards

#5

you don't add anything, you only comment out the lines where it sets the hidden flag on because that's how it hides them

#6

Now I understand it ? didn't get along with the inside of ^^

Thanks very much

#7

/index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg Correct me If I'm wrong, at this point if someone want to show always P1 and P2 in city whould remove else clausole and set the flag to visible at the start of the function, do you confirm?

 

if (pPack->mapAttr & MATT_PEACE || pPack->mapAttr & MATT_WAR)
{
if (pInfo->GetTargetEntity(eTARGET) == penEntity)
{
pInfo->TargetClear(eTARGET);
}
if (pInfo->GetTargetEntity(eTARGET_REAL) == penEntity)
{
pInfo->TargetClear(eTARGET_REAL);
}
// *** to remove :penEntity->SetFlagOn(ENF_HIDDEN);

}
// this ?
else
{
penEntity->SetFlagOff(ENF_HIDDEN);
}

 

#8


10 hours ago, Andrein95 said:




/index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg Correct me If I'm wrong, at this point if someone want to show always P1 and P2 in city whould remove else clausole and set the flag to visible at the start of the function, do you confirm?

 


if (pPack->mapAttr & MATT_PEACE || pPack->mapAttr & MATT_WAR)
{
if (pInfo->GetTargetEntity(eTARGET) == penEntity)
{
pInfo->TargetClear(eTARGET);
}
if (pInfo->GetTargetEntity(eTARGET_REAL) == penEntity)
{
pInfo->TargetClear(eTARGET_REAL);
}
// *** to remove :penEntity->SetFlagOn(ENF_HIDDEN);

}
// this ?
else
{
penEntity->SetFlagOff(ENF_HIDDEN);
}


 




Yes, it is best to comment from the else to the closing brace

#9

anyway with p1? this only works with p2.

#10


1 hour ago, Hassan said:




anyway with p1? this only works with p2.




Read_net_Pet for P1, Read_net_WildPet for P2



Forum Jump:


Users browsing this thread: 2 Guest(s)