Tintin Pet Manager

Manages your pet for you, making dog ownership a little easier.

Currently a work in progress, but works at a basic level to keep your dog fed and happy. For this to work better, you need "dog monitor" turned on.

When your dog reaches level 2, it will be automatically named by this script. Put your preferred dog name in place of "PutDogNameHere"

#CLASS {cPetManager} {kill};
#CLASS {cPetManager} {open};
#NOP ******************************
#NOP * Pet Manager : Version 0.02 *
#NOP * Balthus: 5th May 2010      *
#NOP ******************************
#NOP Your dog looks sad.
#NOP Your dog looks very hungry.
#NOP Your dog is STARVING!
#ACTION {^%w :: HP: %d/%d  Happy: %d%%  Hungry: %d%%  Level: %d/%d%%}
{
    #VAR {my[pet][name]} {%1};
    #VAR {my[pet][hp][current]} {%2};
    #VAR {my[pet][hp][max]} {%3};
    #VAR {my[pet][happy]} {%4};
    #VAR {my[pet][hungry]} {%5};
    #VAR {my[pet][level][current]} {%6};
    #VAR {my[pet][level][percent]} {%7};

    #IF {$my[pet][hungry] > 65}
    {
        .aPetFeed;
    };
    #IF {$my[pet][happy] < 85}
    {
        #SEND {!dog pet};
    };
    #IF {$my[pet][level][current] > 1 && "$my[pet][name]" == "Dog"}
    {
        #SEND {!dog name PutDogNameHere};
    };
};
#ACTION {Your dog looks very hungry.}
{
    .aPetFeed;
};
#ACTION {Your dog looks sad.}
{
    #SEND {!dog pet};
};
#ALIAS {.aPetFeed}
{
    #SEND {!drop corpse};
    #SEND {!dog feed};
    #SEND {!get corpse};
};
#CLASS {cPetManager} {close};
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License