docs: Updated docs for 2.0.0 version
This commit is contained in:
1
.github/workflows/docs_pages.yml
vendored
1
.github/workflows/docs_pages.yml
vendored
@@ -19,5 +19,4 @@ jobs:
|
||||
pip install mkdocs-material
|
||||
pip install mkdocs-callouts
|
||||
pip install mkdocs-glightbox
|
||||
cd python/
|
||||
mkdocs gh-deploy --force
|
||||
92
.github/workflows/release.yml
vendored
92
.github/workflows/release.yml
vendored
@@ -1,92 +0,0 @@
|
||||
name: release
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
create-new-release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
outputs:
|
||||
assets_url: ${{ steps.create-release.outputs.upload_url }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Create release
|
||||
id: create-release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.run_number }}
|
||||
release_name: Release Title
|
||||
body_path: CHANGELOG.md
|
||||
draft: true
|
||||
release-win64:
|
||||
runs-on: windows-latest
|
||||
needs: create-new-release
|
||||
permissions:
|
||||
contents: write
|
||||
outputs:
|
||||
assets_url: ${{ steps.create-release.outputs.upload_url }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install MSVC
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
- name: Install CMake
|
||||
uses: lukka/get-cmake@latest
|
||||
- name: Init submodules
|
||||
run: git submodule update --init --recursive
|
||||
- name: CMake - Configure
|
||||
run: cmake . --preset Windows-x64-Release -DCMAKE_BUILD_TYPE="Release" -DCOUT_FILE_SUFFIX="x64"
|
||||
- name: CMake - Build
|
||||
run: cmake --build --preset Windows-x64-Release
|
||||
- name: Archive output files
|
||||
run: Compress-Archive -Path "python/g2o", "build/Windows-x64-Release/source/PyG2O.x64.dll" -Destination Windows-x64-Release.zip
|
||||
- name: Upload release
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create-new-release.outputs.assets_url }}
|
||||
asset_path: ./Windows-x64-Release.zip
|
||||
asset_name: Windows-x64-Release.zip
|
||||
asset_content_type: application/zip
|
||||
release-arm64:
|
||||
runs-on: ubuntu-latest
|
||||
needs: create-new-release
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
- name: Install CMake
|
||||
uses: lukka/get-cmake@latest
|
||||
- name: Init submodules
|
||||
run: git submodule update --init --recursive
|
||||
- name: CMake - Configure
|
||||
run: cmake . --preset Linux-x64-Release -DCMAKE_BUILD_TYPE="Release" -DCOUT_FILE_SUFFIX="x64"
|
||||
- name: CMake - Build
|
||||
run: cmake --build --preset Linux-x64-Release
|
||||
- name: Archive files
|
||||
uses: montudor/action-zip@v1
|
||||
with:
|
||||
args: zip -r Linux-x64-Release.zip python/g2o build/Linux-x64-Release/source/PyG2O.x64.so
|
||||
- name: Upload release
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.create-new-release.outputs.assets_url }}
|
||||
asset_path: ./Linux-x64-Release.zip
|
||||
asset_name: Linux-x64-Release.zip
|
||||
asset_content_type: application/zip
|
||||
@@ -4,11 +4,8 @@ Python support for server-side scripts in [Gothic 2 Online](https://gothic-onlin
|
||||
|
||||
**Documentation:** https://aurumvorxx.github.io/PyG2O/
|
||||
|
||||
## How to build
|
||||
|
||||
Requirements:
|
||||
- Python 3.13
|
||||
- CMake
|
||||
- websockets
|
||||
|
||||
Steps:
|
||||
1. Copy this repo to your local machine
|
||||
|
||||
3
docs/classes/game/Daedalus.md
Normal file
3
docs/classes/game/Daedalus.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# `static class` Daedalus
|
||||
---
|
||||
::: src.pyg2o.classes.daedalus.Daedalus
|
||||
3
docs/classes/game/DamageDescription.md
Normal file
3
docs/classes/game/DamageDescription.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# `class` DamageDescription
|
||||
---
|
||||
::: src.pyg2o.classes.damage.DamageDescription
|
||||
3
docs/classes/game/Sky.md
Normal file
3
docs/classes/game/Sky.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# `static class` Sky
|
||||
---
|
||||
::: src.pyg2o.classes.sky.Sky
|
||||
3
docs/classes/item/ItemGround.md
Normal file
3
docs/classes/item/ItemGround.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# `static class` ItemGround
|
||||
---
|
||||
::: src.pyg2o.classes.items.ItemGround
|
||||
3
docs/classes/item/ItemsGround.md
Normal file
3
docs/classes/item/ItemsGround.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# `static class` ItemsGround
|
||||
---
|
||||
::: src.pyg2o.classes.items.ItemsGround
|
||||
3
docs/classes/mds/Mds.md
Normal file
3
docs/classes/mds/Mds.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# `static class` Mds
|
||||
---
|
||||
::: src.pyg2o.classes.mds.Mds
|
||||
@@ -1,55 +1,55 @@
|
||||
|
||||
* `addEventHandler` replaced with decorator [event](functions/event/event.md)
|
||||
```python
|
||||
@g2o.event('onInit')
|
||||
def evtInitFirst(**kwargs):
|
||||
@pyg2o.event('onInit')
|
||||
async def evtInitFirst():
|
||||
print('Hello')
|
||||
|
||||
@g2o.event('onInit', 100) # '100' is priority
|
||||
def evtInitSecond(**kwargs):
|
||||
@pyg2o.event('onInit', 100) # '100' is priority
|
||||
async def evtInitSecond():
|
||||
print('World')
|
||||
```
|
||||
---
|
||||
* Positional arguments inside event handles replaced with keyword arguments (see names of all keywords on the each event page)
|
||||
```python
|
||||
@g2o.event('onPlayerChangeColor')
|
||||
def evtColor(**kwargs):
|
||||
playerid = kwargs['playerid']
|
||||
r = kwargs['r']
|
||||
b = kwargs['b']
|
||||
@pyg2o.event('onPlayerChangeColor')
|
||||
async def evtColor(playerid, r, g, b):
|
||||
pass
|
||||
```
|
||||
---
|
||||
* `callEvent` now also requires to pass keyword arguments instead of positional arguments
|
||||
```python
|
||||
@g2o.event('MyTestEvent')
|
||||
def testEvt(**kwargs):
|
||||
print(kwargs)
|
||||
@pyg2o.event('MyTestEvent')
|
||||
async def testEvt(name, id):
|
||||
print(name, id)
|
||||
|
||||
g2o.callEvent('MyTestEvent', name = 'aurumvorax', id = 15)
|
||||
# OR
|
||||
g2o.callEvent('MyTestEvent', {'name': 'aurumvorax', 'id': 15})
|
||||
# OR
|
||||
args = {'name': 'aurumvorax', 'id': 15}
|
||||
g2o.callEvent('MyTestEvent', args)
|
||||
asyncio.create_task(pyg2o.callEvent('MyTestEvent', args))
|
||||
```
|
||||
---
|
||||
* `cancelEvent` replaced with returning `False` inside the handler
|
||||
<sup>*(you don't need to explicitly return `True` if you don't want to cancel the event)*</sup>
|
||||
```python
|
||||
@g2o.event('onPlayerTakeItem')
|
||||
def evtTake(**kwargs):
|
||||
return False
|
||||
```
|
||||
* `cancelEvent` temporarily disabled
|
||||
---
|
||||
* `isEventCancelled` replaced with built-in function property `cancelled`, alongside with the `eventName`
|
||||
```python
|
||||
@g2o.event('onPlayerDropItem')
|
||||
def evtDrop(**kwargs):
|
||||
@pyg2o.event('onPlayerDropItem')
|
||||
async def evtDrop(**kwargs):
|
||||
print(evtDrop.cancelled)
|
||||
print(evtDrop.eventName)
|
||||
```
|
||||
-----
|
||||
* Following functions have been removed <sub><sup>RIP :(</sub></sup>
|
||||
---
|
||||
Now all constants should be called via **Constant** class
|
||||
```pyton
|
||||
import pyg2o
|
||||
|
||||
@pyg2o.event('onInit')
|
||||
async def evt_init():
|
||||
print(pyg2o.Constant.SERVER_SIDE)
|
||||
```
|
||||
* Following functions and classes have been removed <sub><sup>RIP :(</sub></sup>
|
||||
|
||||
* `md5`
|
||||
* `sha1`
|
||||
@@ -71,7 +71,17 @@ def evtDrop(**kwargs):
|
||||
* `eventValue`
|
||||
* `getPlayerMagicLevel`
|
||||
* `setPlayerMagicLevel`
|
||||
* `Packet`
|
||||
* `Way`
|
||||
* `NpcAction`
|
||||
|
||||
* Following constants has been removed:
|
||||
|
||||
* `UNRELIABLE`
|
||||
* `UNRELIABLE_SEQUENCED`
|
||||
* `RELIABLE`
|
||||
* `RELIABLE_SEQUENCED`
|
||||
* `RELIABLE_ORDERED`
|
||||
---
|
||||
* All functions and events that returned/passed a `null` in the Squirrel, now passes an empty string. Most notable in this list are all equipment related functions and events
|
||||
* `onPlayerEquipAmulet`
|
||||
@@ -92,6 +102,4 @@ def evtDrop(**kwargs):
|
||||
* `getPlayerRangedWeapon`
|
||||
* `getPlayerRing`
|
||||
* `getPlayerShield`
|
||||
* `getPlayerSpell`
|
||||
---
|
||||
* `ItemsGround.getById` throws an exception instead of returning `null` if there's no item with given ID
|
||||
* `getPlayerSpell`
|
||||
@@ -13,9 +13,9 @@ Original: [onPlayerUseCheat](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o
|
||||
|
||||
@g2o.event('onPlayerUseCheat')
|
||||
def onCheat(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} used forbidden cheat tool type {kwargs['type']}.')
|
||||
@pyg2o.event('onPlayerUseCheat')
|
||||
async def onCheat(playerid, type):
|
||||
print(f'Player {playerid} used forbidden cheat tool type {type}.')
|
||||
```
|
||||
@@ -18,13 +18,13 @@ Original: [onBan](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-refe
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
from datetime import datetime
|
||||
|
||||
@g2o.event('onBan')
|
||||
def onBan(**kwargs):
|
||||
print(f'Player {kwargs['name']} has been banned.')
|
||||
if ('timestamp' in kwargs):
|
||||
banExpires = datetime.fromtimestamp(kwargs['timestamp'])
|
||||
async def onBan(banInfo):
|
||||
print(f'Player {banInfo['name']} has been banned.')
|
||||
if ('timestamp' in banInfo):
|
||||
banExpires = datetime.fromtimestamp(banInfo['timestamp'])
|
||||
print(f'Ban expires at {banExpires}')
|
||||
```
|
||||
@@ -9,9 +9,9 @@ No parameters.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onExit')
|
||||
def onExitEvt(**kwargs):
|
||||
async def onExitEvt():
|
||||
print('Bye')
|
||||
```
|
||||
@@ -8,9 +8,9 @@ No parameters.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onInit')
|
||||
def onInitEventHandler(**kwargs):
|
||||
async def onInitEventHandler():
|
||||
print('Called onInit event')
|
||||
```
|
||||
@@ -8,9 +8,9 @@ No parameters.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onTick')
|
||||
def onTickEvt(**kwargs):
|
||||
async def onTickEvt():
|
||||
print('Tock')
|
||||
```
|
||||
@@ -11,12 +11,9 @@ Original: [onExit](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-ref
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onTick')
|
||||
def onTickEvt(**kwargs):
|
||||
day = kwargs['day']
|
||||
hour = kwargs['hour']
|
||||
mins = kwargs['min']
|
||||
@g2o.event('onTime')
|
||||
async def onTickEvt(day, hour, min):
|
||||
print(f'Current time: Day {day}, Hour {hour}, Min {mins}')
|
||||
```
|
||||
@@ -18,9 +18,9 @@ Original: [onExit](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-ref
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onUnban')
|
||||
def onUnban(**kwargs):
|
||||
print(f'Player {kwargs['name']} has been unbanned.')
|
||||
async def onUnban(banInfo):
|
||||
print(f'Player {banInfo['name']} has been unbanned.')
|
||||
```
|
||||
@@ -13,9 +13,9 @@ Original: [onNpcActionFinished](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onNpcActionFinished')
|
||||
def onActionFinished(**kwargs):
|
||||
print(f'NPC {kwargs['npc_id']} finished action {kwargs['action_type']} with the result {kwargs['result']}.')
|
||||
async def onActionFinished(npc_id, action_type, action_id, result):
|
||||
print(f'NPC {npc_id} finished action {action_type} with the result {result}.')
|
||||
```
|
||||
@@ -12,9 +12,9 @@ Original: [onNpcActionSent](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onNpcActionSent')
|
||||
def onActionSent(**kwargs):
|
||||
print(f'NPC {kwargs['npc_id']} changed host from {kwargs['previous_id']} to {kwargs['current_id']}.')
|
||||
async def onActionSent(npc_id, action_type, action_id):
|
||||
print(f'NPC {npc_id} sent action {action_id}.')
|
||||
```
|
||||
@@ -12,9 +12,9 @@ Original: [onNpcChangeHostPlayer](https://gothicmultiplayerteam.gitlab.io/docs/0
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onNpcChangeHostPlayer')
|
||||
def onChangeHostPlayer(**kwargs):
|
||||
print(f'NPC {kwargs['npc_id']} sent {kwargs['action_type']} to all players.')
|
||||
async def onChangeHostPlayer(npc_id, previous_id, current_id):
|
||||
print(f'NPC {npc_id} changed host to {current_id}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onNpcCreated](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scri
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onNpcCreated')
|
||||
def onNpcCreate(**kwargs):
|
||||
print(f'NPC {kwargs['npc_id']} has been created.')
|
||||
async def onNpcCreate(npc_id):
|
||||
print(f'NPC {npc_id} has been created.')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onNpcDestroyed](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/sc
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onNpcDestroyed')
|
||||
def onNpcDestroy(**kwargs):
|
||||
print(f'NPC {kwargs['npc_id']} has been destroyed.')
|
||||
async def onNpcDestroy(npc_id):
|
||||
print(f'NPC {npc_id} has been destroyed.')
|
||||
```
|
||||
@@ -12,14 +12,11 @@ Original: [onPlayerChangeColor](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeColor')
|
||||
def onChangeColor(**kwargs):
|
||||
# Slicing out playerid and converting from {r: num, g: num, b: num}
|
||||
# to (num, num, num)
|
||||
rgbColor = tuple(list(kwargs.values())[1:])
|
||||
# Formating rgb into hex color
|
||||
async def onChangeColor(playerid, r, g, b):
|
||||
rgbColor = tuple(r, g, b)
|
||||
hexColor = '#%02x%02x%02x' % rgbColor
|
||||
print(f'Player {kwargs['playerid']} changed his color to {hexColor}')
|
||||
print(f'Player {playerid} changed his color to {hexColor}')
|
||||
```
|
||||
@@ -11,13 +11,12 @@ Original: [onPlayerChangeFocus](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeFocus')
|
||||
def onChangeFocus(**kwargs):
|
||||
focusId = kwargs['newFocusId']
|
||||
if focusId != -1:
|
||||
print(f'Player {kwargs['playerid']} is looking at {focusId}')
|
||||
async def onChangeFocus(playerid, oldFocusId, newFocusId):
|
||||
if newFocusId != -1:
|
||||
print(f'Player {playerid} is looking at {newFocusId}')
|
||||
else
|
||||
print(f'Player {kwargs['playerid']} is looking at... who?')
|
||||
print(f'Player {playerid} is looking at... who?')
|
||||
```
|
||||
@@ -6,14 +6,14 @@ Original: [onPlayerChangeHealth](https://gothicmultiplayerteam.gitlab.io/docs/0.
|
||||
## Parameters
|
||||
* `dict` **kwargs**:
|
||||
* `int` **playerid**: the id of the player whose health points gets changed.
|
||||
* `int` **oldHP**: the previous health points of the player.
|
||||
* `int` **newHP**: the new health points of the player.
|
||||
* `int` **previous**: the previous health points of the player.
|
||||
* `int` **current**: the new health points of the player.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeHealth')
|
||||
def onChangeHealth(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} changed health: {kwargs['oldHP']} -> {kwargs['newHP']}')
|
||||
async def onChangeHealth(playerid, previous, current):
|
||||
print(f'Player {playerid} changed health: {previous} -> {current}')
|
||||
```
|
||||
@@ -6,14 +6,14 @@ Original: [onPlayerChangeMana](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
## Parameters
|
||||
* `dict` **kwargs**:
|
||||
* `int` **playerid**: the id of the player mana points gets changed.
|
||||
* `int` **oldMP**: the previous mana points of the player.
|
||||
* `int` **newMP**: the new mana points of the player.
|
||||
* `int` **previous**: the previous mana points of the player.
|
||||
* `int` **current**: the new mana points of the player.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeMana')
|
||||
def onChangeMana(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} changed mana: {kwargs['oldMP']} -> {kwargs['newMP']}')
|
||||
async def onChangeMana(playerid, previous, current):
|
||||
print(f'Player {playerid} changed mana: {previous} -> {current}')
|
||||
```
|
||||
@@ -6,14 +6,14 @@ Original: [onPlayerChangeMaxHealth](https://gothicmultiplayerteam.gitlab.io/docs
|
||||
## Parameters
|
||||
* `dict` **kwargs**:
|
||||
* `int` **playerid**: the id of the player whose maxium health points gets changed.
|
||||
* `int` **oldMaxHP**: the previous maximum health points of the player.
|
||||
* `int` **newMaxHP**: the new maximum health points of the player.
|
||||
* `int` **previous**: the previous maximum health points of the player.
|
||||
* `int` **current**: the new maximum health points of the player.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeMaxHealth')
|
||||
def onChangeMaxHealth(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} changed maximum health: {kwargs['oldMaxHP']} -> {kwargs['newMaxHP']}')
|
||||
async def onChangeMaxHealth(playerid, previous, current):
|
||||
print(f'Player {playerid} changed maximum health: {previous} -> {current}')
|
||||
```
|
||||
@@ -6,14 +6,14 @@ Original: [onPlayerChangeMaxMana](https://gothicmultiplayerteam.gitlab.io/docs/0
|
||||
## Parameters
|
||||
* `dict` **kwargs**:
|
||||
* `int` **playerid**: the id of the player maximum mana points gets changed.
|
||||
* `int` **oldMaxMP**: the previous maximum mana points of the player.
|
||||
* `int` **newMaxMP**: the new maximum mana points of the player.
|
||||
* `int` **previous**: the previous maximum mana points of the player.
|
||||
* `int` **current**: the new maximum mana points of the player.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeMaxMana')
|
||||
def onChangeMaxMana(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} changed maximum mana: {kwargs['oldMaxMP']} -> {kwargs['newMaxMP']}')
|
||||
async def onChangeMaxMana(playerid, previous, current):
|
||||
print(f'Player {playerid} changed maximum mana: {previous} -> {current}')
|
||||
```
|
||||
19
docs/defaultEvents/player/onPlayerChangeWeaponMode.md
Normal file
19
docs/defaultEvents/player/onPlayerChangeWeaponMode.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# `event` onPlayerChangeWeaponMode
|
||||
This event is triggered when player changes the weapon mode.
|
||||
|
||||
Original: [onPlayerChangeWeaponMode](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-events/player/onPlayerChangeWeaponMode/)
|
||||
|
||||
## Parameters
|
||||
* `dict` **kwargs**:
|
||||
* `int` **playerid**: the id of the player which changes the weapon mode.
|
||||
* `int` **previous**: the old weapon mode which was used by the player. For more information see [Weapon mode](../../constants/weapon-mode.md).
|
||||
* `int` **current**: the new weapon mode in which player is currently using. For more information see [Weapon mode](../../constants/weapon-mode.md).
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeWeaponMode')
|
||||
async def onChangeWM(playerid, previous, current):
|
||||
print(f'Player {playerid} changed wm: {previous} -> {current}')
|
||||
```
|
||||
@@ -12,9 +12,9 @@ Original: [onPlayerChangeWorld](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerChangeWorld')
|
||||
def onChangeWorld(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} teleported to {kwargs['world']} at {kwargs['waypoint']}')
|
||||
async def onChangeWorld(playerid, world, waypoint):
|
||||
print(f'Player {playerid} teleported to {world} at {waypoint}')
|
||||
```
|
||||
@@ -12,13 +12,13 @@ Original: [onPlayerCommand](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerCommand')
|
||||
def onCommand(**kwargs):
|
||||
async def onCommand(playerid, command, params):
|
||||
# Spliting and formating params
|
||||
params = [eval(x) if not x.isalpha() else x for kwargs['params'].split()]
|
||||
params = [eval(x) if not x.isalpha() else x for params.split()]
|
||||
|
||||
if kwargs['command'] == 'add' and len(params) == 2:
|
||||
if command == 'add' and len(params) == 2:
|
||||
print('Sum is: ', params[0] + params[1]) # /add 5 10 -> output: Sum is 15
|
||||
```
|
||||
@@ -12,10 +12,9 @@ Original: [onPlayerDamage](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/sc
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerDamage')
|
||||
def onDamage(**kwargs):
|
||||
desc = kwargs['description']
|
||||
print(f'Ouch! Player {kwargs['playerid']} just received {desc.damage} damage.')
|
||||
async def onDamage(playerid, killerid, description):
|
||||
print(f'Ouch! Player {playerid} just received {description.damage} damage.')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerDead](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scri
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerDead')
|
||||
def onDead(**kwargs):
|
||||
print(kwargs['playerid'], 'killed by', kwargs['killerid'])
|
||||
async def onDead(playerid, killerid):
|
||||
print(playerid, 'killed by', killerid)
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerDisconnect](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerDisconnect')
|
||||
def onDC(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} has left from the server')
|
||||
async def onDC(playerid, reason):
|
||||
print(f'Player {playerid} has left from the server')
|
||||
```
|
||||
@@ -11,10 +11,9 @@ Original: [onPlayerDropItem](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerDropItem')
|
||||
def onDropItem(**kwargs):
|
||||
item = itemm['itemGround']
|
||||
print(f'Player {kwargs['playerid']} dropped {item.instance} x{item.amount}')
|
||||
async def onDropItem(playerid, itemGround):
|
||||
print(f'Player {playerid} dropped {itemGround.instance} x{itemGround.amount}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEnterWorld](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEnterWorld')
|
||||
def onEnterWorld(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} entered world {kwargs['world']}')
|
||||
async def onEnterWorld(playerid, world):
|
||||
print(f'Player {playerid} entered world {world}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipAmulet](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipAmulet')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipArmor](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipArmor')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipBelt](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipBelt')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -11,9 +11,9 @@ Original: [onPlayerEquipHandItem](https://gothicmultiplayerteam.gitlab.io/docs/0
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipHandItem')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} has {kwargs['instance']}, used hand with id {kwargs['hand']}')
|
||||
async def onEquip(playerid, hand, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipHelmet](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipHelmet')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipMeleeWeapon](https://gothicmultiplayerteam.gitlab.io/doc
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipMeleeWeapon')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipRangedWeapon](https://gothicmultiplayerteam.gitlab.io/do
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipRangedWeapon')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -11,9 +11,9 @@ Original: [onPlayerEquipRing](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipRing')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} has {kwargs['instance']}, used hand with id {kwargs['hand']}')
|
||||
async def onEquip(playerid, hand, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerEquipShield](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerEquipShield')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')
|
||||
async def onEquip(playerid, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -11,9 +11,9 @@ Original: [onPlayerEquipSpell](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerSpell')
|
||||
def onEquip(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} equipped spell {kwargs['instance']} at slot {kwargs['slotId']}')
|
||||
async def onEquip(playerid, slotId, instance):
|
||||
print(f'Player {playerid} equipped {instance}')
|
||||
```
|
||||
@@ -9,9 +9,9 @@ Original: [onPlayerJoin](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scri
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerJoin')
|
||||
def onJoin(**kwargs):
|
||||
print(kwargs['playerid'], 'joined to the server.')
|
||||
async def onJoin(playerid):
|
||||
print(pyg2o.getPlayerName(playerid), ' joined to the server.')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerMessage](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerMessage')
|
||||
def onMessage(**kwargs):
|
||||
print(kwargs['playerid'], 'says', kwargs['message'])
|
||||
async def onMessage(playerid, message):
|
||||
print(pyg2o.getPlayerName(playerid), ' says ', message)
|
||||
```
|
||||
@@ -10,10 +10,10 @@ Original: [onPlayerMobInteract](https://gothicmultiplayerteam.gitlab.io/docs/0.3
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerMobInteract')
|
||||
def onMobInteract(**kwargs):
|
||||
if kwargs['to'] == 1:
|
||||
print(kwargs['playerid'], 'started interaction with the MOB')
|
||||
async def onMobInteract(playerid, from, to):
|
||||
if to == 1:
|
||||
print(playerid, 'started interaction with the MOB')
|
||||
```
|
||||
@@ -9,9 +9,9 @@ Original: [onPlayerRespawn](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerRespawn')
|
||||
def onRespawn(**kwargs):
|
||||
print(kwargs['playerid'], 'respawned.')
|
||||
async def onRespawn(playerid):
|
||||
print(playerid, 'respawned.')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerShoot](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scr
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerShoot')
|
||||
def onShoot(**kwargs):
|
||||
print(kwargs['playerid'], 'made a shot.')
|
||||
async def onShoot(playerid, munition):
|
||||
print(playerid, 'made a shot.')
|
||||
```
|
||||
@@ -15,9 +15,9 @@ Original: [onPlayerSpellCast](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerSpellCast')
|
||||
def onSpellCast(**kwargs):
|
||||
print(kwargs['player'], 'casted a spell', kwargs['instance'])
|
||||
async def onSpellCast(playerid, instance, spellLevel):
|
||||
print(playerid, 'casted a spell', instance)
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerSpellSetup](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerSpellSetup')
|
||||
def onSpellSetup(**kwargs):
|
||||
print(kwargs['player'], 'setuped a spell', kwargs['instance'])
|
||||
async def onSpellSetup(playerid, instance):
|
||||
print(playerid, 'setuped a spell', instance)
|
||||
```
|
||||
@@ -14,10 +14,9 @@ Original: [onPlayerTakeItem](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerTakeItem')
|
||||
def onTakeItem(**kwargs):
|
||||
item = itemm['itemGround']
|
||||
print(f'Player {kwargs['playerid']} took {item.instance} x{item.amount}')
|
||||
async def onTakeItem(playerid, itemGround):
|
||||
print(f'Player {playerid} took {itemGround.instance} x{itemGround.amount}')
|
||||
```
|
||||
@@ -10,9 +10,9 @@ Original: [onPlayerTeleport](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
import pyg2o as g2o
|
||||
|
||||
@g2o.event('onPlayerTeleport')
|
||||
def onTeleport(**kwargs):
|
||||
print(kwargs['player'], 'teleported to', kwargs['vobName'])
|
||||
async def onTeleport(playerid, vobName):
|
||||
print(playerid, 'teleported to', vobName)
|
||||
```
|
||||
@@ -14,7 +14,7 @@ Original: [onPlayerToggleFaceAni](https://gothicmultiplayerteam.gitlab.io/docs/0
|
||||
import g2o
|
||||
|
||||
@g2o.event('onPlayerToggleFaceAni')
|
||||
def onToggleFA(**kwargs):
|
||||
if kwargs['toggle']:
|
||||
print(kwargs['player'], 'started face ani',kwargs['aniName'])
|
||||
async def onToggleFA(playerid, aniName, toggle):
|
||||
if toggle:
|
||||
print(playerid, 'started face ani', aniName)
|
||||
```
|
||||
2
docs/functions/chat/sendMessageToAll.md
Normal file
2
docs/functions/chat/sendMessageToAll.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` sendMessageToAll
|
||||
::: src.pyg2o.functions.chat.sendMessageToAll
|
||||
2
docs/functions/chat/sendMessageToPlayer.md
Normal file
2
docs/functions/chat/sendMessageToPlayer.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` sendMessageToPlayer
|
||||
::: src.pyg2o.functions.chat.sendMessageToPlayer
|
||||
2
docs/functions/chat/sendPlayerMessageToAll.md
Normal file
2
docs/functions/chat/sendPlayerMessageToAll.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` sendPlayerMessageToAll
|
||||
::: src.pyg2o.functions.chat.sendPlayerMessageToAll
|
||||
2
docs/functions/chat/sendPlayerMessageToPlayer.md
Normal file
2
docs/functions/chat/sendPlayerMessageToPlayer.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` sendPlayerMessageToPlayer
|
||||
::: src.pyg2o.functions.chat.sendPlayerMessageToPlayer
|
||||
2
docs/functions/event/addEvent.md
Normal file
2
docs/functions/event/addEvent.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` addEvent
|
||||
::: src.pyg2o.functions.event.addEvent
|
||||
2
docs/functions/event/callEvent.md
Normal file
2
docs/functions/event/callEvent.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` callEvent
|
||||
::: src.pyg2o.functions.event.callEvent
|
||||
2
docs/functions/event/event.md
Normal file
2
docs/functions/event/event.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` event
|
||||
::: src.pyg2o.functions.event.event
|
||||
2
docs/functions/event/removeEvent.md
Normal file
2
docs/functions/event/removeEvent.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` removeEvent
|
||||
::: src.pyg2o.functions.event.removeEvent
|
||||
2
docs/functions/event/removeEventHandler.md
Normal file
2
docs/functions/event/removeEventHandler.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` removeEventHandler
|
||||
::: src.pyg2o.functions.event.removeEventHandler
|
||||
2
docs/functions/event/toggleEvent.md
Normal file
2
docs/functions/event/toggleEvent.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` toggleEvent
|
||||
::: src.pyg2o.functions.event.toggleEvent
|
||||
2
docs/functions/game/exit.md
Normal file
2
docs/functions/game/exit.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` exit
|
||||
::: src.pyg2o.functions.game.exit
|
||||
2
docs/functions/game/getDayLength.md
Normal file
2
docs/functions/game/getDayLength.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getDayLength
|
||||
::: src.pyg2o.functions.game.getDayLength
|
||||
2
docs/functions/game/getHostname.md
Normal file
2
docs/functions/game/getHostname.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getHostname
|
||||
::: src.pyg2o.functions.game.getHostname
|
||||
2
docs/functions/game/getMaxSlots.md
Normal file
2
docs/functions/game/getMaxSlots.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getMaxSlots
|
||||
::: src.pyg2o.functions.game.getMaxSlots
|
||||
2
docs/functions/game/getPlayersCount.md
Normal file
2
docs/functions/game/getPlayersCount.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getPlayersCount
|
||||
::: src.pyg2o.functions.game.getPlayersCount
|
||||
2
docs/functions/game/getServerDescription.md
Normal file
2
docs/functions/game/getServerDescription.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getServerDescription
|
||||
::: src.pyg2o.functions.game.getServerDescription
|
||||
2
docs/functions/game/getServerWorld.md
Normal file
2
docs/functions/game/getServerWorld.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getServerWorld
|
||||
::: src.pyg2o.functions.game.getServerWorld
|
||||
2
docs/functions/game/getTime.md
Normal file
2
docs/functions/game/getTime.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getTime
|
||||
::: src.pyg2o.functions.game.getTime
|
||||
2
docs/functions/game/serverLog.md
Normal file
2
docs/functions/game/serverLog.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` serverLog
|
||||
::: src.pyg2o.functions.game.serverLog
|
||||
2
docs/functions/game/setDayLength.md
Normal file
2
docs/functions/game/setDayLength.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` setDayLength
|
||||
::: src.pyg2o.functions.game.setDayLength
|
||||
2
docs/functions/game/setServerDescription.md
Normal file
2
docs/functions/game/setServerDescription.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` setServerDescription
|
||||
::: src.pyg2o.functions.game.setServerDescription
|
||||
2
docs/functions/game/setServerWorld.md
Normal file
2
docs/functions/game/setServerWorld.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` setServerWorld
|
||||
::: src.pyg2o.functions.game.setServerWorld
|
||||
2
docs/functions/game/setTime.md
Normal file
2
docs/functions/game/setTime.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` setTime
|
||||
::: src.pyg2o.functions.game.setTime
|
||||
2
docs/functions/npc/clearNpcActions.md
Normal file
2
docs/functions/npc/clearNpcActions.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` clearNpcActions
|
||||
::: src.pyg2o.functions.npc.clearNpcActions
|
||||
2
docs/functions/npc/createNpc.md
Normal file
2
docs/functions/npc/createNpc.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` createNpc
|
||||
::: src.pyg2o.functions.npc.createNpc
|
||||
2
docs/functions/npc/destroyNpc.md
Normal file
2
docs/functions/npc/destroyNpc.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` destroyNpc
|
||||
::: src.pyg2o.functions.npc.destroyNpc
|
||||
2
docs/functions/npc/getNpcAction.md
Normal file
2
docs/functions/npc/getNpcAction.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getNpcAction
|
||||
::: src.pyg2o.functions.npc.getNpcAction
|
||||
2
docs/functions/npc/getNpcActions.md
Normal file
2
docs/functions/npc/getNpcActions.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getNpcActions
|
||||
::: src.pyg2o.functions.npc.getNpcActions
|
||||
2
docs/functions/npc/getNpcActionsCount.md
Normal file
2
docs/functions/npc/getNpcActionsCount.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getNpcActionsCount
|
||||
::: src.pyg2o.functions.npc.getNpcActionsCount
|
||||
2
docs/functions/npc/getNpcHostPlayer.md
Normal file
2
docs/functions/npc/getNpcHostPlayer.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getNpcHostPlayer
|
||||
::: src.pyg2o.functions.npc.getNpcHostPlayer
|
||||
2
docs/functions/npc/getNpcLastActionId.md
Normal file
2
docs/functions/npc/getNpcLastActionId.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` getNpcLastActionId
|
||||
::: src.pyg2o.functions.npc.getNpcLastActionId
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user