Skip to content

function getPlayerStrength

This function will get the player strength points.
Original: getPlayerStrength

Declaration

async def getPlayerStrength(id : int) -> int

Parameters

int id: the player id.

Returns

int: the strength points amount.

Source code in src/pyg2o/functions/player.py
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
async def getPlayerStrength(id : int) -> int:
    """
    This function will get the player strength points.
    Original: [getPlayerStrength](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerStrength/)

    ## Declaration
    ```python
    async def getPlayerStrength(id : int) -> int
    ```
    ## Parameters
    `int` **id**: the player id.
    ## Returns
    `int`: the strength points amount.
    """
    data = f'return {get_call_repr()}'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result