78 LOG(
llevDebug,
"WARNING: destination '%s' in player_changer must be an absolute path!\n",
EXIT_PATH(op));
static event_registration c
void enter_exit(object *op, object *exit_ob)
Tries to move 'op' to exit_ob.
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
void fix_object(object *op)
Updates all abilities given by applied objects in the inventory of the given object.
int save_player(object *op, int flag)
Saves a player to disk.
void esrv_update_item(int flags, object *pl, object *op)
Updates object *op for player *pl.
#define AC_PLAYER_STAT_LIMIT
Limit stats to racial maximum.
object * above
Pointer to the object stacked above this one.
void esrv_send_inventory(object *pl, object *op)
Sends inventory of a container.
Global type definitions and header inclusions.
struct player * contr
Pointer to the player which control this object.
void init_type_player_changer(void)
Initializer for the player changer object type.
void register_process(int ob_type, process_func method)
Registers the process method for the given type.
char method_ret
Define some standard return values for callbacks which don't need to return any other results...
#define SCRIPT_FIX_NOTHING
void apply_changes_to_player(object *pl, object *change, int limit_stats)
Applies (race) changes to a player.
#define FOR_INV_FINISH()
Finishes FOR_INV_PREPARE().
static method_ret player_changer_type_process(object *op)
Move for PLAYER_CHANGER.
#define EVENT_TRIGGER
Button pushed, lever pulled, etc.
int16_t bed_y
x,y - coordinates of respawn (savebed).
char savebed_map[MAX_BUF]
Map where player will respawn after death.
Only for debugging purposes.
uint8_t type
PLAYER, BULLET, etc.
int events_execute_object_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix)
Execute an event on the specified object.
Object type functions and variables.
#define FOR_INV_PREPARE(op_, it_)
Constructs a loop iterating over the inventory of an object.