Adding that methodology to LoadPets will cause that to be processed every time that LoadPets is called..as in zone changes.
You may need to split the methodology up to have one portion processed on zone entry, and the other on zone change.
You could create handlers for the actions that you want to process in Database(SharedDatabase?) (ref:
https://github.com/EQEmu/Server/comm...5353f5ed8d8044)
.. and handle the returns appropriately.
I know it's a pain to figure out what does what, where and why..but, it comes with exposure.