Skip to content

function setPlayerMana

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

Declaration

async def setPlayerMana(id : int, Mana : int)

Parameters

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

Source code in src/pyg2o/functions/player.py
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
async def setPlayerMana(id : int, mana : int):
    """
    This function will set the player mana points for all players.
    Original: [setPlayerMana](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/setPlayerMana/)

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

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