This function will get the equipped player armor.
Original: getPlayerArmor
Declaration
async def getPlayerArmor(id : int) -> str
Parameters
int id: the player id.
Returns
str: the item instance from Daedalus scripts.
Source code in src/pyg2o/functions/player.py
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213 | async def getPlayerArmor(id : int) -> str:
"""
This function will get the equipped player armor.
Original: [getPlayerArmor](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerArmor/)
## Declaration
```python
async def getPlayerArmor(id : int) -> str
```
## Parameters
`int` **id**: the player id.
## Returns
`str`: the item instance from Daedalus scripts.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|