Crossfire Server, Trunk
|
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "plugin.h"
#include "shop.h"
#include "sproto.h"
#include "svnversion.h"
#include "timers.h"
Go to the source code of this file.
Macros | |
#define | NR_OF_HOOKS (sizeof(plug_hooks)/sizeof(*plug_hooks)) |
#define | string_get_int(name) |
Functions | |
static void | cfapi_archetype_get_property (int *type,...) |
static void | cfapi_cost_string_from_value (int *type,...) |
static void | cfapi_friendlylist_get_next (int *type,...) |
static void | cfapi_generate_random_map (int *type,...) |
static void | cfapi_get_hooks (int *type,...) |
static void | cfapi_get_month_name (int *type,...) |
static void | cfapi_get_periodofday_name (int *type,...) |
static void | cfapi_get_season_name (int *type,...) |
static void | cfapi_get_time (int *type,...) |
static void | cfapi_get_weekday_name (int *type,...) |
static void | cfapi_log (int *type,...) |
static void | cfapi_map_change_light (int *type,...) |
static void | cfapi_map_create_path (int *type,...) |
static void | cfapi_map_delete_map (int *type,...) |
static void | cfapi_map_find_by_archetype_name (int *type,...) |
static void | cfapi_map_get_map (int *type,...) |
static void | cfapi_map_get_map_property (int *type,...) |
static void | cfapi_map_get_object_at (int *type,...) |
static void | cfapi_map_has_been_loaded (int *type,...) |
static void | cfapi_map_message (int *type,...) |
static void | cfapi_map_out_of_map (int *type,...) |
static void | cfapi_map_set_map_property (int *type,...) |
static void | cfapi_map_trigger_connected (int *type,...) |
static void | cfapi_map_update_position (int *type,...) |
static void | cfapi_object_apply (int *type,...) |
static void | cfapi_object_apply_below (int *type,...) |
static void | cfapi_object_cast (int *type,...) |
static void | cfapi_object_change_abil (int *type,...) |
static void | cfapi_object_change_exp (int *type,...) |
static void | cfapi_object_check_spell (int *type,...) |
static void | cfapi_object_check_trigger (int *type,...) |
static void | cfapi_object_clean_object (int *type,...) |
static void | cfapi_object_clear (int *type,...) |
static void | cfapi_object_clone (int *type,...) |
static void | cfapi_object_create (int *type,...) |
static void | cfapi_object_delete (int *type,...) |
static void | cfapi_object_describe (int *type,...) |
static void | cfapi_object_distance (int *type,...) |
static void | cfapi_object_drain (int *type,...) |
static void | cfapi_object_drop (int *type,...) |
static void | cfapi_object_find_archetype_inside (int *type,...) |
static void | cfapi_object_find_by_arch_name (int *type,...) |
static void | cfapi_object_find_by_name (int *type,...) |
static void | cfapi_object_fix (int *type,...) |
static void | cfapi_object_forget_spell (int *type,...) |
static void | cfapi_object_get_key (int *type,...) |
static void | cfapi_object_get_property (int *type,...) |
static void | cfapi_object_give_skill (int *type,...) |
static void | cfapi_object_identify (int *type,...) |
static void | cfapi_object_insert (int *type,...) |
static void | cfapi_object_learn_spell (int *type,...) |
static void | cfapi_object_merge (int *type,...) |
static void | cfapi_object_move (int *type,...) |
static void | cfapi_object_on_same_map (int *type,...) |
static void | cfapi_object_pay_amount (int *type,...) |
static void | cfapi_object_pay_item (int *type,...) |
static void | cfapi_object_perm_exp (int *type,...) |
static void | cfapi_object_pickup (int *type,...) |
static void | cfapi_object_query_money (int *type,...) |
static void | cfapi_object_remove (int *type,...) |
static void | cfapi_object_remove_depletion (int *type,...) |
static void | cfapi_object_reset (int *type,...) |
static void | cfapi_object_say (int *type,...) |
static void | cfapi_object_set_key (int *type,...) |
static void | cfapi_object_set_property (int *type,...) |
static void | cfapi_object_split (int *type,...) |
static void | cfapi_object_spring_trap (int *type,...) |
static void | cfapi_object_teleport (int *type,...) |
static void | cfapi_object_transfer (int *type,...) |
static void | cfapi_object_transmute (int *type,...) |
static void | cfapi_object_update (int *type,...) |
static void | cfapi_object_user_event (int *type,...) |
static void | cfapi_party_get_property (int *type,...) |
static void | cfapi_player_can_pay (int *type,...) |
static void | cfapi_player_find (int *type,...) |
static void | cfapi_player_knowledge (int *type,...) |
static void | cfapi_player_message (int *type,...) |
static void | cfapi_player_quest (int *type,...) |
static void | cfapi_region_get_property (int *type,...) |
static void | cfapi_register_command (int *type,...) |
static void | cfapi_set_random_map_variable (int *type,...) |
static void | cfapi_system_add_string (int *type,...) |
static void | cfapi_system_check_path (int *type,...) |
static void | cfapi_system_directory (int *type,...) |
static void | cfapi_system_find_animation (int *type,...) |
static void | cfapi_system_find_face (int *type,...) |
static void | cfapi_system_find_string (int *type,...) |
static void | cfapi_system_re_cmp (int *type,...) |
static void | cfapi_system_register_global_event (int *type,...) |
static void | cfapi_system_remove_string (int *type,...) |
static void | cfapi_system_strdup_local (int *type,...) |
static void | cfapi_system_unregister_global_event (int *type,...) |
static void | cfapi_timer_create (int *type,...) |
static void | cfapi_timer_destroy (int *type,...) |
static void | cfapi_unregister_command (int *type,...) |
void | cleanupPlugins (void) |
static void | copy_message (object *op, const char *msg) |
void | initPlugins (void) |
void | plugins_display_list (object *op) |
static crossfire_plugin * | plugins_find_plugin (const char *id) |
int | plugins_init_plugin (const char *libfile) |
int | plugins_remove_plugin (const char *id) |
static void | send_changed_object (object *op) |
Variables | |
static const hook_entry | plug_hooks [] |
crossfire_plugin * | plugins_list = NULL |
Plugin API.
Definition in file plugins.c.
#define NR_OF_HOOKS (sizeof(plug_hooks)/sizeof(*plug_hooks)) |
#define string_get_int | ( | name | ) |
|
static |
Definition at line 4128 of file plugins.c.
References archininventory::arch, make_face_from_files::args, CFAPI_ARCH_PROP_CLONE, CFAPI_ARCH_PROP_HEAD, CFAPI_ARCH_PROP_MORE, CFAPI_ARCH_PROP_NAME, CFAPI_ARCH_PROP_NEXT, CFAPI_NONE, CFAPI_PARCH, CFAPI_POBJECT, CFAPI_SSTRING, get_next_archetype(), sstring, and is_valid_types_gen::type.
|
static |
Wrapper for cost_string_from_value, modified to take a buffer and length instead of a StringBuffer.
type | will be CFAPI_NONE. |
Definition at line 529 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, diamondslots::cost, cost_string_from_value(), and is_valid_types_gen::type.
|
static |
Friend list access, to get objects on it.
Expects one parameter, ob.
type | unused |
Definition at line 4311 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, get_next_friend(), guildjoin::ob, and is_valid_types_gen::type.
|
static |
Wrapper for generate_random_map().
type | unused. |
Definition at line 4357 of file plugins.c.
References make_face_from_files::args, generate_random_map(), give::name, sstring, and is_valid_types_gen::type.
|
static |
Definition at line 320 of file plugins.c.
References make_face_from_files::args, buf, CFAPI_FUNC, CFAPI_NONE, _hook_entry::func, NR_OF_HOOKS, plug_hooks, and is_valid_types_gen::type.
Referenced by plugins_init_plugin().
|
static |
Wrapper for get_season_name().
type | will be CFAPI_STRING. Other parameters are int index and char** where to store result string |
Definition at line 870 of file plugins.c.
References get_month_name(), and string_get_int.
|
static |
Wrapper for get_season_name().
type | will be CFAPI_STRING. Other parameters are int index and char** where to store result string |
Definition at line 882 of file plugins.c.
References get_periodofday(), and string_get_int.
|
static |
Wrapper for get_season_name().
type | will be CFAPI_STRING. Other parameters are int index and char** where to store result string |
Definition at line 846 of file plugins.c.
References get_season_name(), and string_get_int.
|
static |
Wrapper for get_tod().
type | will be CFAPI_NONE. |
Definition at line 815 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, get_tod(), and is_valid_types_gen::type.
|
static |
Wrapper for get_season_name().
type | will be CFAPI_STRING. Other parameters are int index and char** where to store result string |
Definition at line 858 of file plugins.c.
References get_weekday(), and string_get_int.
|
static |
Wrapper for LOG().
type | will be CFAPI_NONE. |
Definition at line 949 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, LOG(), diamondslots::message, and is_valid_types_gen::type.
|
static |
Wrapper for change_map_light().
type | will be CFAPI_INT. |
Definition at line 1367 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, change_map_light(), disinfect::map, and is_valid_types_gen::type.
|
static |
Wrapper for create_pathname() and create_overlay_pathname().
type | will be CFAPI_STRING. |
Definition at line 1042 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, CFAPI_STRING, create_overlay_pathname(), create_pathname(), MAX_BUF, give::name, make_face_from_files::str, and is_valid_types_gen::type.
|
static |
Definition at line 1276 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, delete_map(), disinfect::map, and is_valid_types_gen::type.
|
static |
Kinda wrapper for map_find_by_archetype() (but uses a string, not an archetype*).
type | will be CFAPI_POBJECT. |
Definition at line 1340 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, disinfect::map, map_find_by_archetype(), navar-midane_pickup::msg, try_find_archetype(), is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Gets map information.
First parameter is a integer, which should be:
Definition at line 973 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, CFAPI_PMAP, get_empty_map(), get_map_from_coord(), m, give::name, ready_map_name(), is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Definition at line 1076 of file plugins.c.
References make_face_from_files::args, calculate_difficulty(), CFAPI_INT, CFAPI_MAP_PROP_DARKNESS, CFAPI_MAP_PROP_DIFFICULTY, CFAPI_MAP_PROP_ENTER_X, CFAPI_MAP_PROP_ENTER_Y, CFAPI_MAP_PROP_FLAGS, CFAPI_MAP_PROP_HEIGHT, CFAPI_MAP_PROP_MESSAGE, CFAPI_MAP_PROP_NAME, CFAPI_MAP_PROP_NEXT, CFAPI_MAP_PROP_PATH, CFAPI_MAP_PROP_PLAYERS, CFAPI_MAP_PROP_REGION, CFAPI_MAP_PROP_RESET_TIME, CFAPI_MAP_PROP_RESET_TIMEOUT, CFAPI_MAP_PROP_TMPNAME, CFAPI_MAP_PROP_UNIQUE, CFAPI_MAP_PROP_WIDTH, CFAPI_NONE, CFAPI_PMAP, CFAPI_PREGION, CFAPI_SSTRING, first_map, get_map_flags(), get_region_by_map(), disinfect::map, sstring, is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Wrapper for GET_MAP_OB().
type | will be CFAPI_POBJECT. |
Definition at line 1311 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, get_map_flags(), GET_MAP_OB, disinfect::map, P_OUT_OF_MAP, is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Wrapper for has_been_loaded().
type | will be CFAPI_PMAP. |
Definition at line 1024 of file plugins.c.
References make_face_from_files::args, CFAPI_PMAP, has_been_loaded(), disinfect::map, and is_valid_types_gen::type.
|
static |
Definition at line 1289 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, smoking_pipe::color, ext_info_map(), disinfect::map, MSG_SUBTYPE_NONE, MSG_TYPE_MISC, and is_valid_types_gen::type.
|
static |
Wrapper for out_of_map().
type | will be CFAPI_INT. |
Definition at line 1238 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, disinfect::map, out_of_map(), is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Definition at line 1208 of file plugins.c.
References make_face_from_files::args, buf, CFAPI_MAP_PROP_PATH, CFAPI_NONE, CFAPI_STRING, disinfect::map, strlcpy(), and is_valid_types_gen::type.
|
static |
Wrapper for trigger_connected().
Expected parameters after type:
[out] | type | Will be CFAPI_NONE. |
Definition at line 3572 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, quest::state, trigger_connected(), and is_valid_types_gen::type.
|
static |
Wrapper for update_position().
type | CFAPI_NONE. |
Definition at line 1260 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, disinfect::map, is_valid_types_gen::type, update_position(), diamondslots::x, and diamondslots::y.
|
static |
Applies an object.
type | will be CFAPI_INT. |
Definition at line 2989 of file plugins.c.
References apply_manual(), make_face_from_files::args, CFAPI_INT, and is_valid_types_gen::type.
|
static |
Applies an object below.
type | will be CFAPI_NONE. |
Definition at line 2969 of file plugins.c.
References apply_by_living_below(), make_face_from_files::args, CFAPI_NONE, and is_valid_types_gen::type.
|
static |
Wrapper for query_money().
type | Will be CFAPI_INT. |
Definition at line 3611 of file plugins.c.
References make_face_from_files::args, cast_spell(), CFAPI_INT, give::op, make_face_from_files::str, and is_valid_types_gen::type.
|
static |
Wrapper for change_abil().
Definition at line 3899 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, change_abil(), give::op, Ice::tmp, and is_valid_types_gen::type.
|
static |
Wrapper for change_exp().
type | will be CFAPI_NONE. |
Definition at line 4003 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, change_exp(), guildjoin::ob, and is_valid_types_gen::type.
|
static |
Wrapper for check_spell_known().
type | Will be CFAPI_POBJECT. |
Definition at line 3674 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, check_spell_known(), give::op, and is_valid_types_gen::type.
|
static |
Wrapper for check_trigger().
type | Will be CFAPI_INT. |
Definition at line 3545 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, check_trigger(), give::op, and is_valid_types_gen::type.
|
static |
Definition at line 3499 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, clean_object(), give::op, and is_valid_types_gen::type.
|
static |
Wrapper for object_clear().
type | Will be CFAPI_NONE. |
Definition at line 3467 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, object_clear(), give::op, and is_valid_types_gen::type.
|
static |
Clone an object, either through object_create_clone() or object_copy().
type | will be CFAPI_POBJECT. |
Definition at line 3191 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, object_copy(), object_create_clone(), object_new(), give::op, Ice::tmp, and is_valid_types_gen::type.
|
static |
Wrapper for object_new(), create_archetype() and create_archetype_by_object_name().
type | will be CFAPI_POBJECT, or CFAPI_NONE if invalid value asked for. |
Definition at line 3223 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, CFAPI_POBJECT, find_archetype_by_object_name(), object_create_arch(), object_new(), try_find_archetype(), and is_valid_types_gen::type.
|
static |
Definition at line 3164 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, FLAG_FREED, FLAG_REMOVED, llevError, LOG(), object_free_drop_inventory(), give::op, QUERY_FLAG, and is_valid_types_gen::type.
|
static |
Wrapper for describe_item().
type | will be CFAPI_STRING. |
Definition at line 3034 of file plugins.c.
References make_face_from_files::args, CFAPI_STRING, describe_item(), give::op, stringbuffer_finish(), and is_valid_types_gen::type.
|
static |
Wrapper for object_distance().
type | will be CFAPI_INT. |
Definition at line 3426 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, object_distance(), give::op, and is_valid_types_gen::type.
|
static |
Definition at line 3056 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, drain_specific_stat(), give::op, and is_valid_types_gen::type.
|
static |
Wrapper for drop().
type | will be CFAPI_NONE. |
Definition at line 3875 of file plugins.c.
References make_face_from_files::args, board::author, CFAPI_NONE, drop(), FLAG_NO_DROP, give::op, PLAYER, QUERY_FLAG, and is_valid_types_gen::type.
|
static |
Kinda wrapper for arch__present_in_ob().
Definition at line 3803 of file plugins.c.
References arch_present_in_ob(), make_face_from_files::args, CFAPI_POBJECT, FOR_INV_FINISH, FOR_INV_PREPARE, MAX_BUF, give::name, give::op, query_name(), make_face_from_files::str, Ice::tmp, try_find_archetype(), and is_valid_types_gen::type.
|
static |
Definition at line 3838 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, give::name, object_find_by_arch_name(), rotate-tower::result, is_valid_types_gen::type, and autojail::who.
|
static |
Definition at line 3854 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, give::name, object_find_by_name(), rotate-tower::result, is_valid_types_gen::type, and autojail::who.
|
static |
Definition at line 3093 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, fix_object(), give::op, and is_valid_types_gen::type.
|
static |
Definition at line 3654 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, do_forget_spell(), MAX_BUF, give::name, give::op, query_name(), and is_valid_types_gen::type.
|
static |
Gets a key/value value for an object.
type | will contain CFAPI_SSTRING. |
Definition at line 1448 of file plugins.c.
References make_face_from_files::args, CFAPI_SSTRING, object_get_value(), give::op, is_valid_types_gen::type, and autojail::value.
|
static |
Main object property getter.
Definition at line 1493 of file plugins.c.
References arch_present_in_ob(), make_face_from_files::args, buf, CFAPI_DOUBLE, CFAPI_FLOAT, CFAPI_INT, CFAPI_INT16, CFAPI_LONG, CFAPI_MOVETYPE, CFAPI_NONE, CFAPI_OBJECT_PROP_AC, CFAPI_OBJECT_PROP_ANIM_SPEED, CFAPI_OBJECT_PROP_ANIMATION, CFAPI_OBJECT_PROP_ARCH_NAME, CFAPI_OBJECT_PROP_ARCHETYPE, CFAPI_OBJECT_PROP_ATTACK_MOVEMENT, CFAPI_OBJECT_PROP_ATTACK_TYPE, CFAPI_OBJECT_PROP_ATTACKED_BY, CFAPI_OBJECT_PROP_BASE_NAME, CFAPI_OBJECT_PROP_CARRYING, CFAPI_OBJECT_PROP_CHA, CFAPI_OBJECT_PROP_CHEATER, CFAPI_OBJECT_PROP_CHOSEN_SKILL, CFAPI_OBJECT_PROP_CLIENT_TYPE, CFAPI_OBJECT_PROP_CON, CFAPI_OBJECT_PROP_CONTAINER, CFAPI_OBJECT_PROP_COUNT, CFAPI_OBJECT_PROP_CURRENT_WEAPON, CFAPI_OBJECT_PROP_CUSTOM_NAME, CFAPI_OBJECT_PROP_DAM, CFAPI_OBJECT_PROP_DEX, CFAPI_OBJECT_PROP_DIRECTION, CFAPI_OBJECT_PROP_DURATION, CFAPI_OBJECT_PROP_ENEMY, CFAPI_OBJECT_PROP_ENVIRONMENT, CFAPI_OBJECT_PROP_EXP, CFAPI_OBJECT_PROP_EXP_MULTIPLIER, CFAPI_OBJECT_PROP_FACE, CFAPI_OBJECT_PROP_FACING, CFAPI_OBJECT_PROP_FLAGS, CFAPI_OBJECT_PROP_FP, CFAPI_OBJECT_PROP_FRIENDLY, CFAPI_OBJECT_PROP_GEN_SP_ARMOUR, CFAPI_OBJECT_PROP_GLOW_RADIUS, CFAPI_OBJECT_PROP_GOD, CFAPI_OBJECT_PROP_GP, CFAPI_OBJECT_PROP_HEAD, CFAPI_OBJECT_PROP_HIDDEN, CFAPI_OBJECT_PROP_HP, CFAPI_OBJECT_PROP_INT, CFAPI_OBJECT_PROP_INVENTORY, CFAPI_OBJECT_PROP_INVISIBLE, CFAPI_OBJECT_PROP_INVISIBLE_TIME, CFAPI_OBJECT_PROP_ITEM_POWER, CFAPI_OBJECT_PROP_LAST_EAT, CFAPI_OBJECT_PROP_LAST_GRACE, CFAPI_OBJECT_PROP_LAST_HEAL, CFAPI_OBJECT_PROP_LAST_SP, CFAPI_OBJECT_PROP_LEVEL, CFAPI_OBJECT_PROP_LORE, CFAPI_OBJECT_PROP_LUCK, CFAPI_OBJECT_PROP_MAGIC, CFAPI_OBJECT_PROP_MAGICAL, CFAPI_OBJECT_PROP_MAP, CFAPI_OBJECT_PROP_MATERIAL, CFAPI_OBJECT_PROP_MATERIAL_NAME, CFAPI_OBJECT_PROP_MAXGP, CFAPI_OBJECT_PROP_MAXHP, CFAPI_OBJECT_PROP_MAXSP, CFAPI_OBJECT_PROP_MERGEABLE, CFAPI_OBJECT_PROP_MESSAGE, CFAPI_OBJECT_PROP_MOVE_ALLOW, CFAPI_OBJECT_PROP_MOVE_BLOCK, CFAPI_OBJECT_PROP_MOVE_OFF, CFAPI_OBJECT_PROP_MOVE_ON, CFAPI_OBJECT_PROP_MOVE_SLOW, CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY, CFAPI_OBJECT_PROP_MOVE_STATUS, CFAPI_OBJECT_PROP_MOVE_TYPE, CFAPI_OBJECT_PROP_NAME, CFAPI_OBJECT_PROP_NAME_PLURAL, CFAPI_OBJECT_PROP_NEXT_ACTIVE_OB, CFAPI_OBJECT_PROP_NROF, CFAPI_OBJECT_PROP_OB_ABOVE, CFAPI_OBJECT_PROP_OB_BELOW, CFAPI_OBJECT_PROP_OTHER_ARCH, CFAPI_OBJECT_PROP_OWNER, CFAPI_OBJECT_PROP_PATH_ATTUNED, CFAPI_OBJECT_PROP_PATH_DENIED, CFAPI_OBJECT_PROP_PATH_REPELLED, CFAPI_OBJECT_PROP_PICK_UP, CFAPI_OBJECT_PROP_PICKABLE, CFAPI_OBJECT_PROP_POW, CFAPI_OBJECT_PROP_PRESENT, CFAPI_OBJECT_PROP_PREV_ACTIVE_OB, CFAPI_OBJECT_PROP_RACE, CFAPI_OBJECT_PROP_RAW_NAME, CFAPI_OBJECT_PROP_RESIST, CFAPI_OBJECT_PROP_RUN_AWAY, CFAPI_OBJECT_PROP_SHORT_NAME, CFAPI_OBJECT_PROP_SKILL, CFAPI_OBJECT_PROP_SLAYING, CFAPI_OBJECT_PROP_SP, CFAPI_OBJECT_PROP_SPEED, CFAPI_OBJECT_PROP_SPEED_LEFT, CFAPI_OBJECT_PROP_SPELL_ITEM, CFAPI_OBJECT_PROP_STR, CFAPI_OBJECT_PROP_SUBTYPE, CFAPI_OBJECT_PROP_TITLE, CFAPI_OBJECT_PROP_TOTAL_EXP, CFAPI_OBJECT_PROP_TYPE, CFAPI_OBJECT_PROP_VALUE, CFAPI_OBJECT_PROP_WC, CFAPI_OBJECT_PROP_WEIGHT, CFAPI_OBJECT_PROP_WEIGHT_LIMIT, CFAPI_OBJECT_PROP_WIS, CFAPI_OBJECT_PROP_X, CFAPI_OBJECT_PROP_Y, CFAPI_PARCH, CFAPI_PLAYER_PROP_BED_MAP, CFAPI_PLAYER_PROP_BED_X, CFAPI_PLAYER_PROP_BED_Y, CFAPI_PLAYER_PROP_IP, CFAPI_PLAYER_PROP_MARKED_ITEM, CFAPI_PLAYER_PROP_NEXT, CFAPI_PLAYER_PROP_PARTY, CFAPI_PLAYER_PROP_TITLE, CFAPI_PLAYER_PROP_TRANSPORT, CFAPI_PMAP, CFAPI_POBJECT, CFAPI_PPARTY, CFAPI_SINT64, CFAPI_SSTRING, CFAPI_STRING, determine_god(), find_marked_object(), first_player, FLAG_WAS_WIZ, is_friendly(), is_magical(), pl::ob, object_can_merge(), object_can_pick(), object_get_owner(), object_present_in_ob(), object_present_in_ob_by_name(), give::op, player_get_title(), query_base_name(), QUERY_FLAG, query_name(), query_short_name(), sstring, strlcpy(), and is_valid_types_gen::type.
|
static |
Definition at line 3109 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, give_skill_by_name(), give::op, and is_valid_types_gen::type.
|
static |
Wrapper for identify().
type | will be CFAPI_NONE. |
Definition at line 3014 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, identify(), give::op, rotate-tower::result, and is_valid_types_gen::type.
|
static |
Definition at line 3262 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, CFAPI_POBJECT, FLAG_FREED, FLAG_REMOVED, FREE_OBJ_NO_DESTROY_CALLBACK, freearr_x, freearr_y, llevError, LOG(), disinfect::map, object_find_free_spot(), object_free(), object_free_drop_inventory(), object_insert_in_map_at(), object_insert_in_ob(), object_remove(), give::op, QUERY_FLAG, SIZEOFFREE, is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Definition at line 3639 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, do_learn_spell(), give::op, and is_valid_types_gen::type.
|
static |
Wrapper for object_merge().
type | Will be CFAPI_POBJECT. |
Definition at line 3403 of file plugins.c.
References make_face_from_files::args, CFAPI_POBJECT, object_merge(), give::op, and is_valid_types_gen::type.
|
static |
Moves an object.
Syntax is: cfapi_object_move(&type, kind) where kind is:
type | will contain CFAPI_INT. |
Definition at line 1398 of file plugins.c.
References diamondslots::activator, make_face_from_files::args, CFAPI_INT, give::direction, move_ob(), move_player(), pl::ob, give::op, altar_valkyrie::pl, player_arrest(), and is_valid_types_gen::type.
|
static |
Definition at line 3510 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, on_same_map(), and is_valid_types_gen::type.
|
static |
Wrapper for pay_for_amount().
type | will be CFAPI_INT. |
Definition at line 3694 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, give::op, pay_for_amount(), and is_valid_types_gen::type.
|
static |
Wrapper for pay_for_item().
type | will be CFAPI_INT. |
Definition at line 3715 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, give::op, pay_for_item(), and is_valid_types_gen::type.
|
static |
Wrapper for permanent experience calculation. This is because the settings struct is not visible inside the plugin.
type | will be CFAPI_SINT64. |
Definition at line 3984 of file plugins.c.
References make_face_from_files::args, CFAPI_SINT64, give::op, PERM_EXP, and is_valid_types_gen::type.
|
static |
Definition at line 4113 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, pick_up(), is_valid_types_gen::type, and autojail::who.
|
static |
Wrapper for query_money().
type | Will be CFAPI_INT. |
Definition at line 3592 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, give::op, query_money(), and is_valid_types_gen::type.
|
static |
Definition at line 3143 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, FLAG_REMOVED, llevError, LOG(), object_remove(), give::op, QUERY_FLAG, and is_valid_types_gen::type.
|
static |
Definition at line 3074 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, level, give::op, remove_depletion(), rotate-tower::result, and is_valid_types_gen::type.
|
static |
Wrapper for clear_reset().
type | Will be CFAPI_NONE. |
Definition at line 3485 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, object_reset(), give::op, and is_valid_types_gen::type.
|
static |
Definition at line 3914 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, command_say(), monster_npc_say(), navar-midane_pickup::msg, give::op, PLAYER, and is_valid_types_gen::type.
|
static |
Write a key/value for an object.
type | will contain CFAPI_SSTRING. |
Definition at line 1470 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, object_set_value(), give::op, is_valid_types_gen::type, and autojail::value.
|
static |
Sets the property of an object. Will send changes to client if required. First argument should be an object*, second an integer.. Will not change an archetype's object.
type | will contain the type of the first argument used to change the property. |
Definition at line 2316 of file plugins.c.
References add_friendly_object(), animate::anim, make_face_from_files::args, CFAPI_DOUBLE, CFAPI_FLOAT, CFAPI_INT, CFAPI_INT16, CFAPI_LONG, CFAPI_MOVETYPE, CFAPI_NONE, CFAPI_OBJECT_PROP_AC, CFAPI_OBJECT_PROP_ANIM_SPEED, CFAPI_OBJECT_PROP_ANIMATION, CFAPI_OBJECT_PROP_ATTACK_MOVEMENT, CFAPI_OBJECT_PROP_ATTACK_TYPE, CFAPI_OBJECT_PROP_CHA, CFAPI_OBJECT_PROP_CHEATER, CFAPI_OBJECT_PROP_CHOSEN_SKILL, CFAPI_OBJECT_PROP_CON, CFAPI_OBJECT_PROP_CUSTOM_NAME, CFAPI_OBJECT_PROP_DAM, CFAPI_OBJECT_PROP_DEX, CFAPI_OBJECT_PROP_DIRECTION, CFAPI_OBJECT_PROP_DURATION, CFAPI_OBJECT_PROP_ENEMY, CFAPI_OBJECT_PROP_EXP, CFAPI_OBJECT_PROP_EXP_MULTIPLIER, CFAPI_OBJECT_PROP_FACE, CFAPI_OBJECT_PROP_FACING, CFAPI_OBJECT_PROP_FLAGS, CFAPI_OBJECT_PROP_FP, CFAPI_OBJECT_PROP_FRIENDLY, CFAPI_OBJECT_PROP_GEN_SP_ARMOUR, CFAPI_OBJECT_PROP_GLOW_RADIUS, CFAPI_OBJECT_PROP_GP, CFAPI_OBJECT_PROP_HIDDEN, CFAPI_OBJECT_PROP_HP, CFAPI_OBJECT_PROP_INT, CFAPI_OBJECT_PROP_INVISIBLE_TIME, CFAPI_OBJECT_PROP_ITEM_POWER, CFAPI_OBJECT_PROP_LAST_EAT, CFAPI_OBJECT_PROP_LAST_GRACE, CFAPI_OBJECT_PROP_LAST_HEAL, CFAPI_OBJECT_PROP_LAST_SP, CFAPI_OBJECT_PROP_LEVEL, CFAPI_OBJECT_PROP_LORE, CFAPI_OBJECT_PROP_LUCK, CFAPI_OBJECT_PROP_MAGIC, CFAPI_OBJECT_PROP_MATERIAL, CFAPI_OBJECT_PROP_MATERIAL_NAME, CFAPI_OBJECT_PROP_MAXGP, CFAPI_OBJECT_PROP_MAXHP, CFAPI_OBJECT_PROP_MAXSP, CFAPI_OBJECT_PROP_MESSAGE, CFAPI_OBJECT_PROP_MOVE_ALLOW, CFAPI_OBJECT_PROP_MOVE_BLOCK, CFAPI_OBJECT_PROP_MOVE_OFF, CFAPI_OBJECT_PROP_MOVE_ON, CFAPI_OBJECT_PROP_MOVE_SLOW, CFAPI_OBJECT_PROP_MOVE_STATUS, CFAPI_OBJECT_PROP_MOVE_TYPE, CFAPI_OBJECT_PROP_NAME, CFAPI_OBJECT_PROP_NAME_PLURAL, CFAPI_OBJECT_PROP_NROF, CFAPI_OBJECT_PROP_OWNER, CFAPI_OBJECT_PROP_PATH_ATTUNED, CFAPI_OBJECT_PROP_PATH_DENIED, CFAPI_OBJECT_PROP_PATH_REPELLED, CFAPI_OBJECT_PROP_PICK_UP, CFAPI_OBJECT_PROP_POW, CFAPI_OBJECT_PROP_RACE, CFAPI_OBJECT_PROP_RESIST, CFAPI_OBJECT_PROP_RUN_AWAY, CFAPI_OBJECT_PROP_SKILL, CFAPI_OBJECT_PROP_SLAYING, CFAPI_OBJECT_PROP_SP, CFAPI_OBJECT_PROP_SPEED, CFAPI_OBJECT_PROP_SPEED_LEFT, CFAPI_OBJECT_PROP_SPELL_ITEM, CFAPI_OBJECT_PROP_STR, CFAPI_OBJECT_PROP_TITLE, CFAPI_OBJECT_PROP_TOTAL_EXP, CFAPI_OBJECT_PROP_VALUE, CFAPI_OBJECT_PROP_WC, CFAPI_OBJECT_PROP_WEIGHT, CFAPI_OBJECT_PROP_WEIGHT_LIMIT, CFAPI_OBJECT_PROP_WIS, CFAPI_PLAYER_PROP_BED_MAP, CFAPI_PLAYER_PROP_BED_X, CFAPI_PLAYER_PROP_BED_Y, CFAPI_PLAYER_PROP_MARKED_ITEM, CFAPI_PLAYER_PROP_PARTY, CFAPI_PLAYER_PROP_TITLE, CFAPI_POBJECT, CFAPI_PPARTY, CFAPI_SINT64, CFAPI_STRING, CLEAR_FLAG, obj::container, copy_message(), obj::count, esrv_update_item(), first_player, fix_object(), FOR_ABOVE_FINISH, FOR_ABOVE_PREPARE, FREE_AND_COPY, is_friendly(), MAX_BUF, MOVE_ALL, pl::next, Face::number, pl::ob, object_decrease_nrof(), object_get_env_recursive(), object_get_player_container(), object_set_cheat(), object_set_enemy(), object_set_owner(), object_sum_weight(), object_update(), object_update_speed(), give::op, P_NEED_UPDATE, party_join(), altar_valkyrie::pl, PLAYER, player_set_own_title(), remove_friendly_object(), safe_strncpy, send_changed_object(), SET_ANIMATION, SET_FLAG, SET_MAP_FLAGS, Ice::tmp, try_find_animation(), try_find_face(), is_valid_types_gen::type, UP_OBJ_FACE, UP_OBJ_INSERT, UPD_NROF, UPD_WEIGHT, update_all_los(), and update_position().
|
static |
Wrapper for object_split().
type | will be CFAPI_POBJECT, or CFAPI_NONE if split failed. |
Definition at line 3370 of file plugins.c.
References make_face_from_files::args, buf, CFAPI_NONE, CFAPI_POBJECT, object_split(), give::op, split(), and is_valid_types_gen::type.
|
static |
Definition at line 3526 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, spring_trap(), is_valid_types_gen::type, and reputation::victim.
|
static |
Teleports an object at a specified destination if possible.
type | Will be CFAPI_INT. |
Definition at line 4094 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, disinfect::map, object_teleport(), altar_valkyrie::res, is_valid_types_gen::type, autojail::who, diamondslots::x, and diamondslots::y.
|
static |
Object transfer. Parameters are object*, int meaning: 0: call to transfer_ob() 1: call to object_insert_in_map_at() 2: call to move_to()
Definition at line 3739 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, CFAPI_NONE, CFAPI_POBJECT, disinfect::map, move_to(), object_insert_in_map_at(), give::op, transfer_ob(), is_valid_types_gen::type, diamondslots::x, and diamondslots::y.
|
static |
Definition at line 3126 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, give::op, transmute_materialname(), and is_valid_types_gen::type.
|
static |
Wrapper for object_update().
type | Will be CFAPI_NONE. |
Definition at line 3447 of file plugins.c.
References convert::action, make_face_from_files::args, CFAPI_NONE, object_update(), give::op, and is_valid_types_gen::type.
|
static |
Definition at line 4376 of file plugins.c.
References diamondslots::activator, make_face_from_files::args, CFAPI_INT, events_execute_object_user(), diamondslots::message, give::op, and is_valid_types_gen::type.
|
static |
Party-related functions.
type | data type returned. |
Definition at line 4183 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, CFAPI_PARTY_PROP_NAME, CFAPI_PARTY_PROP_NEXT, CFAPI_PARTY_PROP_PASSWORD, CFAPI_PARTY_PROP_PLAYER, CFAPI_PPARTY, CFAPI_PPLAYER, CFAPI_SSTRING, obj::contr, first_player, pl::next, party_get_first(), party_get_next(), party_get_password(), party_struct::partyname, sstring, and is_valid_types_gen::type.
|
static |
Wrapper for can_pay().
type | will be CFAPI_INT. |
Definition at line 4026 of file plugins.c.
References make_face_from_files::args, can_pay(), CFAPI_INT, altar_valkyrie::pl, and is_valid_types_gen::type.
|
static |
Wrapper for find_player_partial_name().
type | will be CFAPI_PPLAYER. |
Definition at line 3943 of file plugins.c.
References make_face_from_files::args, CFAPI_PPLAYER, find_player_partial_name(), and is_valid_types_gen::type.
|
static |
Wrapper for knowledge-related functions().
type | Depends on the type. |
Definition at line 4045 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, CFAPI_NONE, giveknowledge::knowledge, knowledge_give(), knowledge_player_knows(), llevError, LOG(), altar_valkyrie::pl, and is_valid_types_gen::type.
|
static |
Definition at line 3958 of file plugins.c.
References make_face_from_files::args, buf, CFAPI_NONE, draw_ext_info(), flags, MSG_SUBTYPE_NONE, MSG_TYPE_MISC, altar_valkyrie::pl, and is_valid_types_gen::type.
|
static |
Quest-related wrappers, for all quest-related operations.
Definition at line 4400 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, CFAPI_NONE, CFAPI_PLAYER_QUEST_GET_STATE, CFAPI_PLAYER_QUEST_SET_STATE, CFAPI_PLAYER_QUEST_START, CFAPI_PLAYER_QUEST_WAS_COMPLETED, llevError, LOG(), give::op, quest_get_player_state(), quest_set_player_state(), quest_start(), quest_was_completed(), sstring, quest::state, and is_valid_types_gen::type.
|
static |
Regions-related functions.
type | data type returned. |
Return values.
Definition at line 4238 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, CFAPI_NONE, CFAPI_PREGION, CFAPI_REGION_PROP_JAIL_PATH, CFAPI_REGION_PROP_JAIL_X, CFAPI_REGION_PROP_JAIL_Y, CFAPI_REGION_PROP_LONGNAME, CFAPI_REGION_PROP_MESSAGE, CFAPI_REGION_PROP_NAME, CFAPI_REGION_PROP_NEXT, CFAPI_REGION_PROP_PARENT, CFAPI_SSTRING, first_region, regiondef::jailmap, regiondef::jailx, regiondef::jaily, regiondef::longname, regiondef::msg, regiondef::name, regiondef::next, regiondef::parent, sstring, and is_valid_types_gen::type.
|
static |
Definition at line 4451 of file plugins.c.
References make_face_from_files::args, CFAPI_SINT64, command_register(), command_register_extra(), COMMAND_TYPE_NORMAL, COMMAND_TYPE_WIZARD, give::name, and is_valid_types_gen::type.
|
static |
Wrapper for set_random_map_variable().
type | will be CFAPI_INT. |
Definition at line 4335 of file plugins.c.
References make_face_from_files::args, buf, CFAPI_INT, set_random_map_variable(), and is_valid_types_gen::type.
|
static |
Wrapper for add_string().
type | will be CFAPI_SSTRING. |
Definition at line 664 of file plugins.c.
References add_string(), make_face_from_files::args, CFAPI_SSTRING, sstring, make_face_from_files::str, and is_valid_types_gen::type.
|
static |
Wrapper for check_path().
type | will be CFAPI_INT. |
Definition at line 721 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, check_path(), give::name, and is_valid_types_gen::type.
|
static |
Definition at line 762 of file plugins.c.
References make_face_from_files::args, CFAPI_STRING, Settings::confdir, Settings::datadir, Settings::localdir, Settings::mapdir, Settings::playerdir, settings, make_face_from_files::str, Settings::tmpdir, is_valid_types_gen::type, and Settings::uniquedir.
|
static |
Wrapper for find_animation().
type | will be CFAPI_INT. |
Definition at line 559 of file plugins.c.
References animate::anim, make_face_from_files::args, CFAPI_INT, give::name, try_find_animation(), and is_valid_types_gen::type.
|
static |
Wrapper for find_face().
type | will be CFAPI_INT. |
Definition at line 580 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, get_face_by_id(), Face::number, try_find_face(), and is_valid_types_gen::type.
|
static |
Wrapper for find_string().
type | will be CFAPI_SSTRING. |
Definition at line 702 of file plugins.c.
References make_face_from_files::args, CFAPI_SSTRING, find_string(), sstring, make_face_from_files::str, and is_valid_types_gen::type.
|
static |
Wrapper for re_cmp().
type | will be CFAPI_STRING. |
Definition at line 744 of file plugins.c.
References make_face_from_files::args, CFAPI_STRING, re_cmp(), make_face_from_files::str, and is_valid_types_gen::type.
|
static |
Definition at line 617 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, events_register_global_handler(), _crossfire_plugin::global_registration, plugins_find_plugin(), and is_valid_types_gen::type.
|
static |
Wrapper for free_string().
type | will be CFAPI_NONE. |
Definition at line 684 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, free_string(), sstring, make_face_from_files::str, and is_valid_types_gen::type.
|
static |
Wrapper for strdup_local().
type | will be CFAPI_STRING. |
Definition at line 603 of file plugins.c.
References make_face_from_files::args, CFAPI_STRING, strdup_local, and is_valid_types_gen::type.
|
static |
Definition at line 638 of file plugins.c.
References make_face_from_files::args, CFAPI_NONE, events_unregister_global_handler(), _crossfire_plugin::global_registration, plugins_find_plugin(), and is_valid_types_gen::type.
|
static |
Wrapper for cfapi_timer_create().
type | unused |
Additional parameters:
Definition at line 897 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, cftimer_create(), cftimer_find_free_id(), guildjoin::ob, altar_valkyrie::res, TIMER_ERR_ID, TIMER_ERR_NONE, and is_valid_types_gen::type.
|
static |
Wrapper for cftimer_destroy().
type | will be CFAPI_INT. |
Additional parameters:
Definition at line 930 of file plugins.c.
References make_face_from_files::args, CFAPI_INT, cftimer_destroy(), diamondslots::id, and is_valid_types_gen::type.
|
static |
Definition at line 4486 of file plugins.c.
References make_face_from_files::args, command_unregister(), and is_valid_types_gen::type.
void cleanupPlugins | ( | void | ) |
Call the crossfire_plugin::closefunc on the various plugins, used at server shutdown. Will not unload plugins. Free all items of plugins_list.
Definition at line 4556 of file plugins.c.
References _crossfire_plugin::closefunc, give::next, _crossfire_plugin::next, and plugins_list.
Referenced by cleanup().
|
static |
Utility function to copy the string to op->msg.
op | object to copy to. |
msg | message to copy. |
Definition at line 2299 of file plugins.c.
References free_dialog_information(), navar-midane_pickup::msg, object_set_msg(), and give::op.
Referenced by cfapi_object_set_property().
void initPlugins | ( | void | ) |
Plugins initialization. Browses the plugins directory and call plugins_init_plugin() for each file found.
Definition at line 4506 of file plugins.c.
References buf, closedir(), dirent, Settings::disabled_plugins, banquet::l, llevDebug, llevInfo, LOG(), MAX_BUF, linked_char::name, linked_char::next, opendir(), plugins_init_plugin(), readdir(), and settings.
Referenced by server_main().
void plugins_display_list | ( | object * | op | ) |
Displays a list of loaded plugins (keystrings and description) in the game log window.
op | who to display the list to. |
Definition at line 506 of file plugins.c.
References draw_ext_info(), draw_ext_info_format(), _crossfire_plugin::fullname, _crossfire_plugin::id, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_DEBUG, NDI_UNIQUE, _crossfire_plugin::next, give::op, and plugins_list.
Referenced by command_listplugins().
|
static |
Find a plugin from its internal name.
id | internal plugin name. |
Definition at line 256 of file plugins.c.
References _crossfire_plugin::id, _crossfire_plugin::next, and plugins_list.
Referenced by cfapi_system_register_global_event(), and cfapi_system_unregister_global_event().
int plugins_init_plugin | ( | const char * | libfile | ) |
Try to load the specified plugin. Update plugins_list if successful. Log errors at llevError.
libfile | full path to the plugin. |
Definition at line 366 of file plugins.c.
References cfapi_get_hooks(), _crossfire_plugin::closefunc, events_register_object_handler(), _crossfire_plugin::fullname, _crossfire_plugin::global_registration, _crossfire_plugin::id, Settings::ignore_plugin_compatibility, _crossfire_plugin::libptr, LIBPTRTYPE, llevError, LOG(), _crossfire_plugin::next, NR_EVENTS, plugins_dlclose, plugins_dlerror, plugins_dlopen, plugins_dlsym, plugins_list, _crossfire_plugin::prev, _crossfire_plugin::propfunc, settings, and SVN_REV.
Referenced by command_loadplugin(), and initPlugins().
int plugins_remove_plugin | ( | const char * | id | ) |
Unload the specified plugin. No logging is done in case of error. Updates plugins_list.
id | plugin internal identifier. |
Definition at line 457 of file plugins.c.
References _crossfire_plugin::closefunc, events_unregister_global_handler(), events_unregister_object_handler(), _crossfire_plugin::global_registration, _crossfire_plugin::id, _crossfire_plugin::libptr, _crossfire_plugin::next, NR_EVENTS, plugins_dlclose, plugins_list, and _crossfire_plugin::prev.
Referenced by command_unloadplugin().
|
static |
Notify clients about a changed object.
op | the object that has changed |
Definition at line 294 of file plugins.c.
References obj::container, esrv_update_item(), first_player, FOR_ABOVE_FINISH, FOR_ABOVE_PREPARE, pl::next, pl::ob, object_get_player_container(), give::op, altar_valkyrie::pl, PLAYER, Ice::tmp, and UPD_ALL.
Referenced by cfapi_object_set_property().
|
static |
All hooked functions plugins can call.
Definition at line 147 of file plugins.c.
Referenced by cfapi_get_hooks().
crossfire_plugin* plugins_list = NULL |
Linked list of loaded plugins.
Definition at line 245 of file plugins.c.
Referenced by cleanupPlugins(), plugins_display_list(), plugins_find_plugin(), plugins_init_plugin(), and plugins_remove_plugin().