This function will toggle the player talent for all players.
Original: setPlayerTalent
Declaration
async def setPlayerTalent(id : int, talentId : int, talentValue : int)
Parameters
int id: the player id.
int talentId: the talent id. For more information see Talent constants.
int talentValue: the new talent value.
Source code in src/pyg2o/functions/player.py
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657 | async def setPlayerTalent(id : int, talentId : int, talentValue : int):
"""
This function will toggle the player talent for all players.
Original: [setPlayerTalent](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/setPlayerTalent/)
## Declaration
```python
async def setPlayerTalent(id : int, talentId : int, talentValue : int)
```
## Parameters
`int` **id**: the player id.
`int` **talentId**: the talent id. For more information see [Talent constants](../../constants/talent.md).
`int` **talentValue**: the new talent value.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|