hellboy
Intermediate OT User
Sorry for reviving the post, but how can you identify if the player has a pet? through storage? since if I use the #player:getSummons() function > 0 for example, it detects the pet only when it is invoked
Take a look at default config section.
And try to analyze code

lua-scripts/pets_system/pets_lib.lua at master · yrpen/lua-scripts
Few lua scripts. Contribute to yrpen/lua-scripts development by creating an account on GitHub.
LUA:
STORAGE = {
TYPE = 10000,
UID = 10001,
LOSTHEALTH = 10002,
MAXHEALTH = 10003,
EXPERIENCE = 10004,
LEVEL = 10005
},