Crossfire Server, Trunk
plugin.h File Reference
#include <dlfcn.h>
#include <global.h>
#include <object.h>
#include <logger.h>
#include <time.h>
#include "random_maps/random_map.h"
#include "random_maps/rproto.h"
#include <dirent.h>
#include <stdarg.h>
#include "events.h"
+ Include dependency graph for plugin.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _crossfire_plugin
 
struct  _hook_entry
 

Macros

#define CFAPI_ARCH_PROP_CLONE   4
 
#define CFAPI_ARCH_PROP_HEAD   2
 
#define CFAPI_ARCH_PROP_MORE   3
 
#define CFAPI_ARCH_PROP_NAME   0
 
#define CFAPI_ARCH_PROP_NEXT   1
 
#define CFAPI_CHAR   3
 
#define CFAPI_DOUBLE   8
 
#define CFAPI_FLOAT   7
 
#define CFAPI_FUNC   10
 
#define CFAPI_INT   1
 
#define CFAPI_INT16   14
 
#define CFAPI_LONG   2
 
#define CFAPI_MAP_PROP_DARKNESS   9
 
#define CFAPI_MAP_PROP_DIFFICULTY   1
 
#define CFAPI_MAP_PROP_ENTER_X   12
 
#define CFAPI_MAP_PROP_ENTER_Y   13
 
#define CFAPI_MAP_PROP_FLAGS   0
 
#define CFAPI_MAP_PROP_HEIGHT   11
 
#define CFAPI_MAP_PROP_LIGHT   8
 
#define CFAPI_MAP_PROP_MESSAGE   22
 
#define CFAPI_MAP_PROP_NAME   4
 
#define CFAPI_MAP_PROP_NEXT   23
 
#define CFAPI_MAP_PROP_PATH   2
 
#define CFAPI_MAP_PROP_PLAYERS   7
 
#define CFAPI_MAP_PROP_REGION   24
 
#define CFAPI_MAP_PROP_RESET_TIME   5
 
#define CFAPI_MAP_PROP_RESET_TIMEOUT   6
 
#define CFAPI_MAP_PROP_TMPNAME   3
 
#define CFAPI_MAP_PROP_UNIQUE   25
 
#define CFAPI_MAP_PROP_WIDTH   10
 
#define CFAPI_MOVETYPE   18 /* MoveType */
 
#define CFAPI_NONE   0
 
#define CFAPI_OBJECT_PROP_AC   87
 
#define CFAPI_OBJECT_PROP_ANIM_SPEED   66
 
#define CFAPI_OBJECT_PROP_ANIMATION   100
 
#define CFAPI_OBJECT_PROP_ARCH_NAME   97
 
#define CFAPI_OBJECT_PROP_ARCHETYPE   63
 
#define CFAPI_OBJECT_PROP_ATTACK_MOVEMENT   60
 
#define CFAPI_OBJECT_PROP_ATTACK_TYPE   31
 
#define CFAPI_OBJECT_PROP_ATTACKED_BY   55
 
#define CFAPI_OBJECT_PROP_BASE_NAME   69
 
#define CFAPI_OBJECT_PROP_CARRYING   50
 
#define CFAPI_OBJECT_PROP_CHA   85
 
#define CFAPI_OBJECT_PROP_CHEATER   75
 
#define CFAPI_OBJECT_PROP_CHOSEN_SKILL   57
 
#define CFAPI_OBJECT_PROP_CLIENT_TYPE   29
 
#define CFAPI_OBJECT_PROP_CON   81
 
#define CFAPI_OBJECT_PROP_CONTAINER   8
 
#define CFAPI_OBJECT_PROP_COUNT   10
 
#define CFAPI_OBJECT_PROP_CURRENT_WEAPON   53
 
#define CFAPI_OBJECT_PROP_CUSTOM_NAME   65
 
#define CFAPI_OBJECT_PROP_DAM   95
 
#define CFAPI_OBJECT_PROP_DEX   80
 
#define CFAPI_OBJECT_PROP_DIRECTION   25
 
#define CFAPI_OBJECT_PROP_DURATION   109
 
#define CFAPI_OBJECT_PROP_ENEMY   54
 
#define CFAPI_OBJECT_PROP_ENVIRONMENT   6
 
#define CFAPI_OBJECT_PROP_EXP   72
 
#define CFAPI_OBJECT_PROP_EXP_MULTIPLIER   62
 
#define CFAPI_OBJECT_PROP_FACE   99
 
#define CFAPI_OBJECT_PROP_FACING   26
 
#define CFAPI_OBJECT_PROP_FLAGS   78
 
#define CFAPI_OBJECT_PROP_FP   91
 
#define CFAPI_OBJECT_PROP_FRIENDLY   67
 
#define CFAPI_OBJECT_PROP_GEN_SP_ARMOUR   47
 
#define CFAPI_OBJECT_PROP_GLOW_RADIUS   51
 
#define CFAPI_OBJECT_PROP_GOD   96
 
#define CFAPI_OBJECT_PROP_GP   90
 
#define CFAPI_OBJECT_PROP_HEAD   7
 
#define CFAPI_OBJECT_PROP_HIDDEN   58
 
#define CFAPI_OBJECT_PROP_HP   88
 
#define CFAPI_OBJECT_PROP_INT   83
 
#define CFAPI_OBJECT_PROP_INVENTORY   5
 
#define CFAPI_OBJECT_PROP_INVISIBLE   98
 
#define CFAPI_OBJECT_PROP_INVISIBLE_TIME   44
 
#define CFAPI_OBJECT_PROP_ITEM_POWER   46
 
#define CFAPI_OBJECT_PROP_LAST_EAT   43
 
#define CFAPI_OBJECT_PROP_LAST_GRACE   42
 
#define CFAPI_OBJECT_PROP_LAST_HEAL   40
 
#define CFAPI_OBJECT_PROP_LAST_SP   41
 
#define CFAPI_OBJECT_PROP_LEVEL   39
 
#define CFAPI_OBJECT_PROP_LORE   19
 
#define CFAPI_OBJECT_PROP_LUCK   71
 
#define CFAPI_OBJECT_PROP_MAGIC   37
 
#define CFAPI_OBJECT_PROP_MAGICAL   70
 
#define CFAPI_OBJECT_PROP_MAP   9
 
#define CFAPI_OBJECT_PROP_MATERIAL   35
 
#define CFAPI_OBJECT_PROP_MATERIAL_NAME   36
 
#define CFAPI_OBJECT_PROP_MAXGP   94
 
#define CFAPI_OBJECT_PROP_MAXHP   92
 
#define CFAPI_OBJECT_PROP_MAXSP   93
 
#define CFAPI_OBJECT_PROP_MERGEABLE   76
 
#define CFAPI_OBJECT_PROP_MESSAGE   18
 
#define CFAPI_OBJECT_PROP_MOVE_ALLOW   104
 
#define CFAPI_OBJECT_PROP_MOVE_BLOCK   103
 
#define CFAPI_OBJECT_PROP_MOVE_OFF   106
 
#define CFAPI_OBJECT_PROP_MOVE_ON   105
 
#define CFAPI_OBJECT_PROP_MOVE_SLOW   107
 
#define CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY   108
 
#define CFAPI_OBJECT_PROP_MOVE_STATUS   59
 
#define CFAPI_OBJECT_PROP_MOVE_TYPE   102
 
#define CFAPI_OBJECT_PROP_NAME   12
 
#define CFAPI_OBJECT_PROP_NAME_PLURAL   13
 
#define CFAPI_OBJECT_PROP_NEXT_ACTIVE_OB   3
 
#define CFAPI_OBJECT_PROP_NROF   24
 
#define CFAPI_OBJECT_PROP_OB_ABOVE   1
 
#define CFAPI_OBJECT_PROP_OB_BELOW   2
 
#define CFAPI_OBJECT_PROP_OTHER_ARCH   64
 
#define CFAPI_OBJECT_PROP_OWNER   73
 
#define CFAPI_OBJECT_PROP_PATH_ATTUNED   32
 
#define CFAPI_OBJECT_PROP_PATH_DENIED   34
 
#define CFAPI_OBJECT_PROP_PATH_REPELLED   33
 
#define CFAPI_OBJECT_PROP_PICK_UP   45
 
#define CFAPI_OBJECT_PROP_PICKABLE   77
 
#define CFAPI_OBJECT_PROP_POW   84
 
#define CFAPI_OBJECT_PROP_PRESENT   74
 
#define CFAPI_OBJECT_PROP_PREV_ACTIVE_OB   4
 
#define CFAPI_OBJECT_PROP_RACE   15
 
#define CFAPI_OBJECT_PROP_RAW_NAME   110
 
#define CFAPI_OBJECT_PROP_RESIST   30
 
#define CFAPI_OBJECT_PROP_RUN_AWAY   56
 
#define CFAPI_OBJECT_PROP_SHORT_NAME   68
 
#define CFAPI_OBJECT_PROP_SKILL   17
 
#define CFAPI_OBJECT_PROP_SLAYING   16
 
#define CFAPI_OBJECT_PROP_SP   89
 
#define CFAPI_OBJECT_PROP_SPEED   22
 
#define CFAPI_OBJECT_PROP_SPEED_LEFT   23
 
#define CFAPI_OBJECT_PROP_SPELL_ITEM   61
 
#define CFAPI_OBJECT_PROP_STR   79
 
#define CFAPI_OBJECT_PROP_SUBTYPE   28
 
#define CFAPI_OBJECT_PROP_TITLE   14
 
#define CFAPI_OBJECT_PROP_TOTAL_EXP   52
 
#define CFAPI_OBJECT_PROP_TYPE   27
 
#define CFAPI_OBJECT_PROP_VALUE   38
 
#define CFAPI_OBJECT_PROP_WC   86
 
#define CFAPI_OBJECT_PROP_WEIGHT   48
 
#define CFAPI_OBJECT_PROP_WEIGHT_LIMIT   49
 
#define CFAPI_OBJECT_PROP_WIS   82
 
#define CFAPI_OBJECT_PROP_X   20
 
#define CFAPI_OBJECT_PROP_Y   21
 
#define CFAPI_PARCH   9
 
#define CFAPI_PARTY_PROP_NAME   0
 
#define CFAPI_PARTY_PROP_NEXT   1
 
#define CFAPI_PARTY_PROP_PASSWORD   2
 
#define CFAPI_PARTY_PROP_PLAYER   3
 
#define CFAPI_PLAYER_PROP_BED_MAP   153
 
#define CFAPI_PLAYER_PROP_BED_X   154
 
#define CFAPI_PLAYER_PROP_BED_Y   155
 
#define CFAPI_PLAYER_PROP_IP   150
 
#define CFAPI_PLAYER_PROP_MARKED_ITEM   151
 
#define CFAPI_PLAYER_PROP_NEXT   156
 
#define CFAPI_PLAYER_PROP_PARTY   152
 
#define CFAPI_PLAYER_PROP_TITLE   157
 
#define CFAPI_PLAYER_PROP_TRANSPORT   158
 
#define CFAPI_PLAYER_QUEST_GET_STATE   1
 
#define CFAPI_PLAYER_QUEST_SET_STATE   2
 
#define CFAPI_PLAYER_QUEST_START   0
 
#define CFAPI_PLAYER_QUEST_WAS_COMPLETED   3
 
#define CFAPI_PMAP   6
 
#define CFAPI_POBJECT   5
 
#define CFAPI_PPARTY   12
 
#define CFAPI_PPLAYER   11
 
#define CFAPI_PREGION   13
 
#define CFAPI_REGION_PROP_JAIL_PATH   7
 
#define CFAPI_REGION_PROP_JAIL_X   5
 
#define CFAPI_REGION_PROP_JAIL_Y   6
 
#define CFAPI_REGION_PROP_LONGNAME   3
 
#define CFAPI_REGION_PROP_MESSAGE   4
 
#define CFAPI_REGION_PROP_NAME   0
 
#define CFAPI_REGION_PROP_NEXT   1
 
#define CFAPI_REGION_PROP_PARENT   2
 
#define CFAPI_SINT64   16
 
#define CFAPI_SSTRING   17 /* Shared string that shouldn't be changed, or const char* */
 
#define CFAPI_STRING   4 /* String with a length that must be given too. */
 
#define CFAPI_TIME   15
 
#define LIBPTRTYPE   void *
 
#define MODULEAPI
 
#define plugins_dlclose(lib)   dlclose(lib)
 
#define plugins_dlerror()   dlerror()
 
#define plugins_dlopen(fname)   dlopen(fname, RTLD_NOW|RTLD_GLOBAL)
 
#define plugins_dlsym(lib, name)   dlsym(lib, name)
 

Typedefs

typedef struct _crossfire_plugin crossfire_plugin
 
typedef void(* f_plug_api) (int *type,...)
 
typedef int(* f_plug_init) (const char *iversion, f_plug_api gethooksptr)
 
typedef int(* f_plug_postinit) (void)
 
typedef void *(* f_plug_property) (int *type,...)
 
typedef struct _hook_entry hook_entry
 

Detailed Description

Definitions for the plugin system.

Todo:
link to plugin stuff when the documentation exists in doxygen form :) remove commented things line 329+.

Definition in file plugin.h.

Macro Definition Documentation

◆ CFAPI_ARCH_PROP_CLONE

#define CFAPI_ARCH_PROP_CLONE   4

Definition at line 272 of file plugin.h.

◆ CFAPI_ARCH_PROP_HEAD

#define CFAPI_ARCH_PROP_HEAD   2

Definition at line 270 of file plugin.h.

◆ CFAPI_ARCH_PROP_MORE

#define CFAPI_ARCH_PROP_MORE   3

Definition at line 271 of file plugin.h.

◆ CFAPI_ARCH_PROP_NAME

#define CFAPI_ARCH_PROP_NAME   0

Definition at line 268 of file plugin.h.

◆ CFAPI_ARCH_PROP_NEXT

#define CFAPI_ARCH_PROP_NEXT   1

Definition at line 269 of file plugin.h.

◆ CFAPI_CHAR

#define CFAPI_CHAR   3

Definition at line 63 of file plugin.h.

◆ CFAPI_DOUBLE

#define CFAPI_DOUBLE   8

Definition at line 68 of file plugin.h.

◆ CFAPI_FLOAT

#define CFAPI_FLOAT   7

Definition at line 67 of file plugin.h.

◆ CFAPI_FUNC

#define CFAPI_FUNC   10

Definition at line 70 of file plugin.h.

◆ CFAPI_INT

#define CFAPI_INT   1

Definition at line 61 of file plugin.h.

◆ CFAPI_INT16

#define CFAPI_INT16   14

Definition at line 74 of file plugin.h.

◆ CFAPI_LONG

#define CFAPI_LONG   2

Definition at line 62 of file plugin.h.

◆ CFAPI_MAP_PROP_DARKNESS

#define CFAPI_MAP_PROP_DARKNESS   9

Definition at line 258 of file plugin.h.

◆ CFAPI_MAP_PROP_DIFFICULTY

#define CFAPI_MAP_PROP_DIFFICULTY   1

Definition at line 250 of file plugin.h.

◆ CFAPI_MAP_PROP_ENTER_X

#define CFAPI_MAP_PROP_ENTER_X   12

Definition at line 261 of file plugin.h.

◆ CFAPI_MAP_PROP_ENTER_Y

#define CFAPI_MAP_PROP_ENTER_Y   13

Definition at line 262 of file plugin.h.

◆ CFAPI_MAP_PROP_FLAGS

#define CFAPI_MAP_PROP_FLAGS   0

Definition at line 249 of file plugin.h.

◆ CFAPI_MAP_PROP_HEIGHT

#define CFAPI_MAP_PROP_HEIGHT   11

Definition at line 260 of file plugin.h.

◆ CFAPI_MAP_PROP_LIGHT

#define CFAPI_MAP_PROP_LIGHT   8

Definition at line 257 of file plugin.h.

◆ CFAPI_MAP_PROP_MESSAGE

#define CFAPI_MAP_PROP_MESSAGE   22

Definition at line 263 of file plugin.h.

◆ CFAPI_MAP_PROP_NAME

#define CFAPI_MAP_PROP_NAME   4

Definition at line 253 of file plugin.h.

◆ CFAPI_MAP_PROP_NEXT

#define CFAPI_MAP_PROP_NEXT   23

Definition at line 264 of file plugin.h.

◆ CFAPI_MAP_PROP_PATH

#define CFAPI_MAP_PROP_PATH   2

Definition at line 251 of file plugin.h.

◆ CFAPI_MAP_PROP_PLAYERS

#define CFAPI_MAP_PROP_PLAYERS   7

Definition at line 256 of file plugin.h.

◆ CFAPI_MAP_PROP_REGION

#define CFAPI_MAP_PROP_REGION   24

Definition at line 265 of file plugin.h.

◆ CFAPI_MAP_PROP_RESET_TIME

#define CFAPI_MAP_PROP_RESET_TIME   5

Definition at line 254 of file plugin.h.

◆ CFAPI_MAP_PROP_RESET_TIMEOUT

#define CFAPI_MAP_PROP_RESET_TIMEOUT   6

Definition at line 255 of file plugin.h.

◆ CFAPI_MAP_PROP_TMPNAME

#define CFAPI_MAP_PROP_TMPNAME   3

Definition at line 252 of file plugin.h.

◆ CFAPI_MAP_PROP_UNIQUE

#define CFAPI_MAP_PROP_UNIQUE   25

Definition at line 266 of file plugin.h.

◆ CFAPI_MAP_PROP_WIDTH

#define CFAPI_MAP_PROP_WIDTH   10

Definition at line 259 of file plugin.h.

◆ CFAPI_MOVETYPE

#define CFAPI_MOVETYPE   18 /* MoveType */

Definition at line 78 of file plugin.h.

◆ CFAPI_NONE

#define CFAPI_NONE   0

Definition at line 60 of file plugin.h.

◆ CFAPI_OBJECT_PROP_AC

#define CFAPI_OBJECT_PROP_AC   87

Definition at line 209 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ANIM_SPEED

#define CFAPI_OBJECT_PROP_ANIM_SPEED   66

Definition at line 188 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ANIMATION

#define CFAPI_OBJECT_PROP_ANIMATION   100

Definition at line 222 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ARCH_NAME

#define CFAPI_OBJECT_PROP_ARCH_NAME   97

Definition at line 219 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ARCHETYPE

#define CFAPI_OBJECT_PROP_ARCHETYPE   63

Definition at line 185 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ATTACK_MOVEMENT

#define CFAPI_OBJECT_PROP_ATTACK_MOVEMENT   60

Definition at line 182 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ATTACK_TYPE

#define CFAPI_OBJECT_PROP_ATTACK_TYPE   31

Definition at line 153 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ATTACKED_BY

#define CFAPI_OBJECT_PROP_ATTACKED_BY   55

Definition at line 177 of file plugin.h.

◆ CFAPI_OBJECT_PROP_BASE_NAME

#define CFAPI_OBJECT_PROP_BASE_NAME   69

Definition at line 191 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CARRYING

#define CFAPI_OBJECT_PROP_CARRYING   50

Definition at line 172 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CHA

#define CFAPI_OBJECT_PROP_CHA   85

Definition at line 207 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CHEATER

#define CFAPI_OBJECT_PROP_CHEATER   75

Definition at line 197 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CHOSEN_SKILL

#define CFAPI_OBJECT_PROP_CHOSEN_SKILL   57

Definition at line 179 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CLIENT_TYPE

#define CFAPI_OBJECT_PROP_CLIENT_TYPE   29

Definition at line 151 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CON

#define CFAPI_OBJECT_PROP_CON   81

Definition at line 203 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CONTAINER

#define CFAPI_OBJECT_PROP_CONTAINER   8

Definition at line 131 of file plugin.h.

◆ CFAPI_OBJECT_PROP_COUNT

#define CFAPI_OBJECT_PROP_COUNT   10

Definition at line 133 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CURRENT_WEAPON

#define CFAPI_OBJECT_PROP_CURRENT_WEAPON   53

Definition at line 175 of file plugin.h.

◆ CFAPI_OBJECT_PROP_CUSTOM_NAME

#define CFAPI_OBJECT_PROP_CUSTOM_NAME   65

Definition at line 187 of file plugin.h.

◆ CFAPI_OBJECT_PROP_DAM

#define CFAPI_OBJECT_PROP_DAM   95

Definition at line 217 of file plugin.h.

◆ CFAPI_OBJECT_PROP_DEX

#define CFAPI_OBJECT_PROP_DEX   80

Definition at line 202 of file plugin.h.

◆ CFAPI_OBJECT_PROP_DIRECTION

#define CFAPI_OBJECT_PROP_DIRECTION   25

Definition at line 147 of file plugin.h.

◆ CFAPI_OBJECT_PROP_DURATION

#define CFAPI_OBJECT_PROP_DURATION   109

Definition at line 231 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ENEMY

#define CFAPI_OBJECT_PROP_ENEMY   54

Definition at line 176 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ENVIRONMENT

#define CFAPI_OBJECT_PROP_ENVIRONMENT   6

Definition at line 129 of file plugin.h.

◆ CFAPI_OBJECT_PROP_EXP

#define CFAPI_OBJECT_PROP_EXP   72

Definition at line 194 of file plugin.h.

◆ CFAPI_OBJECT_PROP_EXP_MULTIPLIER

#define CFAPI_OBJECT_PROP_EXP_MULTIPLIER   62

Definition at line 184 of file plugin.h.

◆ CFAPI_OBJECT_PROP_FACE

#define CFAPI_OBJECT_PROP_FACE   99

Definition at line 221 of file plugin.h.

◆ CFAPI_OBJECT_PROP_FACING

#define CFAPI_OBJECT_PROP_FACING   26

Definition at line 148 of file plugin.h.

◆ CFAPI_OBJECT_PROP_FLAGS

#define CFAPI_OBJECT_PROP_FLAGS   78

Definition at line 200 of file plugin.h.

◆ CFAPI_OBJECT_PROP_FP

#define CFAPI_OBJECT_PROP_FP   91

Definition at line 213 of file plugin.h.

◆ CFAPI_OBJECT_PROP_FRIENDLY

#define CFAPI_OBJECT_PROP_FRIENDLY   67

Definition at line 189 of file plugin.h.

◆ CFAPI_OBJECT_PROP_GEN_SP_ARMOUR

#define CFAPI_OBJECT_PROP_GEN_SP_ARMOUR   47

Definition at line 169 of file plugin.h.

◆ CFAPI_OBJECT_PROP_GLOW_RADIUS

#define CFAPI_OBJECT_PROP_GLOW_RADIUS   51

Definition at line 173 of file plugin.h.

◆ CFAPI_OBJECT_PROP_GOD

#define CFAPI_OBJECT_PROP_GOD   96

Definition at line 218 of file plugin.h.

◆ CFAPI_OBJECT_PROP_GP

#define CFAPI_OBJECT_PROP_GP   90

Definition at line 212 of file plugin.h.

◆ CFAPI_OBJECT_PROP_HEAD

#define CFAPI_OBJECT_PROP_HEAD   7

Definition at line 130 of file plugin.h.

◆ CFAPI_OBJECT_PROP_HIDDEN

#define CFAPI_OBJECT_PROP_HIDDEN   58

Definition at line 180 of file plugin.h.

◆ CFAPI_OBJECT_PROP_HP

#define CFAPI_OBJECT_PROP_HP   88

Definition at line 210 of file plugin.h.

◆ CFAPI_OBJECT_PROP_INT

#define CFAPI_OBJECT_PROP_INT   83

Definition at line 205 of file plugin.h.

◆ CFAPI_OBJECT_PROP_INVENTORY

#define CFAPI_OBJECT_PROP_INVENTORY   5

Definition at line 128 of file plugin.h.

◆ CFAPI_OBJECT_PROP_INVISIBLE

#define CFAPI_OBJECT_PROP_INVISIBLE   98

Definition at line 220 of file plugin.h.

◆ CFAPI_OBJECT_PROP_INVISIBLE_TIME

#define CFAPI_OBJECT_PROP_INVISIBLE_TIME   44

Definition at line 166 of file plugin.h.

◆ CFAPI_OBJECT_PROP_ITEM_POWER

#define CFAPI_OBJECT_PROP_ITEM_POWER   46

Definition at line 168 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LAST_EAT

#define CFAPI_OBJECT_PROP_LAST_EAT   43

Definition at line 165 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LAST_GRACE

#define CFAPI_OBJECT_PROP_LAST_GRACE   42

Definition at line 164 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LAST_HEAL

#define CFAPI_OBJECT_PROP_LAST_HEAL   40

Definition at line 162 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LAST_SP

#define CFAPI_OBJECT_PROP_LAST_SP   41

Definition at line 163 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LEVEL

#define CFAPI_OBJECT_PROP_LEVEL   39

Definition at line 161 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LORE

#define CFAPI_OBJECT_PROP_LORE   19

Definition at line 141 of file plugin.h.

◆ CFAPI_OBJECT_PROP_LUCK

#define CFAPI_OBJECT_PROP_LUCK   71

Definition at line 193 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MAGIC

#define CFAPI_OBJECT_PROP_MAGIC   37

Definition at line 159 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MAGICAL

#define CFAPI_OBJECT_PROP_MAGICAL   70

Definition at line 192 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MAP

#define CFAPI_OBJECT_PROP_MAP   9

Definition at line 132 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MATERIAL

#define CFAPI_OBJECT_PROP_MATERIAL   35

Definition at line 157 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MATERIAL_NAME

#define CFAPI_OBJECT_PROP_MATERIAL_NAME   36

Definition at line 158 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MAXGP

#define CFAPI_OBJECT_PROP_MAXGP   94

Definition at line 216 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MAXHP

#define CFAPI_OBJECT_PROP_MAXHP   92

Definition at line 214 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MAXSP

#define CFAPI_OBJECT_PROP_MAXSP   93

Definition at line 215 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MERGEABLE

#define CFAPI_OBJECT_PROP_MERGEABLE   76

Definition at line 198 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MESSAGE

#define CFAPI_OBJECT_PROP_MESSAGE   18

Definition at line 140 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_ALLOW

#define CFAPI_OBJECT_PROP_MOVE_ALLOW   104

Definition at line 226 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_BLOCK

#define CFAPI_OBJECT_PROP_MOVE_BLOCK   103

Definition at line 225 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_OFF

#define CFAPI_OBJECT_PROP_MOVE_OFF   106

Definition at line 228 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_ON

#define CFAPI_OBJECT_PROP_MOVE_ON   105

Definition at line 227 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_SLOW

#define CFAPI_OBJECT_PROP_MOVE_SLOW   107

Definition at line 229 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY

#define CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY   108

Definition at line 230 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_STATUS

#define CFAPI_OBJECT_PROP_MOVE_STATUS   59

Definition at line 181 of file plugin.h.

◆ CFAPI_OBJECT_PROP_MOVE_TYPE

#define CFAPI_OBJECT_PROP_MOVE_TYPE   102

Definition at line 224 of file plugin.h.

◆ CFAPI_OBJECT_PROP_NAME

#define CFAPI_OBJECT_PROP_NAME   12

Definition at line 134 of file plugin.h.

◆ CFAPI_OBJECT_PROP_NAME_PLURAL

#define CFAPI_OBJECT_PROP_NAME_PLURAL   13

Definition at line 135 of file plugin.h.

◆ CFAPI_OBJECT_PROP_NEXT_ACTIVE_OB

#define CFAPI_OBJECT_PROP_NEXT_ACTIVE_OB   3

Definition at line 126 of file plugin.h.

◆ CFAPI_OBJECT_PROP_NROF

#define CFAPI_OBJECT_PROP_NROF   24

Definition at line 146 of file plugin.h.

◆ CFAPI_OBJECT_PROP_OB_ABOVE

#define CFAPI_OBJECT_PROP_OB_ABOVE   1

Definition at line 124 of file plugin.h.

◆ CFAPI_OBJECT_PROP_OB_BELOW

#define CFAPI_OBJECT_PROP_OB_BELOW   2

Definition at line 125 of file plugin.h.

◆ CFAPI_OBJECT_PROP_OTHER_ARCH

#define CFAPI_OBJECT_PROP_OTHER_ARCH   64

Definition at line 186 of file plugin.h.

◆ CFAPI_OBJECT_PROP_OWNER

#define CFAPI_OBJECT_PROP_OWNER   73

Definition at line 195 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PATH_ATTUNED

#define CFAPI_OBJECT_PROP_PATH_ATTUNED   32

Definition at line 154 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PATH_DENIED

#define CFAPI_OBJECT_PROP_PATH_DENIED   34

Definition at line 156 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PATH_REPELLED

#define CFAPI_OBJECT_PROP_PATH_REPELLED   33

Definition at line 155 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PICK_UP

#define CFAPI_OBJECT_PROP_PICK_UP   45

Definition at line 167 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PICKABLE

#define CFAPI_OBJECT_PROP_PICKABLE   77

Definition at line 199 of file plugin.h.

◆ CFAPI_OBJECT_PROP_POW

#define CFAPI_OBJECT_PROP_POW   84

Definition at line 206 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PRESENT

#define CFAPI_OBJECT_PROP_PRESENT   74

Definition at line 196 of file plugin.h.

◆ CFAPI_OBJECT_PROP_PREV_ACTIVE_OB

#define CFAPI_OBJECT_PROP_PREV_ACTIVE_OB   4

Definition at line 127 of file plugin.h.

◆ CFAPI_OBJECT_PROP_RACE

#define CFAPI_OBJECT_PROP_RACE   15

Definition at line 137 of file plugin.h.

◆ CFAPI_OBJECT_PROP_RAW_NAME

#define CFAPI_OBJECT_PROP_RAW_NAME   110

Definition at line 232 of file plugin.h.

◆ CFAPI_OBJECT_PROP_RESIST

#define CFAPI_OBJECT_PROP_RESIST   30

Definition at line 152 of file plugin.h.

◆ CFAPI_OBJECT_PROP_RUN_AWAY

#define CFAPI_OBJECT_PROP_RUN_AWAY   56

Definition at line 178 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SHORT_NAME

#define CFAPI_OBJECT_PROP_SHORT_NAME   68

Definition at line 190 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SKILL

#define CFAPI_OBJECT_PROP_SKILL   17

Definition at line 139 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SLAYING

#define CFAPI_OBJECT_PROP_SLAYING   16

Definition at line 138 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SP

#define CFAPI_OBJECT_PROP_SP   89

Definition at line 211 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SPEED

#define CFAPI_OBJECT_PROP_SPEED   22

Definition at line 144 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SPEED_LEFT

#define CFAPI_OBJECT_PROP_SPEED_LEFT   23

Definition at line 145 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SPELL_ITEM

#define CFAPI_OBJECT_PROP_SPELL_ITEM   61

Definition at line 183 of file plugin.h.

◆ CFAPI_OBJECT_PROP_STR

#define CFAPI_OBJECT_PROP_STR   79

Definition at line 201 of file plugin.h.

◆ CFAPI_OBJECT_PROP_SUBTYPE

#define CFAPI_OBJECT_PROP_SUBTYPE   28

Definition at line 150 of file plugin.h.

◆ CFAPI_OBJECT_PROP_TITLE

#define CFAPI_OBJECT_PROP_TITLE   14

Definition at line 136 of file plugin.h.

◆ CFAPI_OBJECT_PROP_TOTAL_EXP

#define CFAPI_OBJECT_PROP_TOTAL_EXP   52

Definition at line 174 of file plugin.h.

◆ CFAPI_OBJECT_PROP_TYPE

#define CFAPI_OBJECT_PROP_TYPE   27

Definition at line 149 of file plugin.h.

◆ CFAPI_OBJECT_PROP_VALUE

#define CFAPI_OBJECT_PROP_VALUE   38

Definition at line 160 of file plugin.h.

◆ CFAPI_OBJECT_PROP_WC

#define CFAPI_OBJECT_PROP_WC   86

Definition at line 208 of file plugin.h.

◆ CFAPI_OBJECT_PROP_WEIGHT

#define CFAPI_OBJECT_PROP_WEIGHT   48

Definition at line 170 of file plugin.h.

◆ CFAPI_OBJECT_PROP_WEIGHT_LIMIT

#define CFAPI_OBJECT_PROP_WEIGHT_LIMIT   49

Definition at line 171 of file plugin.h.

◆ CFAPI_OBJECT_PROP_WIS

#define CFAPI_OBJECT_PROP_WIS   82

Definition at line 204 of file plugin.h.

◆ CFAPI_OBJECT_PROP_X

#define CFAPI_OBJECT_PROP_X   20

Definition at line 142 of file plugin.h.

◆ CFAPI_OBJECT_PROP_Y

#define CFAPI_OBJECT_PROP_Y   21

Definition at line 143 of file plugin.h.

◆ CFAPI_PARCH

#define CFAPI_PARCH   9

Definition at line 69 of file plugin.h.

◆ CFAPI_PARTY_PROP_NAME

#define CFAPI_PARTY_PROP_NAME   0

Definition at line 274 of file plugin.h.

◆ CFAPI_PARTY_PROP_NEXT

#define CFAPI_PARTY_PROP_NEXT   1

Definition at line 275 of file plugin.h.

◆ CFAPI_PARTY_PROP_PASSWORD

#define CFAPI_PARTY_PROP_PASSWORD   2

Definition at line 276 of file plugin.h.

◆ CFAPI_PARTY_PROP_PLAYER

#define CFAPI_PARTY_PROP_PLAYER   3

Definition at line 277 of file plugin.h.

◆ CFAPI_PLAYER_PROP_BED_MAP

#define CFAPI_PLAYER_PROP_BED_MAP   153

Definition at line 237 of file plugin.h.

◆ CFAPI_PLAYER_PROP_BED_X

#define CFAPI_PLAYER_PROP_BED_X   154

Definition at line 238 of file plugin.h.

◆ CFAPI_PLAYER_PROP_BED_Y

#define CFAPI_PLAYER_PROP_BED_Y   155

Definition at line 239 of file plugin.h.

◆ CFAPI_PLAYER_PROP_IP

#define CFAPI_PLAYER_PROP_IP   150

Definition at line 234 of file plugin.h.

◆ CFAPI_PLAYER_PROP_MARKED_ITEM

#define CFAPI_PLAYER_PROP_MARKED_ITEM   151

Definition at line 235 of file plugin.h.

◆ CFAPI_PLAYER_PROP_NEXT

#define CFAPI_PLAYER_PROP_NEXT   156

Definition at line 240 of file plugin.h.

◆ CFAPI_PLAYER_PROP_PARTY

#define CFAPI_PLAYER_PROP_PARTY   152

Definition at line 236 of file plugin.h.

◆ CFAPI_PLAYER_PROP_TITLE

#define CFAPI_PLAYER_PROP_TITLE   157

Definition at line 241 of file plugin.h.

◆ CFAPI_PLAYER_PROP_TRANSPORT

#define CFAPI_PLAYER_PROP_TRANSPORT   158

Definition at line 242 of file plugin.h.

◆ CFAPI_PLAYER_QUEST_GET_STATE

#define CFAPI_PLAYER_QUEST_GET_STATE   1

Definition at line 245 of file plugin.h.

◆ CFAPI_PLAYER_QUEST_SET_STATE

#define CFAPI_PLAYER_QUEST_SET_STATE   2

Definition at line 246 of file plugin.h.

◆ CFAPI_PLAYER_QUEST_START

#define CFAPI_PLAYER_QUEST_START   0

Definition at line 244 of file plugin.h.

◆ CFAPI_PLAYER_QUEST_WAS_COMPLETED

#define CFAPI_PLAYER_QUEST_WAS_COMPLETED   3

Definition at line 247 of file plugin.h.

◆ CFAPI_PMAP

#define CFAPI_PMAP   6

Definition at line 66 of file plugin.h.

◆ CFAPI_POBJECT

#define CFAPI_POBJECT   5

Definition at line 65 of file plugin.h.

◆ CFAPI_PPARTY

#define CFAPI_PPARTY   12

Definition at line 72 of file plugin.h.

◆ CFAPI_PPLAYER

#define CFAPI_PPLAYER   11

Definition at line 71 of file plugin.h.

◆ CFAPI_PREGION

#define CFAPI_PREGION   13

Definition at line 73 of file plugin.h.

◆ CFAPI_REGION_PROP_JAIL_PATH

#define CFAPI_REGION_PROP_JAIL_PATH   7

Definition at line 286 of file plugin.h.

◆ CFAPI_REGION_PROP_JAIL_X

#define CFAPI_REGION_PROP_JAIL_X   5

Definition at line 284 of file plugin.h.

◆ CFAPI_REGION_PROP_JAIL_Y

#define CFAPI_REGION_PROP_JAIL_Y   6

Definition at line 285 of file plugin.h.

◆ CFAPI_REGION_PROP_LONGNAME

#define CFAPI_REGION_PROP_LONGNAME   3

Definition at line 282 of file plugin.h.

◆ CFAPI_REGION_PROP_MESSAGE

#define CFAPI_REGION_PROP_MESSAGE   4

Definition at line 283 of file plugin.h.

◆ CFAPI_REGION_PROP_NAME

#define CFAPI_REGION_PROP_NAME   0

Definition at line 279 of file plugin.h.

◆ CFAPI_REGION_PROP_NEXT

#define CFAPI_REGION_PROP_NEXT   1

Definition at line 280 of file plugin.h.

◆ CFAPI_REGION_PROP_PARENT

#define CFAPI_REGION_PROP_PARENT   2

Definition at line 281 of file plugin.h.

◆ CFAPI_SINT64

#define CFAPI_SINT64   16

Definition at line 76 of file plugin.h.

◆ CFAPI_SSTRING

#define CFAPI_SSTRING   17 /* Shared string that shouldn't be changed, or const char* */

Definition at line 77 of file plugin.h.

◆ CFAPI_STRING

#define CFAPI_STRING   4 /* String with a length that must be given too. */

Definition at line 64 of file plugin.h.

◆ CFAPI_TIME

#define CFAPI_TIME   15

Definition at line 75 of file plugin.h.

◆ LIBPTRTYPE

#define LIBPTRTYPE   void *

Definition at line 90 of file plugin.h.

◆ MODULEAPI

#define MODULEAPI

Definition at line 37 of file plugin.h.

◆ plugins_dlclose

#define plugins_dlclose (   lib)    dlclose(lib)

Unload a shared library.

Definition at line 117 of file plugin.h.

◆ plugins_dlerror

#define plugins_dlerror ( )    dlerror()

Library error.

Definition at line 119 of file plugin.h.

◆ plugins_dlopen

#define plugins_dlopen (   fname)    dlopen(fname, RTLD_NOW|RTLD_GLOBAL)

Load a shared library.

Definition at line 116 of file plugin.h.

◆ plugins_dlsym

#define plugins_dlsym (   lib,
  name 
)    dlsym(lib, name)

Get a function from a shared library.

Definition at line 118 of file plugin.h.

Typedef Documentation

◆ crossfire_plugin

One loaded plugin.

◆ f_plug_api

typedef void(* f_plug_api) (int *type,...)

General API function.

Definition at line 81 of file plugin.h.

◆ f_plug_init

typedef int(* f_plug_init) (const char *iversion, f_plug_api gethooksptr)

First function called in a plugin.

Definition at line 85 of file plugin.h.

◆ f_plug_postinit

typedef int(* f_plug_postinit) (void)

Function called after the plugin was initialized.

Definition at line 83 of file plugin.h.

◆ f_plug_property

typedef void*(* f_plug_property) (int *type,...)

Get various plugin properties.

Definition at line 87 of file plugin.h.

◆ hook_entry

typedef struct _hook_entry hook_entry

One function the server exposes to plugins.