This function gets informations about elements in NPC action queue.
Original: getNpcActions
Declaration
async def getNpcActions(npc_id : int) -> list
Parameters
int npc_id: the identifier of npc.
Returns
list [{type, id}]: The array containing information about queue elements.
Source code in src/pyg2o/functions/npc.py
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104 | async def getNpcActions(npc_id : int) -> list:
"""
This function gets informations about elements in NPC action queue.
Original: [getNpcActions](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/npc/getNpcActions/)
## Declaration
```python
async def getNpcActions(npc_id : int) -> list
```
## Parameters
`int` **npc_id**: the identifier of npc.
## Returns
`list [{type, id}]`: The array containing information about queue elements.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|