PetManagerService
This service allows you to get information about your pets and perform actions with them like walking or attacking.
getPets
Returns a list with your current pets.
// Request
{
"service": "PetManagerService",
"method": "getPets",
"params": {}
}
// Response
{
"status": "ok":
"result": {
"pets": [
{
"position": {
"x": 5,
"y": 8,
},
"dest_pos": {
"x": 10,
"y": 15,
},
"state": 1,
"pet": {
// NPC information
}
}
// pet 1,
// pet 2,
// [...]
]
}
}The pet field is an NPC object with the structure described in the Entities chapter.
getCurrentPet
Returns your current pet information.
getCurrentPartner
Returns your current partner information.
setPetState
Changes the pet state to the specified state. This allows you to change the "letter" state of your pet like A, S, D, F. This are the states values that I've found that can be helpful:
D :
0S:
5F:
7Walk after S:
8A:
12After pressing A and clicking:
15S state after using A or F:
17
walk
Walks with all your current pets unless you put them on S state.
autoAttack
Auto attack with all your current pets unless you put them on S state.
petAttack
Uses a pet skill on the specified target. If you want to use a skill that doesn't need a target you can set entity_type and entity_id to 0.
partnerAttack
Uses a partner skill on the specified target. If you want to use a skill that doesn't need a target you can set entity_type and entity_id to 0.
Last updated
