Skip to content

function setPlayerMaxMana

This function will set the player max mana points for all players.
Original: setPlayerMaxMana

Declaration

async def setPlayerMaxMana(id : int, maxMana : int)

Parameters

int id: the player id.
int maxMana: max mana points amount.

Source code in src/pyg2o/functions/player.py
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
async def setPlayerMaxMana(id : int, maxMana : int):
    """
    This function will set the player max mana points for all players.
    Original: [setPlayerMaxMana](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/setPlayerMaxMana/)

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

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