This function will cause player to ready equipped spell.
Original: readySpell
Declaration
async def readySpell(id : int, slotId : int, manaInvested : int)
Parameters
int id: the player id.
int slotId: the equipped spell slotId in range <0, 6>.
int manaInvested: the spell cast cost in mana points.
Source code in src/pyg2o/functions/player.py
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213 | async def readySpell(id : int, slotId : int, manaInvested : int):
"""
This function will cause player to ready equipped spell.
Original: [readySpell](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/readySpell/)
## Declaration
```python
async def readySpell(id : int, slotId : int, manaInvested : int)
```
## Parameters
`int` **id**: the player id.
`int` **slotId**: the equipped spell slotId in range <0, 6>.
`int` **manaInvested**: the spell cast cost in mana points.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|