01-31-2023, 07:13 AM
Hello everyone, who can tell me how to make pets not disappear in the city when I move
|
visibility of pets in the city
|
|
01-31-2023, 07:13 AM
Hello everyone, who can tell me how to make pets not disappear in the city when I move
02-01-2023, 02:15 PM
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);
02-02-2023, 12:54 AM
Yes, it worked, thanks!
02-06-2023, 05:14 PM
Hello where exactly does this have to be inserted? underneath? Best regards
02-06-2023, 06:42 PM
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
02-06-2023, 07:15 PM
Now I understand it ? didn't get along with the inside of ^^ Thanks very much
04-30-2023, 12:07 PM
/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); }
04-30-2023, 09:28 PM
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
06-29-2023, 06:09 AM
anyway with p1? this only works with p2.
06-29-2023, 06:14 AM
1 hour ago, Hassan said: anyway with p1? this only works with p2. Read_net_Pet for P1, Read_net_WildPet for P2 |
|
« Next Oldest | Next Newest »
|