This function enqueues spell cast action to the remote NPC action queue.
Original: npcSpellCast
Declaration
async def npcSpellCast(attacker_id : int, enemy_id : int)
Parameters
int attacker_id: the remote npc id.
int enemy_id: the remote npc or player id.
Source code in src/pyg2o/functions/npc.py
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267 | async def npcSpellCast(attacker_id : int, enemy_id : int):
"""
This function enqueues spell cast action to the remote NPC action queue.
Original: [npcSpellCast](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/npc/npcSpellCast/)
## Declaration
```python
async def npcSpellCast(attacker_id : int, enemy_id : int)
```
## Parameters
`int` **attacker_id**: the remote npc id.
`int` **enemy_id**: the remote npc or player id.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|