This function will get the player talent.
Original: getPlayerTalent
Declaration
async def getPlayerTalent(id : int, talentId : int) -> int
Parameters
int id: the player id.
int talentId: the talent id. For more information see Talent constants.
Returns
int: the current talent value for specific talent id.
Source code in src/pyg2o/functions/player.py
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895 | async def getPlayerTalent(id : int, talentId : int) -> int:
"""
This function will get the player talent.
Original: [getPlayerTalent](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerTalent/)
## Declaration
```python
async def getPlayerTalent(id : int, talentId : int) -> int
```
## Parameters
`int` **id**: the player id.
`int` **talentId**: the talent id. For more information see [Talent constants](../../constants/talent.md).
## Returns
`int`: the current talent value for specific talent id.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|