PacketManagerService

This service allows you to read the network traffic that is being exchanged between the game's client and the game's server. It also allows you to send your own packets and fake receive them.

subscribe

This method lets the bot know that you want to start reading packets and allocates the resources needed for your client. It excpets an id which can be anything really but I recommend to use any kind of uuid. If you want to start reading packets you must call this function beforehand.

// Request
{
    "service": "PacketManagerService",
    "method": "subscribe",
    "params": {
        "id": "e33644cf-b053-4af0-9e5e-965042dd1346"
    }
}

// Response
{
    "status": "ok",
    "result": {}
}

unsubscribe

This method lets the bot know that you don't want to read packets anymore and frees the resources previously allocated when you subscribed.

// Request
{
    "service": "PacketManagerService",
    "method": "getPendingSendPackets",
    "params": {
        "id": "e33644cf-b053-4af0-9e5e-965042dd1346"
    }
}

// Response
{
    "status": "ok",
    "result": {}
}

getPendingSendPackets

Returns a list with the pending packets that the game's client has sent to the game's server. Once called the bot will remove the packets from the allocated resources for your app.

// Request
{
    "service": "PacketManagerService",
    "method": "getPendingSendPackets",
    "params": {
        "id": "e33644cf-b053-4af0-9e5e-965042dd1346"
    }
}

// Response
{
    "status": "ok",
    "result": {
        "packets": [
            "walk 1 5 23 2 10",
            "walk 5 2 22 6 12",
            // [....]
        ]
    }
}

getPendingRecvPackets

Returns a list with the pending packets that the game's client has received from the game's server to be processed by your application. Once called the bot will remove the packets from the allocated resources for your app.

// Request
{
    "service": "PacketManagerService",
    "method": "getPendingRecvPackets",
    "params": {
        "id": "e33644cf-b053-4af0-9e5e-965042dd1346"
    }
}

// Response
{
    "status": "ok",
    "result": {
        "packets": [
            "mv 1 5 23 2 10",
            "mv 5 2 22 6 12",
            // [....]
        ]
    }
}

send

Sends a packet to the game's server.

// Request
{
    "service": "PacketManagerService",
    "method": "send",
    "params": {
        "packet": "u_s 0 3 2432"
    }
}

// Response
{
    "status": "ok",
    "result": {}
}

recv

Fake receives a packet in the game's client.

// Request
{
    "service": "PacketManagerService",
    "method": "send",
    "params": {
        "packet": "mv 3 2389 70 11 5"
    }
}

// Response
{
    "status": "ok",
    "result": {}
}

Last updated