Skip to content

function getPlayerSkillWeapon

This function will get the player skill weapon.
Original: getPlayerSkillWeapon

Declaration

async def getPlayerSkillWeapon(id : int, skillId : int) -> int

Parameters

int id: the player id.
int skillId: For more information see Skill weapon constants.

Returns

int: the percentage value in range <0, 100>.

Source code in src/pyg2o/functions/player.py
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
async def getPlayerSkillWeapon(id : int, skillId : int) -> int:
    """
    This function will get the player skill weapon.
    Original: [getPlayerSkillWeapon](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerSkillWeapon/)

    ## Declaration
    ```python
    async def getPlayerSkillWeapon(id : int, skillId : int) -> int
    ```
    ## Parameters
    `int` **id**: the player id.
    `int` **skillId**: For more information see [Skill weapon constants](../../constants/skill-weapon.md).
    ## Returns
    `int`: the percentage value in range <0, 100>.
    """
    data = f'return {get_call_repr()}'

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