pets.xml file format

This file describe possible pets and pets logic.

pets.xml
<?xml version="1.0"?>
 <pets>
    <pet id="1"
         name="piou"
         startFollowDistance="0"
         followDistance="0"
         walkSpeed="300"
         warpDistance="11"
         offsetX="1"
         offsetY="1"
         sitOffsetX="1"
         sitOffsetY="0"
         moveOffsetX="0"
         moveOffsetY="1"
         deadOffsetX="0"
         deadOffsetY="0"
         thinkTime="1000"
         directionType="3"
         sitDirectionType="3"
         deadDirectionType="3">
        <sprite>monsters/piou.xml</sprite>
    </pet>
    <pet id="2"
         name="wolf"
         startFollowDistance="0"
         followDistance="0"
         walkSpeed="100"
         warpDistance="11"
         offsetX="0"
         offsetY="2"
         sitOffsetX="1"
         sitOffsetY="0"
         moveOffsetX="1"
         moveOffsetY="3"
         deadOffsetX="-1"
         deadOffsetY="0"
         thinkTime="500"
         directionType="2"
         sitDirectionType="1"
         deadDirectionType="1">
        <sprite>monsters/wolvern.xml|#000000,64727a,8996a0,a6afbf,dce9f3,ffffff</sprite>
     </pet>
     ...
 </pets>

Parameters

Parameter name Description
id pet identifier. Can be used in items.xml in field pet
namepet name visible in client
startFollowDistance distance from what pet should start follow owner
followDistancedistance on what pet should follow owner. If set 0 pet always will prefer position from offsetX/offsetY or sitOffsetX/sitOffsetY
walkSpeedwalk speed delay
warpDistanceif distance between pet and owner more than this value, pet will be teleported to owner position
offsetXdefault offset from owner
offsetYdefault offset from owner
sitOffsetXoffset from owner if owner sitting
sitOffsetYoffset from owner if owner sitting
moveOffsetXoffset from owner if owner moving
moveOffsetYoffset from owner if owner moving
deadOffsetXoffset from owner if owner dead
deadOffsetYoffset from owner if owner dead
thinkTimetime in milisseconds after what time pet will do any action
directionTypedirection rule how pet must rotate against owner if owner not sitting. Possible values
0dont change direction after movement
1use same direction as owner
2always look to owner
3always look not to owner
sitDirectionTypedirection rule how pet must rotate against owner if owner sitting. Values can be same like in directionType
deadDirectionTypedirection rule how pet must rotate against owner if owner dead. Values can be same like in directionType
Print/export
Languages