papol22 Posted December 23, 2011 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 70 Reputation: 1 Joined: 12/14/11 Last Seen: August 12, 2019 Share Posted December 23, 2011 elow can someone give a tutorial and script commad for pet i tried to search for it but i cant find any. Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 23, 2011 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted December 23, 2011 (edited) doc/script_commands.txt * The Pet AI commands These commands will only work if the invoking character has a pet, and are meant to be executed from pet scripts. They will modify the pet AI decision-making for the current pet of the invoking character, and will NOT have any independent effect by themselves, which is why only one of them each may be in effect at any time for a specific pet. A pet may have 'petloot', 'petskillbonus', 'petskillattack' OR 'petpetskillattack2' and 'petskillsupport' OR 'petheal' at the same time. 'petheal' is deprecated and is no longer used in the default pet scripts. *petskillbonus <bonus type>,<value>,<duration>,<delay>; This command will make the pet give a bonus to the owner's stat (bonus type - bInt,bVit,bDex,bAgi,bLuk,bStr,bSpeedRate - for a full list, see the values starting with 'b' in 'db/const.txt') *petrecovery <status type>,<delay>; This command will make the pet cure a specified status condition. The curing actions will occur once every Delay seconds. For a full list of status conditions that can be cured, see the list of 'SC_' status condition constants in 'db/const.txt' *petloot <max items>; This command will turn on pet looting, with a maximum number of items to loot specified. Pet will store items and return them when the maximum is reached or when pet performance is activated. *petskillsupport <skill id>,<skill level>,<delay>,<percent hp>,<percent sp>; *petskillsupport "<skill name>",<skill level>,<delay>,<percent hp>,<percent sp>; *petheal <level>,<delay>,<percent hp>,<percent sp>; This will make the pet use a specified support skill on the owner whenever the HP and SP are below the given percent values, with a specified delay time between activations. The skill numbers are as per 'db/skill_db.txt'. 'petheal' works the same as 'petskillsupport' but has the skill ID hard-coded to 28 (Heal). This command is deprecated. It's not quite certain who's stats will be used for the skills cast, the character's or the pets. Probably, Skotlex can answer that question. *petskillattack <skill id>,<skill level>,<rate>,<bonusrate>; *petskillattack "<skill name>",<skill level>,<rate>,<bonusrate>; *petskillattack2 <skill id>,<damage>,<number of attacks>,<rate>,<bonusrate>; *petskillattack2 "<skill name>",<damage>,<number of attacks>,<rate>,<bonusrate>; These two commands will make the pet cast an attack skill on the enemy the pet's owner is currently fighting. Skill IDs and levels are as per 'petskillsupport'. 'petskillattack2' will make the pet cast the skill with a fixed amount of damage inflicted and the specified number of attacks. All commands with delays and durations will only make the behavior active for the specified duration of seconds, with a delay of the specified number of seconds between activations. Rates are a chance of the effect occurring and are given in percent. 'bonusrate' is added to the normal rate if the pet intimacy is at the maximum possible. The behavior modified with the above mentioned commands will only be exhibited if the pet is loyal and appropriate configuration options are set in 'battle_athena.conf'. Pet scripts in the database normally run whenever a pet of that type hatches from the egg. Other commands usable in item scripts (see 'bonus') will also happily run from pet scripts. Apparently, the pet-specific commands will also work in NPC scripts and modify the behavior of the current pet up until the pet is hatched again. (Which will also occur when the character is logged in again with the pet still out of the egg.) It is not certain for how long the effect of such command running from an NPC script will eventually persist, but apparently, it is possible to usefully employ them in usable item scripts to create pet buffing items. Nobody tried this before, so you're essentially on your own here. --------------------------------------- Edited December 23, 2011 by Emistry Quote Link to comment Share on other sites More sharing options...
Question
papol22
elow can someone give a tutorial and script commad for pet
i tried to search for it but i cant find any.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.