Skip to content

function getPlayerMaxMana

This function will get the player max mana points.
Original: getPlayerMaxMana

Declaration

async def getPlayerMaxMana(id : int) -> int

Parameters

int id: the player id.

Returns

int: the max mana points amount.

Source code in src/pyg2o/functions/player.py
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
async def getPlayerMaxMana(id : int) -> int:
    """
    This function will get the player max mana points.
    Original: [getPlayerMaxMana](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerMaxMana/)

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

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