… | |
… | |
54 | /*****************************************************************************/ |
54 | /*****************************************************************************/ |
55 | // how about making this an enum |
55 | // how about making this an enum |
56 | #define EVENT_NONE 0 /* No event. This exists only to reserve the "0". */ |
56 | #define EVENT_NONE 0 /* No event. This exists only to reserve the "0". */ |
57 | #define EVENT_APPLY 1 /* Object applied-unapplied. */ |
57 | #define EVENT_APPLY 1 /* Object applied-unapplied. */ |
58 | #define EVENT_ATTACK 2 /* Monster attacked or Scripted Weapon used. */ |
58 | #define EVENT_ATTACK 2 /* Monster attacked or Scripted Weapon used. */ |
59 | #define EVENT_DEATH 3 |
59 | /*NOT GENERATED*/#define EVENT_DEATH 3 |
60 | #define EVENT_DROP 4 /* Object dropped on the floor. */ |
60 | #define EVENT_DROP 4 /* Object dropped on the floor. */ |
61 | #define EVENT_PICKUP 5 /* Object picked up. */ |
61 | #define EVENT_PICKUP 5 /* Object picked up. */ |
62 | #define EVENT_SAY 6 /* Someone speaks. */ |
62 | #define EVENT_SAY 6 /* Someone speaks. */ |
63 | #define EVENT_STOP 7 /* Thrown object stopped. */ |
63 | #define EVENT_STOP 7 /* Thrown object stopped. */ |
64 | #define EVENT_TIME 8 /* Triggered each time the object can react/move. */ |
64 | #define EVENT_TIME 8 /* Triggered each time the object can react/move. */ |
… | |
… | |
70 | /*****************************************************************************/ |
70 | /*****************************************************************************/ |
71 | /* Global events. Those are never linked to a specific object. */ |
71 | /* Global events. Those are never linked to a specific object. */ |
72 | /*****************************************************************************/ |
72 | /*****************************************************************************/ |
73 | #define EVENT_CLOCK 14 /* Global time event. */ |
73 | #define EVENT_CLOCK 14 /* Global time event. */ |
74 | #define EVENT_CRASH 15 /* Triggered when the server crashes. Not recursive*/ |
74 | #define EVENT_CRASH 15 /* Triggered when the server crashes. Not recursive*/ |
75 | #define EVENT_GKILL 17 /* Triggered when anything got killed by anyone. */ |
|
|
76 | #define EVENT_SHOUT 24 /* A player 'shout' something. */ |
75 | #define EVENT_SHOUT 24 /* A player 'shout' something. */ |
77 | #define EVENT_TELL 25 /* A player 'tell' something. */ |
76 | #define EVENT_TELL 25 /* A player 'tell' something. */ |
78 | #define EVENT_MUZZLE 26 /* A player was Muzzled (no_shout set). */ |
77 | #define EVENT_MUZZLE 26 /* A player was Muzzled (no_shout set). */ |
79 | #define EVENT_KICK 27 /* A player was Kicked by a DM */ |
78 | #define EVENT_KICK 27 /* A player was Kicked by a DM */ |
80 | #define EVENT_PLAYER_USE_SKILL 36 /* player was just trying to use a skill */ |
79 | //#define EVENT_PLAYER_USE_SKILL 36 /* player was just trying to use a skill */ |
81 | #define EVENT_MONSTER_USE_SKILL 37 /* monster was just trying to use a skill*/ |
80 | //#define EVENT_MONSTER_USE_SKILL 37 /* monster was just trying to use a skill*/ |
82 | #define EVENT_FIND_UNARMED_SKILL 38 /* lets a plugin find the unarmed skill */ |
81 | #define EVENT_FIND_UNARMED_SKILL 38 /* lets a plugin find the unarmed skill */ |
83 | #define EVENT_EXTCMD 39 /* Low-Level socket command */ |
|
|
84 | #define EVENT_CAST_SPELL 40 /* Something successfully casted a spell */ |
|
|
85 | #define EVENT_DROP_ON 41 /* Something was dropped on this (floor) */ |
82 | #define EVENT_DROP_ON 41 /* Something was dropped on this (floor) */ |
86 | /* should add FREE_MAP, FREE_PLAYER */ |
83 | /* should add FREE_MAP, FREE_PLAYER */ |
87 | |
84 | |
88 | #define NR_EVENTS 42 |
85 | #define NR_EVENTS 42 |
89 | |
86 | |