diff options
author | Haru <haru@dotalux.com> | 2019-04-07 20:49:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 20:49:20 +0200 |
commit | cc0119f4836cfcafaac0e36532a1d135d8ab5169 (patch) | |
tree | 3bea5ac3306a2f95e96fd6e52b565aef9d36ab2f /doc | |
parent | 831d7cf9c99fbeadb93bdbff03836320543219c4 (diff) | |
parent | 7652d647f13ad0755f355ed3d3b6ca1e8ad47d76 (diff) | |
download | hercules-cc0119f4836cfcafaac0e36532a1d135d8ab5169.tar.gz hercules-cc0119f4836cfcafaac0e36532a1d135d8ab5169.tar.bz2 hercules-cc0119f4836cfcafaac0e36532a1d135d8ab5169.tar.xz hercules-cc0119f4836cfcafaac0e36532a1d135d8ab5169.zip |
Merge pull request #2398 from AnnieRuru/69-getpetinfo
Deprecate *petstat and add CONSTANTS to *getpetinfo
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index ba3627d6a..416a84dc7 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3835,26 +3835,34 @@ how many skills a character has. *getpetinfo(<type>) -This function will return pet information for the pet the invoking -character currently has active. Valid types are: - - 0 - Unique pet ID number as stored by the char server and distinguishing - it from all other pets the characters actually have. This value is - currently useless, at most you can use it to tell pets apart reliably. - 1 - Pet class number as per 'db/pet_db.txt' - will tell you what kind of - a pet it is. - 2 - Pet name. Will return "null" if there's no pet. - 3 - Pet friendly level (intimacy score). 1000 is full loyalty. - 4 - Pet hungry level. 100 is completely full. - 5 - Pet rename flag. 0 means this pet has not been named yet. - -If the invoking player doesn't own a pet, this command will return -"null" for type 2, and return 0 for other types. +This command will return the currently active pet information of the invoking character. +These fields are associate in 'db/(pre-)re/pet_db.conf'. Valid types are: + + PETINFO_ID - Pet Database ID, stored in `pet` table to distinguish from other pets. + PETINFO_CLASS - Pet class ID. (Id field) + PETINFO_NAME - Pet Name, return "null" if there's no active pet. + PETINFO_INTIMACY - Pet Intimacy level. 1000 is full loyalty. + PETINFO_HUNGRY - Pet hungry level. 100 is completely full. + PETINFO_RENAME - Pet rename flag. 0 means this pet has not been named yet. + PETINFO_GID - Pet Game ID + PETINFO_EGGITEM - Pet EggItem + PETINFO_FOODITEM - Pet FoodItem + PETINFO_ACCESSORYITEM - Pet AccessoryItem + PETINFO_ACCESSORYFLAG - return 1 if the pet currently equipping accessory, return 0 otherwise. + PETINFO_EVO_EGGID - Pet Evolve EggID + PETINFO_AUTOFEED - Pet AutoFeed flag. + +If the invoking player doesn't own a pet, this command will +return "null" for type PETINFO_NAME, and return 0 for other types. --------------------------------------- *petstat(<flag>) + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ This command is deprecated @ + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + Returns current pet status, all are integers except name. Returns 0 or "" if the player doesn't have pets. @@ -3868,6 +3876,9 @@ PET_INTIMATE Example: .@i = petstat(PET_CLASS); +This command is deprecated and it should not be used in new scripts, as it is +likely to be removed at a later time. Please use 'getpetinfo' instead. + --------------------------------------- *getmonsterinfo(<mob ID>, <type>) |