Log in

View Full Version : Pet target window


provocating
01-11-2016, 12:50 AM
While updating my source to the latest I notice the pet window now shows it's target. What is this actually called? Who would know where it is handled in the source? I am hoping it can be blocked via opcode if I know the name.

NatedogEZ
01-11-2016, 01:46 AM
I am pretty sure this is it...

https://github.com/EQEmu/Server/blob/master/zone/pets.cpp#L479


Could just remove that code or comment it out :)

demonstar55
01-11-2016, 02:18 AM
I'm pretty sure all clients have that OP code, just not all of them use that data.

provocating
01-11-2016, 11:49 AM
Since I will be using the same binaries on two servers I am just going to make a rule and block it out with an if statement. Thanks for the heads up though, probably would had taken me quite a while to find it going a page at a time.

NatedogEZ
01-11-2016, 12:33 PM
Since I will be using the same binaries on two servers I am just going to make a rule and block it out with an if statement. Thanks for the heads up though, probably would had taken me quite a while to find it going a page at a time.

If you use Tortoise git you can search commits

Show Log
http://i.imgur.com/cmMAZZb.png


Search .. and found!
http://i.imgur.com/WtKIAxG.png



If you don't want them seeing their pets target you may want to disable the XTarget for MyPet as that will show your pets target as well.



MyPetTarget (XTarget Type)

https://github.com/EQEmu/Server/blob/master/zone/mob.cpp#L3311

and...


https://github.com/EQEmu/Server/blob/master/zone/client_packet.cpp#L14279

provocating
01-11-2016, 01:04 PM
I found the git change shortly after I posted, I created a rule for it. Xtargets is already turned off on LoF. I created a pet rule in ruletypes.h that will allow me to enable it on the fly.

You guys are doing some incredible things in the source lately. I love the new zone controllers.