This function will get the equipped player spell.
Original: getPlayerSpell
Declaration
dasync def getPlayerSpell(id : int, slotId : int) -> str
Parameters
int id: the player id.
int slotId: the equipped slotId in range <0, 6>.
Returns
str: the item instance from Daedalus scripts.
Source code in src/pyg2o/functions/player.py
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854 | async def getPlayerSpell(id : int, slotId : int) -> str:
"""
This function will get the equipped player spell.
Original: [getPlayerSpell](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerSpell/)
## Declaration
```python
dasync def getPlayerSpell(id : int, slotId : int) -> str
```
## Parameters
`int` **id**: the player id.
`int` **slotId**: the equipped slotId in range <0, 6>.
## 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
|