… | |
… | |
84 | #define EVENT_SHOUT 24 /* A player 'shout' something. */ |
84 | #define EVENT_SHOUT 24 /* A player 'shout' something. */ |
85 | #define EVENT_TELL 25 /* A player 'tell' something. */ |
85 | #define EVENT_TELL 25 /* A player 'tell' something. */ |
86 | #define EVENT_MUZZLE 26 /* A player was Muzzled (no_shout set). */ |
86 | #define EVENT_MUZZLE 26 /* A player was Muzzled (no_shout set). */ |
87 | #define EVENT_KICK 27 /* A player was Kicked by a DM */ |
87 | #define EVENT_KICK 27 /* A player was Kicked by a DM */ |
88 | #define EVENT_FREE_OB 29 /* Object destroyed */ |
88 | #define EVENT_FREE_OB 29 /* Object destroyed */ |
|
|
89 | #define EVENT_MAPLOAD 30 /* Original map has been loaded */ |
|
|
90 | #define EVENT_MAPOUT 31 /* Map has been swapped out */ |
|
|
91 | #define EVENT_MAPIN 32 /* Temporary map has been swapped in */ |
|
|
92 | #define EVENT_MAPCLEAN 33 /* Temporary map will be deleted */ |
|
|
93 | #define EVENT_PLAYER_LOAD 34 /* Player was just loaded from disk */ |
|
|
94 | #define EVENT_PLAYER_SAVE 35 /* Player was just saved to disk */ |
|
|
95 | #define EVENT_PLAYER_USE_SKILL 36 /* player was just trying to use a skill */ |
|
|
96 | #define EVENT_MONSTER_USE_SKILL 37 /* monster was just trying to use a skill*/ |
|
|
97 | #define EVENT_FIND_UNARMED_SKILL 38 /* lets a plugin find the unarmed skill */ |
|
|
98 | #define EVENT_EXTCMD 39 /* Low-Level socket command */ |
|
|
99 | #define EVENT_CAST_SPELL 40 /* Something successfully casted a spell */ |
89 | /* should add FREE_MAP, FREE_PLAYER */ |
100 | /* should add FREE_MAP, FREE_PLAYER */ |
90 | |
101 | |
91 | #define NR_EVENTS 30 |
102 | #define NR_EVENTS 41 |
92 | |
103 | |
93 | #include <stdarg.h> |
104 | #include <stdarg.h> |
94 | |
105 | |
95 | #define CFAPI_NONE 0 |
106 | #define CFAPI_NONE 0 |
96 | #define CFAPI_INT 1 |
107 | #define CFAPI_INT 1 |
… | |
… | |
104 | #define CFAPI_PARCH 9 |
115 | #define CFAPI_PARCH 9 |
105 | #define CFAPI_FUNC 10 |
116 | #define CFAPI_FUNC 10 |
106 | #define CFAPI_PPLAYER 11 |
117 | #define CFAPI_PPLAYER 11 |
107 | #define CFAPI_PPARTY 12 |
118 | #define CFAPI_PPARTY 12 |
108 | #define CFAPI_PREGION 13 |
119 | #define CFAPI_PREGION 13 |
|
|
120 | #define CFAPI_INT16 14 |
109 | |
121 | |
110 | typedef void* (*f_plug_api) (int* type, ...); |
122 | typedef void* (*f_plug_api) (int* type, ...); |
111 | typedef int (*f_plug_postinit) (void); |
123 | typedef int (*f_plug_postinit) (void); |
112 | typedef int (*f_plug_init)(const char* iversion, f_plug_api gethooksptr); |
124 | typedef int (*f_plug_init)(const char* iversion, f_plug_api gethooksptr); |
113 | |
125 | |