Atrinik Server  4.0
Python Plugin

Introduction

The Python plugin is used in various important tasks thorough Atrinik maps. It plays an important role in making quests, events, shop NPCs and much much more.

Python scripts in the game allow a lot greater flexibility than changing the server core code to implement a quest or a new type of NPC. It is not a fast way to do it, true, but flexible, because Python scripts can be changed on the fly without even restarting the server.

Atrinik Python plugin functions

The Atrinik Python plugin functions are used to make an interface with the Atrinik C server code, get script options, activator, etc.

See Also
plugin_python_functions
Python constants

Atrinik Map Python plugin functions

The Atrinik Map Python plugin functions allow you to access map related functions, the map structure fields, and so on.

See Also
plugin_python_map_functions
Python map fields
Python map flags

Atrinik Object Python plugin functions

The Atrinik Object Python plugin functions allow you great flexibility in manipulating objects, players, and about everything related to object structure.

See Also
plugin_python_object_functions
Python object fields
Python object flags

Atrinik Party Python plugin functions

The Atrinik Party Python plugin functions allow you to make interesting events or dungeons, where in order to participate, one must/mustn't be in a party.

See Also
plugin_python_party_functions
Python party fields

Atrinik Region Python plugin functions

Provides an interface to get information about map's region.

See Also
Python region fields

Atrinik Player Python plugin functions

Interface to get information about player's structure, for example, save bed location, party, etc.

See Also
plugin_python_player_functions
Python player fields

Atrinik Archetype Python plugin functions

Archetype interface allows you to get object's arch name, for example. The following would print the activator's arch name:

print(WhoIsActivator().arch.name)
See Also
Python archetype fields