Crossfire Server, Trunk  R22047
Event codes.

Macros

#define EVENT_APPLY   1
 
#define EVENT_ATTACKED   2
 
#define EVENT_ATTACKS   33
 
#define EVENT_BORN   14
 
#define EVENT_BOUGHT   34
 
#define EVENT_CLOCK   15
 
#define EVENT_CLOSE   11
 
#define EVENT_CRASH   16
 
#define EVENT_DEATH   3
 
#define EVENT_DESTROY   13
 
#define EVENT_DROP   4
 
#define EVENT_GKILL   18
 
#define EVENT_KICK   28
 
#define EVENT_LOGIN   19
 
#define EVENT_LOGOUT   20
 
#define EVENT_MAPENTER   21
 
#define EVENT_MAPLEAVE   22
 
#define EVENT_MAPLOAD   30
 
#define EVENT_MAPRESET   23
 
#define EVENT_MAPUNLOAD   29
 
#define EVENT_MUZZLE   27
 
#define EVENT_NONE   0
 
#define EVENT_PICKUP   5
 
#define EVENT_PLAYER_DEATH   17
 
#define EVENT_REMOVE   24
 
#define EVENT_SAY   6
 
#define EVENT_SELLING   32
 
#define EVENT_SHOUT   25
 
#define EVENT_STOP   7
 
#define EVENT_TELL   26
 
#define EVENT_THROW   9
 
#define EVENT_TIME   8
 
#define EVENT_TIMER   12
 
#define EVENT_TRIGGER   10
 
#define EVENT_USER   31
 

Detailed Description

Macro Definition Documentation

◆ EVENT_APPLY

#define EVENT_APPLY   1

Object applied-unapplied.

Definition at line 19 of file events.h.

Referenced by eventListener(), initConstants(), ob_apply(), and pray_at_altar().

◆ EVENT_ATTACKED

#define EVENT_ATTACKED   2

Object attacked, with weapon or spell.

Definition at line 20 of file events.h.

Referenced by hit_player(), and initConstants().

◆ EVENT_ATTACKS

#define EVENT_ATTACKS   33

Weapon or arrow hitting something.

Definition at line 21 of file events.h.

Referenced by attack_ob_simple(), hit_with_arrow(), and initConstants().

◆ EVENT_BORN

◆ EVENT_BOUGHT

#define EVENT_BOUGHT   34

Object is being bought by player.

Definition at line 22 of file events.h.

Referenced by initConstants(), and shop_pay_unpaid().

◆ EVENT_CLOCK

◆ EVENT_CLOSE

#define EVENT_CLOSE   11

Container closed.

Definition at line 23 of file events.h.

Referenced by apply_container(), and initConstants().

◆ EVENT_CRASH

#define EVENT_CRASH   16

Triggered when the server crashes. Not recursive

Definition at line 40 of file events.h.

Referenced by cfpython_globalEventListener(), events_execute_global_event(), globalEventListener(), and initConstants().

◆ EVENT_DEATH

#define EVENT_DEATH   3

Player or monster dead.

Definition at line 24 of file events.h.

Referenced by initConstants(), kill_object(), and kill_player().

◆ EVENT_DESTROY

#define EVENT_DESTROY   13

Object destroyed (includes map reset/swapout)

Definition at line 25 of file events.h.

Referenced by initConstants(), and object_free().

◆ EVENT_DROP

#define EVENT_DROP   4

Object dropped on the floor.

Definition at line 26 of file events.h.

Referenced by drop_object(), and initConstants().

◆ EVENT_GKILL

#define EVENT_GKILL   18

◆ EVENT_KICK

#define EVENT_KICK   28

◆ EVENT_LOGIN

◆ EVENT_LOGOUT

◆ EVENT_MAPENTER

#define EVENT_MAPENTER   21

◆ EVENT_MAPLEAVE

◆ EVENT_MAPLOAD

◆ EVENT_MAPRESET

◆ EVENT_MAPUNLOAD

#define EVENT_MAPUNLOAD   29

A map is freed (includes swapping out)

Definition at line 49 of file events.h.

Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), events_execute_global_event(), free_map(), initConstants(), and postInitPlugin().

◆ EVENT_MUZZLE

#define EVENT_MUZZLE   27

◆ EVENT_NONE

#define EVENT_NONE   0

No event. This exists only to reserve the "0".

Definition at line 18 of file events.h.

◆ EVENT_PICKUP

#define EVENT_PICKUP   5

Object picked up.

Definition at line 27 of file events.h.

Referenced by initConstants(), and pick_up_object().

◆ EVENT_PLAYER_DEATH

#define EVENT_PLAYER_DEATH   17

◆ EVENT_REMOVE

#define EVENT_REMOVE   24

◆ EVENT_SAY

#define EVENT_SAY   6

Someone speaks.

Definition at line 28 of file events.h.

Referenced by CREMapInformationManager::checkEvent(), events_execute_object_say(), and initConstants().

◆ EVENT_SELLING

#define EVENT_SELLING   32

Object is being sold by another one.

Definition at line 29 of file events.h.

Referenced by initConstants(), and sell_item().

◆ EVENT_SHOUT

#define EVENT_SHOUT   25

A player 'shout' something.

Definition at line 53 of file events.h.

Referenced by cfpython_globalEventListener(), command_tell_all(), events_execute_global_event(), globalEventListener(), and initConstants().

◆ EVENT_STOP

#define EVENT_STOP   7

Thrown object stopped.

Definition at line 30 of file events.h.

Referenced by initConstants(), and stop_projectile().

◆ EVENT_TELL

#define EVENT_TELL   26

A player 'tell' something.

Definition at line 54 of file events.h.

Referenced by cfpython_globalEventListener(), do_tell(), events_execute_global_event(), globalEventListener(), initConstants(), and unregisterGEvent().

◆ EVENT_THROW

#define EVENT_THROW   9

Object is thrown.

Definition at line 32 of file events.h.

Referenced by do_throw(), and initConstants().

◆ EVENT_TIME

#define EVENT_TIME   8

Triggered each time the object can react/move.

Definition at line 31 of file events.h.

Referenced by initConstants(), and process_object().

◆ EVENT_TIMER

#define EVENT_TIMER   12

Timer connected triggered it.

Definition at line 34 of file events.h.

Referenced by cftimer_create(), cftimer_process_event(), and initConstants().

◆ EVENT_TRIGGER

#define EVENT_TRIGGER   10

◆ EVENT_USER

#define EVENT_USER   31

User-defined event.

Definition at line 35 of file events.h.

Referenced by events_execute_object_user(), and initConstants().