Crossfire Server, Trunk
plugin_common.h
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* Crossfire Plugin Interface Common Parts */
3 /* Version: 2.0beta8 (also known as "Alexander") */
4 /* Contact: yann.chachkoff@myrealbox.com */
5 /*****************************************************************************/
6 /* That code is placed under the GNU General Public Licence (GPL) */
7 /* (C)2001-2005 by Chachkoff Yann (Feel free to deliver your complaints) */
8 /*****************************************************************************/
9 /* CrossFire, A Multiplayer game for X-windows */
10 /* */
11 /* Copyright (C) 2000 Mark Wedel */
12 /* Copyright (C) 1992 Frank Tore Johansen */
13 /* */
14 /* This program is free software; you can redistribute it and/or modify */
15 /* it under the terms of the GNU General Public License as published by */
16 /* the Free Software Foundation; either version 2 of the License, or */
17 /* (at your option) any later version. */
18 /* */
19 /* This program is distributed in the hope that it will be useful, */
20 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
21 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
22 /* GNU General Public License for more details. */
23 /* */
24 /* You should have received a copy of the GNU General Public License */
25 /* along with this program; if not, write to the Free Software */
26 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
27 /* */
28 /*****************************************************************************/
29 #ifndef PLUGIN_COMMON_H
30 #define PLUGIN_COMMON_H
31 
32 #ifdef WIN32
33 #define CF_PLUGIN __declspec(dllexport)
34 #else
35 #ifdef HAVE_VISIBILITY
36 #define CF_PLUGIN __attribute__((visibility("default")))
37 #else
38 #define CF_PLUGIN
39 #endif
40 #endif
41 
42 #include <plugin.h>
43 
44 #define PLUGIN_ERROR_INT 0x0FFFFF
45 
46 extern int cf_init_plugin(f_plug_api getHooks);
47 extern void cf_system_register_global_event(int event, const char *name, f_plug_event hook);
48 extern void cf_system_unregister_global_event(int event, const char *name);
49 extern command_registration cf_system_register_command(const char *name, command_function func, uint8_t command_type, float time);
50 extern command_registration cf_system_register_command_extra(const char *name, const char *extra, command_function_extra func, uint8_t command_type, float time);
52 
53 /* General functions */
54 extern sstring cf_add_string(const char *str);
55 extern void cf_free_string(sstring str);
56 extern sstring cf_find_string(const char *str);
57 extern char *cf_strdup_local(const char *str);
58 extern char *cf_get_maps_directory(const char *name, char *buf, int size);
59 extern int cf_find_animation(const char *txt);
60 extern int cf_find_face(const char *name, int error);
61 extern void cf_log(LogLevel logLevel, const char *format, ...);
62 extern void cf_log_plain(LogLevel logLevel, const char *message);
63 extern void cf_get_time(timeofday_t *tod);
64 extern int cf_timer_create(object *ob, long delay, int mode);
65 extern int cf_timer_destroy(int id);
66 extern const char *cf_get_directory(int id);
67 extern const char *cf_re_cmp(const char *str, const char *regexp);
68 extern const char *cf_get_season_name(int index);
69 extern const char *cf_get_month_name(int index);
70 extern const char *cf_get_weekday_name(int index);
71 extern const char *cf_get_periodofday_name(int index);
72 extern void cf_cost_string_from_value(uint64_t cost, int largest_coin, char *buffer, int length);
73 
74 /* Objects */
75 extern void cf_object_set_int_property(object *op, int propcode, int value);
76 extern int cf_object_get_int_property(object *op, int propcode);
77 extern long cf_object_get_long_property(object *op, long propcode);
78 extern void cf_object_set_movetype_property(object *op, int propcode, MoveType value);
79 extern MoveType cf_object_get_movetype_property(object *op, int propcode);
80 extern object *cf_object_get_object_property(object *op, int propcode);
81 extern void cf_object_set_object_property(object *op, int propcode, object *value);
82 extern float cf_object_get_float_property(object *op, int propcode);
83 extern void cf_object_set_float_property(object *op, int propcode, float value);
84 extern mapstruct *cf_object_get_map_property(object *op, int propcode);
85 extern archetype *cf_object_get_archetype_property(object *op, int propcode);
86 extern partylist *cf_object_get_partylist_property(object *op, int propcode);
87 extern int64_t cf_object_get_int64_property(object *op, int propcode);
88 extern void cf_object_set_int64_property(object *op, int propcode, int64_t value);
89 extern double cf_object_get_double_property(object *op, int propcode);
90 extern sstring cf_object_get_sstring_property(object *op, int propcode);
91 extern char *cf_object_get_string_property(object *op, int propcode, char *buf, int size);
92 extern void cf_fix_object(object *op);
93 extern char *cf_query_name(object *ob, char *name, int size);
94 extern sstring cf_query_name_pl(object *ob);
95 extern const char *cf_object_get_msg(object *);
96 extern void cf_object_set_weight(object *ob, int weight);
97 extern int cf_object_get_weight(object *ob);
98 extern void cf_object_set_weight_limit(object *ob, int weight);
99 extern int cf_object_get_weight_limit(object *ob);
100 extern int cf_object_set_nrof(object *, int nrof);
101 extern int cf_object_get_nrof(object *);
102 extern int cf_object_get_flag(object *ob, int flag);
103 extern void cf_object_set_flag(object *ob, int flag, int value);
104 extern object *cf_object_insert_in_ob(object *op, object *where);
105 extern void cf_object_set_string_property(object *op, int propcode, const char *value);
106 extern void cf_spring_trap(object *trap, object *victim);
107 extern int cf_object_check_trigger(object *op, object *cause);
108 extern int cf_object_query_money(const object *op);
109 extern int cf_object_query_cost(const object *tmp, object *who, int flag);
110 extern void cf_object_query_cost_string(const object *tmp, object *who, int flag, char *buffer, int length);
111 extern int cf_object_cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg);
112 extern void cf_object_learn_spell(object *op, object *spell, int special_prayer);
113 extern void cf_object_forget_spell(object *op, object *sp);
114 extern object *cf_object_check_for_spell(object *op, const char *name);
115 extern int cf_object_pay_amount(object *pl, uint64_t to_pay);
116 extern int cf_object_pay_item(object *op, object *pl);
117 extern void cf_object_set_long_property(object *op, int propcode, long value);
118 extern int cf_object_transfer(object *op, int x, int y, int randomly, object *originator);
119 extern int cf_object_move_to(object *op, int x, int y);
120 extern int cf_object_out_of_map(object *op, int x, int y);
121 extern void cf_object_drop(object *op, object *author);
122 extern void cf_object_say(object *op, char *msg);
123 extern object *cf_object_insert_object(object *op, object *container);
124 extern object *cf_object_present_archname_inside(object *op, char *whatstr);
125 extern int cf_object_apply(object *op, object *author, int flags);
126 extern void cf_object_remove(object *op);
127 extern void cf_object_free_drop_inventory(object *ob);
128 extern object *cf_create_object(void);
129 extern object *cf_create_object_by_name(const char *name);
130 extern object *cf_object_change_map(object *op, mapstruct *m, object *originator, int flag, int x, int y);
131 extern int cf_object_teleport(object *ob, mapstruct *map, int x, int y);
132 extern void cf_object_update(object *op, int flags);
133 extern void cf_object_pickup(object *op, object *what);
134 extern const char *cf_object_get_key(object *op, const char *keyname);
135 extern int cf_object_set_key(object *op, const char *keyname, const char *value, int add_key);
136 extern int16_t cf_object_get_resistance(object *op, int rtype);
137 extern void cf_object_set_resistance(object *op, int rtype, int16_t value);
138 extern int cf_object_move(object *op, int dir, object*originator);
139 extern void cf_object_apply_below(object *pl);
140 extern object *cf_object_clone(object *op, int clonetype);
141 extern void cf_object_change_exp(object *op, int64_t exp, const char *skill_name, int flag);
142 extern int cf_object_change_abil(object *op, object *tmp);
143 extern int cf_object_user_event(object *op, object *activator, object *third, const char *message, int fix);
144 extern int cf_object_remove_depletion(object *op, int level);
145 extern object *cf_object_find_by_arch_name(const object *who, const char *name);
146 extern object *cf_object_find_by_name(const object *who, const char *name);
147 extern object *cf_object_split(object *orig_ob, uint32_t nr, char *err, size_t size);
148 extern object *cf_object_clone(object *op, int clonetype);
149 extern int cf_object_set_face(object *op, const char *face);
150 extern int cf_object_set_animation(object *op, const char *animation);
151 extern object *cf_identify(object *op);
152 extern int64_t cf_object_perm_exp(object *op);
153 /* Maps */
154 /*extern void *cf_map_get_property(mapstruct *map, int propcode);*/
155 extern sstring cf_map_get_sstring_property(mapstruct *map, int propcode);
156 extern mapstruct *cf_map_get_map_property(mapstruct *map, int propcode);
157 extern region *cf_map_get_region_property(mapstruct *map, int propcode);
158 extern int cf_map_get_int_property(mapstruct *map, int property);
159 
160 extern void cf_map_set_int_property(mapstruct *map, int propcode, int value);
161 extern void cf_map_set_string_property(mapstruct *map, int propcode, const char *value);
162 extern mapstruct *cf_map_get_map(const char *name, int flags);
163 extern mapstruct *cf_get_empty_map(int sizex, int sizey);
164 extern mapstruct *cf_map_get_first(void);
165 extern mapstruct *cf_map_has_been_loaded(const char *name);
166 extern void cf_map_message(mapstruct *m, const char *msg, int color);
167 extern object *cf_map_get_object_at(mapstruct *m, int x, int y);
168 extern object *cf_map_insert_object(mapstruct *where, object *op, int x, int y);
169 extern object *cf_map_insert_object_around(mapstruct *where, object *op, int x, int y);
170 extern object *cf_map_find_by_archetype_name(const char *str, mapstruct *map, int nx, int ny);
171 extern int cf_map_get_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny);
172 extern object *cf_map_insert_object_there(object *op, mapstruct *m, object *originator, int flag);
173 extern int cf_map_get_difficulty(mapstruct *map);
174 extern int cf_map_get_reset_time(mapstruct *map);
176 extern int cf_map_get_players(mapstruct *map);
177 extern int cf_map_get_darkness(mapstruct *map);
178 extern int cf_map_get_light(mapstruct *map);
179 extern int cf_map_get_width(mapstruct *map);
180 extern int cf_map_get_height(mapstruct *map);
181 extern int cf_map_get_enter_x(mapstruct *map);
182 extern int cf_map_get_enter_y(mapstruct *map);
183 extern int cf_map_change_light(mapstruct *m, int change);
184 extern void cf_map_trigger_connected(objectlink *ol, object *cause, int state);
185 
186 /* Random maps */
187 extern int cf_random_map_set_variable(RMParms *rp, const char *buf);
188 extern mapstruct *cf_random_map_generate(const char *OutFileName, RMParms *RP, char **use_layout);
189 
190 /* Players */
191 extern char *cf_player_get_title(object *op, char *title, int size);
192 extern void cf_player_set_title(object *op, const char *title);
193 extern sstring cf_player_get_ip(object *op);
194 extern object *cf_player_get_marked_item(object *op);
195 extern void cf_player_set_marked_item(object *op, object *ob);
196 extern player *cf_player_find(const char *plname);
197 extern void cf_player_message(object *op, char *txt, int flags);
198 extern int cf_player_move(player *pl, int dir);
199 extern partylist *cf_player_get_party(object *op);
200 extern void cf_player_set_party(object *op, partylist *party);
201 extern int cf_player_can_pay(object *op);
202 extern int cf_player_knowledge_has(object *op, const char *knowledge);
203 extern void cf_player_knowledge_give(object *op, const char *knowledge);
204 extern int cf_player_arrest(object *who);
205 
206 /* Archetypes */
207 extern archetype *cf_archetype_get_first(void);
212 extern object *cf_archetype_get_clone(archetype *arch);
213 
214 /* Parties */
215 extern partylist *cf_party_get_first(void);
216 extern const char *cf_party_get_name(partylist *party);
217 extern partylist *cf_party_get_next(partylist *party);
218 extern const char *cf_party_get_password(partylist *party);
221 
222 /* Regions */
223 extern region *cf_region_get_first(void);
224 extern const char *cf_region_get_name(region *reg);
225 extern region *cf_region_get_next(region *reg);
226 extern region *cf_region_get_parent(region *reg);
227 extern const char *cf_region_get_longname(region *reg);
228 extern const char *cf_region_get_message(region *reg);
229 extern int cf_region_get_jail_x(region *reg);
230 extern int cf_region_get_jail_y(region *reg);
231 extern const char *cf_region_get_jail_path(region *reg);
232 
233 /* Friendly list */
234 extern object *cf_friendlylist_get_first(void);
235 extern object *cf_friendlylist_get_next(object *ob);
236 
237 /* Quest-related functions */
238 extern int cf_quest_get_player_state(object *pl, sstring quest_code);
239 extern void cf_quest_start(object *pl, sstring quest_code, int state);
240 extern void cf_quest_set_player_state(object *pl, sstring quest_code, int state);
241 extern int cf_quest_was_completed(object *pl, sstring quest_code);
242 
243 #endif /* PLUGIN_COMMON_H */
cf_cost_string_from_value
void cf_cost_string_from_value(uint64_t cost, int largest_coin, char *buffer, int length)
Definition: plugin_common.c:984
cf_map_get_region_property
region * cf_map_get_region_property(mapstruct *map, int propcode)
Definition: plugin_common.c:278
cf_log
void cf_log(LogLevel logLevel, const char *format,...)
Definition: plugin_common.c:1512
cf_query_name_pl
sstring cf_query_name_pl(object *ob)
Definition: plugin_common.c:1199
cf_map_get_height
int cf_map_get_height(mapstruct *map)
Definition: plugin_common.c:1394
cf_object_check_for_spell
object * cf_object_check_for_spell(object *op, const char *name)
Definition: plugin_common.c:768
cf_get_weekday_name
const char * cf_get_weekday_name(int index)
Definition: plugin_common.c:1564
cf_region_get_jail_y
int cf_region_get_jail_y(region *reg)
Definition: plugin_common.c:1979
cf_add_string
sstring cf_add_string(const char *str)
Definition: plugin_common.c:1157
cf_map_get_first
mapstruct * cf_map_get_first(void)
Definition: plugin_common.c:965
cf_map_get_sstring_property
sstring cf_map_get_sstring_property(mapstruct *map, int propcode)
Definition: plugin_common.c:260
cf_get_directory
const char * cf_get_directory(int id)
Definition: plugin_common.c:1120
cf_object_get_weight
int cf_object_get_weight(object *ob)
Definition: plugin_common.c:1231
cf_map_get_int_property
int cf_map_get_int_property(mapstruct *map, int property)
Definition: plugin_common.c:244
cf_player_set_marked_item
void cf_player_set_marked_item(object *op, object *ob)
Definition: plugin_common.c:856
cf_map_get_players
int cf_map_get_players(mapstruct *map)
Definition: plugin_common.c:1382
cf_object_teleport
int cf_object_teleport(object *ob, mapstruct *map, int x, int y)
Definition: plugin_common.c:1350
cf_party_get_name
const char * cf_party_get_name(partylist *party)
Definition: plugin_common.c:1788
cf_object_out_of_map
int cf_object_out_of_map(object *op, int x, int y)
Definition: plugin_common.c:1025
cf_get_season_name
const char * cf_get_season_name(int index)
Definition: plugin_common.c:1546
cf_object_get_string_property
char * cf_object_get_string_property(object *op, int propcode, char *buf, int size)
Definition: plugin_common.c:438
cf_object_get_long_property
long cf_object_get_long_property(object *op, long propcode)
Definition: plugin_common.c:332
cf_object_apply_below
void cf_object_apply_below(object *pl)
Definition: plugin_common.c:543
cf_archetype_get_name
sstring cf_archetype_get_name(archetype *arch)
Definition: plugin_common.c:1692
cf_archetype_get_first
archetype * cf_archetype_get_first(void)
Definition: plugin_common.c:1676
diamondslots.x
x
Definition: diamondslots.py:15
cf_object_get_sstring_property
sstring cf_object_get_sstring_property(object *op, int propcode)
Definition: plugin_common.c:430
cf_player_knowledge_has
int cf_player_knowledge_has(object *op, const char *knowledge)
Definition: plugin_common.c:890
archininventory.arch
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition: archininventory.py:16
cf_object_query_cost
int cf_object_query_cost(const object *tmp, object *who, int flag)
cf_object_get_object_property
object * cf_object_get_object_property(object *op, int propcode)
Definition: plugin_common.c:355
cf_object_cast_spell
int cf_object_cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
Definition: plugin_common.c:734
cf_fix_object
void cf_fix_object(object *op)
Definition: plugin_common.c:1146
cf_region_get_jail_path
const char * cf_region_get_jail_path(region *reg)
Definition: plugin_common.c:1994
cf_player_knowledge_give
void cf_player_knowledge_give(object *op, const char *knowledge)
Definition: plugin_common.c:903
cf_strdup_local
char * cf_strdup_local(const char *str)
Definition: plugin_common.c:1436
pl
Definition: player.h:92
cf_create_object_by_name
object * cf_create_object_by_name(const char *name)
Definition: plugin_common.c:1083
cf_map_get_reset_time
int cf_map_get_reset_time(mapstruct *map)
Definition: plugin_common.c:1374
MoveType
unsigned char MoveType
Definition: define.h:417
guildjoin.ob
ob
Definition: guildjoin.py:42
cf_query_name
char * cf_query_name(object *ob, char *name, int size)
Definition: plugin_common.c:1191
cf_map_insert_object_around
object * cf_map_insert_object_around(mapstruct *where, object *op, int x, int y)
Definition: plugin_common.c:1341
cf_object_set_float_property
void cf_object_set_float_property(object *op, int propcode, float value)
Definition: plugin_common.c:386
cf_party_get_first_player
player * cf_party_get_first_player(partylist *party)
Definition: plugin_common.c:1836
cf_timer_destroy
int cf_timer_destroy(int id)
Definition: plugin_common.c:1610
cf_object_apply
int cf_object_apply(object *op, object *author, int flags)
Definition: plugin_common.c:532
giveknowledge.knowledge
knowledge
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition: giveknowledge.py:15
cf_region_get_next
region * cf_region_get_next(region *reg)
Definition: plugin_common.c:1900
cf_object_get_int64_property
int64_t cf_object_get_int64_property(object *op, int propcode)
Definition: plugin_common.c:371
cf_object_move_to
int cf_object_move_to(object *op, int x, int y)
Definition: plugin_common.c:620
cf_object_free_drop_inventory
void cf_object_free_drop_inventory(object *ob)
Definition: plugin_common.c:561
cf_player_can_pay
int cf_player_can_pay(object *op)
Definition: plugin_common.c:876
cf_find_string
sstring cf_find_string(const char *str)
Definition: plugin_common.c:1179
cf_object_set_string_property
void cf_object_set_string_property(object *op, int propcode, const char *value)
Definition: plugin_common.c:446
Ice.tmp
int tmp
Definition: Ice.py:207
cf_object_perm_exp
int64_t cf_object_perm_exp(object *op)
Definition: plugin_common.c:505
plugin.h
cf_quest_set_player_state
void cf_quest_set_player_state(object *pl, sstring quest_code, int state)
Definition: plugin_common.c:2065
cf_map_get_light
int cf_map_get_light(mapstruct *map)
cf_map_insert_object
object * cf_map_insert_object(mapstruct *where, object *op, int x, int y)
Definition: plugin_common.c:1319
cf_player_arrest
int cf_player_arrest(object *who)
Definition: plugin_common.c:914
flags
static const flag_definition flags[]
Definition: gridarta-types-convert.c:101
cf_player_move
int cf_player_move(player *pl, int dir)
Definition: plugin_common.c:514
cf_party_get_next
partylist * cf_party_get_next(partylist *party)
Definition: plugin_common.c:1804
smoking_pipe.color
color
Definition: smoking_pipe.py:5
cf_archetype_get_clone
object * cf_archetype_get_clone(archetype *arch)
Definition: plugin_common.c:1757
cf_player_set_title
void cf_player_set_title(object *op, const char *title)
Definition: plugin_common.c:832
_timeofday
Definition: tod.h:34
RMParms
Definition: random_map.h:14
cf_spring_trap
void cf_spring_trap(object *trap, object *victim)
Definition: plugin_common.c:995
cf_object_get_msg
const char * cf_object_get_msg(object *)
Definition: plugin_common.c:1208
cf_object_pay_amount
int cf_object_pay_amount(object *pl, uint64_t to_pay)
Definition: plugin_common.c:722
cf_object_change_abil
int cf_object_change_abil(object *op, object *tmp)
Definition: plugin_common.c:1661
cf_object_set_key
int cf_object_set_key(object *op, const char *keyname, const char *value, int add_key)
Definition: plugin_common.c:1649
archt
Definition: object.h:468
cf_quest_start
void cf_quest_start(object *pl, sstring quest_code, int state)
Definition: plugin_common.c:2054
cf_region_get_parent
region * cf_region_get_parent(region *reg)
Definition: plugin_common.c:1916
m
static event_registration m
Definition: citylife.cpp:425
autojail.who
who
Definition: autojail.py:3
cf_archetype_get_more
archetype * cf_archetype_get_more(archetype *arch)
Definition: plugin_common.c:1725
cf_object_set_animation
int cf_object_set_animation(object *op, const char *animation)
Definition: plugin_common.c:476
disinfect.map
map
Definition: disinfect.py:4
titlestruct
Definition: readable.c:107
cf_log_plain
void cf_log_plain(LogLevel logLevel, const char *message)
Definition: plugin_common.c:1532
cf_party_get_first
partylist * cf_party_get_first(void)
Definition: plugin_common.c:1773
cf_player_get_party
partylist * cf_player_get_party(object *op)
Definition: plugin_common.c:862
diamondslots.activator
activator
Definition: diamondslots.py:10
cf_map_get_object_at
object * cf_map_get_object_at(mapstruct *m, int x, int y)
Definition: plugin_common.c:645
cf_timer_create
int cf_timer_create(object *ob, long delay, int mode)
Definition: plugin_common.c:1594
cf_identify
object * cf_identify(object *op)
Definition: plugin_common.c:802
cf_object_set_int64_property
void cf_object_set_int64_property(object *op, int propcode, int64_t value)
Definition: plugin_common.c:392
cf_find_face
int cf_find_face(const char *name, int error)
Definition: plugin_common.c:1500
cf_map_insert_object_there
object * cf_map_insert_object_there(object *op, mapstruct *m, object *originator, int flag)
Definition: plugin_common.c:1305
f_plug_api
void(* f_plug_api)(int *type,...)
Definition: plugin.h:81
cf_map_get_enter_y
int cf_map_get_enter_y(mapstruct *map)
Definition: plugin_common.c:1402
cf_system_unregister_global_event
void cf_system_unregister_global_event(int event, const char *name)
Definition: plugin_common.c:1099
cf_get_month_name
const char * cf_get_month_name(int index)
Definition: plugin_common.c:1555
cf_init_plugin
int cf_init_plugin(f_plug_api getHooks)
Definition: plugin_common.c:141
cf_object_get_movetype_property
MoveType cf_object_get_movetype_property(object *op, int propcode)
Definition: plugin_common.c:347
cf_object_find_by_arch_name
object * cf_object_find_by_arch_name(const object *who, const char *name)
Definition: plugin_common.c:582
cf_object_get_map_property
mapstruct * cf_object_get_map_property(object *op, int propcode)
Definition: plugin_common.c:363
cf_object_query_money
int cf_object_query_money(const object *op)
Definition: plugin_common.c:973
make_face_from_files.str
str
Definition: make_face_from_files.py:24
cf_region_get_longname
const char * cf_region_get_longname(region *reg)
Definition: plugin_common.c:1932
cf_get_empty_map
mapstruct * cf_get_empty_map(int sizex, int sizey)
Definition: plugin_common.c:938
cf_region_get_first
region * cf_region_get_first(void)
Definition: plugin_common.c:1868
cf_map_set_int_property
void cf_map_set_int_property(mapstruct *map, int propcode, int value)
Definition: plugin_common.c:288
cf_object_query_cost_string
void cf_object_query_cost_string(const object *tmp, object *who, int flag, char *buffer, int length)
navar-midane_pickup.msg
list msg
Definition: navar-midane_pickup.py:13
cf_object_get_partylist_property
partylist * cf_object_get_partylist_property(object *op, int propcode)
Definition: plugin_common.c:414
cf_object_get_nrof
int cf_object_get_nrof(object *)
Definition: plugin_common.c:1260
cf_object_set_weight_limit
void cf_object_set_weight_limit(object *ob, int weight)
Definition: plugin_common.c:1224
cf_object_clone
object * cf_object_clone(object *op, int clonetype)
Definition: plugin_common.c:673
cf_object_get_double_property
double cf_object_get_double_property(object *op, int propcode)
Definition: plugin_common.c:422
sstring
const typedef char * sstring
Definition: global.h:40
cf_map_message
void cf_map_message(mapstruct *m, const char *msg, int color)
Definition: plugin_common.c:657
cf_map_get_reset_timeout
int cf_map_get_reset_timeout(mapstruct *map)
Definition: plugin_common.c:1378
cf_object_get_flag
int cf_object_get_flag(object *ob, int flag)
Definition: plugin_common.c:1267
devourers.command
command
Definition: devourers.py:16
mapdef
Definition: map.h:324
cf_object_drop
void cf_object_drop(object *op, object *author)
Definition: plugin_common.c:1033
cf_map_get_enter_x
int cf_map_get_enter_x(mapstruct *map)
Definition: plugin_common.c:1398
cf_map_get_map_property
mapstruct * cf_map_get_map_property(mapstruct *map, int propcode)
Definition: plugin_common.c:269
cf_object_transfer
int cf_object_transfer(object *op, int x, int y, int randomly, object *originator)
Definition: plugin_common.c:608
cf_object_set_movetype_property
void cf_object_set_movetype_property(object *op, int propcode, MoveType value)
Definition: plugin_common.c:340
cf_map_get_flags
int cf_map_get_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
Definition: plugin_common.c:1451
party_struct
Definition: party.h:10
cf_free_string
void cf_free_string(sstring str)
Definition: plugin_common.c:1172
cf_region_get_message
const char * cf_region_get_message(region *reg)
Definition: plugin_common.c:1948
cf_random_map_set_variable
int cf_random_map_set_variable(RMParms *rp, const char *buf)
Definition: plugin_common.c:1463
cf_object_present_archname_inside
object * cf_object_present_archname_inside(object *op, char *whatstr)
Definition: plugin_common.c:569
cf_object_find_by_name
object * cf_object_find_by_name(const object *who, const char *name)
Definition: plugin_common.c:595
cf_object_pickup
void cf_object_pickup(object *op, object *what)
Definition: plugin_common.c:1424
cf_region_get_jail_x
int cf_region_get_jail_x(region *reg)
Definition: plugin_common.c:1964
cf_object_get_archetype_property
archetype * cf_object_get_archetype_property(object *op, int propcode)
Definition: plugin_common.c:406
cf_player_get_marked_item
object * cf_player_get_marked_item(object *op)
Definition: plugin_common.c:847
cf_system_register_command_extra
command_registration cf_system_register_command_extra(const char *name, const char *extra, command_function_extra func, uint8_t command_type, float time)
Definition: plugin_common.c:2093
cf_map_set_string_property
void cf_map_set_string_property(mapstruct *map, int propcode, const char *value)
Definition: plugin_common.c:295
cf_object_insert_in_ob
object * cf_object_insert_in_ob(object *op, object *where)
Definition: plugin_common.c:1288
cf_object_user_event
int cf_object_user_event(object *op, object *activator, object *third, const char *message, int fix)
Definition: plugin_common.c:252
cf_object_move
int cf_object_move(object *op, int dir, object *originator)
Definition: plugin_common.c:521
diamondslots.message
string message
Definition: diamondslots.py:57
cf_object_split
object * cf_object_split(object *orig_ob, uint32_t nr, char *err, size_t size)
Definition: plugin_common.c:687
cf_system_register_global_event
void cf_system_register_global_event(int event, const char *name, f_plug_event hook)
Definition: plugin_common.c:1092
cf_system_register_command
command_registration cf_system_register_command(const char *name, command_function func, uint8_t command_type, float time)
Definition: plugin_common.c:2085
cf_player_set_party
void cf_player_set_party(object *op, partylist *party)
Definition: plugin_common.c:866
cf_find_animation
int cf_find_animation(const char *txt)
Definition: plugin_common.c:1488
cf_object_set_weight
void cf_object_set_weight(object *ob, int weight)
Definition: plugin_common.c:1217
cf_archetype_get_next
archetype * cf_archetype_get_next(archetype *arch)
Definition: plugin_common.c:1709
cf_get_periodofday_name
const char * cf_get_periodofday_name(int index)
Definition: plugin_common.c:1573
cf_map_trigger_connected
void cf_map_trigger_connected(objectlink *ol, object *cause, int state)
Definition: plugin_common.c:1018
reputation.victim
victim
Definition: reputation.py:14
cf_object_set_flag
void cf_object_set_flag(object *ob, int flag, int value)
Definition: plugin_common.c:1278
f_plug_event
int(* f_plug_event)(int *type,...)
Definition: events.h:60
cf_region_get_name
const char * cf_region_get_name(region *reg)
Definition: plugin_common.c:1884
give.op
op
Definition: give.py:33
autojail.value
value
Definition: autojail.py:6
board.author
author
Definition: board.py:59
cf_object_set_nrof
int cf_object_set_nrof(object *, int nrof)
Definition: plugin_common.c:1250
cf_map_has_been_loaded
mapstruct * cf_map_has_been_loaded(const char *name)
Definition: plugin_common.c:951
cf_re_cmp
const char * cf_re_cmp(const char *str, const char *regexp)
Definition: plugin_common.c:1133
cf_object_check_trigger
int cf_object_check_trigger(object *op, object *cause)
Definition: plugin_common.c:1006
cf_quest_get_player_state
int cf_quest_get_player_state(object *pl, sstring quest_code)
Definition: plugin_common.c:2041
cf_object_set_long_property
void cf_object_set_long_property(object *op, int propcode, long value)
Definition: plugin_common.c:380
diamondslots.y
y
Definition: diamondslots.py:16
cf_create_object
object * cf_create_object(void)
Definition: plugin_common.c:1071
python_pickup.where
where
Definition: python_pickup.py:7
cf_get_maps_directory
char * cf_get_maps_directory(const char *name, char *buf, int size)
Definition: plugin_common.c:1059
npc_dialog.index
int index
Definition: npc_dialog.py:102
cf_object_get_key
const char * cf_object_get_key(object *op, const char *keyname)
Definition: plugin_common.c:1627
buf
StringBuffer * buf
Definition: readable.c:1606
cf_player_find
player * cf_player_find(const char *plname)
Definition: plugin_common.c:815
cf_friendlylist_get_next
object * cf_friendlylist_get_next(object *ob)
Definition: plugin_common.c:2026
cf_party_get_password
const char * cf_party_get_password(partylist *party)
Definition: plugin_common.c:1820
cf_player_get_title
char * cf_player_get_title(object *op, char *title, int size)
Definition: plugin_common.c:824
cf_system_unregister_command
void cf_system_unregister_command(command_registration command)
Definition: plugin_common.c:2101
cf_archetype_get_head
archetype * cf_archetype_get_head(archetype *arch)
Definition: plugin_common.c:1741
command_function_extra
void(* command_function_extra)(object *op, const char *params, const char *extra)
Definition: commands.h:29
cf_map_get_difficulty
int cf_map_get_difficulty(mapstruct *map)
Definition: plugin_common.c:1370
cf_party_get_next_player
player * cf_party_get_next_player(partylist *party, player *op)
Definition: plugin_common.c:1854
cf_object_set_face
int cf_object_set_face(object *op, const char *face)
Definition: plugin_common.c:464
animate.event
event
DIALOGCHECK MINARGS 1 MAXARGS 2
Definition: animate.py:17
cf_random_map_generate
mapstruct * cf_random_map_generate(const char *OutFileName, RMParms *RP, char **use_layout)
Definition: plugin_common.c:1475
quest.state
state
Definition: quest.py:13
command_registration
uint64_t command_registration
Definition: commands.h:32
cf_map_get_darkness
int cf_map_get_darkness(mapstruct *map)
Definition: plugin_common.c:1386
cf_map_get_map
mapstruct * cf_map_get_map(const char *name, int flags)
Definition: plugin_common.c:925
cf_object_change_map
object * cf_object_change_map(object *op, mapstruct *m, object *originator, int flag, int x, int y)
Definition: plugin_common.c:632
cf_object_forget_spell
void cf_object_forget_spell(object *op, object *sp)
Definition: plugin_common.c:758
cf_object_pay_item
int cf_object_pay_item(object *op, object *pl)
Definition: plugin_common.c:710
cf_object_get_weight_limit
int cf_object_get_weight_limit(object *ob)
Definition: plugin_common.c:1239
cf_object_insert_object
object * cf_object_insert_object(object *op, object *container)
Definition: plugin_common.c:1046
cf_object_get_resistance
int16_t cf_object_get_resistance(object *op, int rtype)
Definition: plugin_common.c:303
cf_object_set_int_property
void cf_object_set_int_property(object *op, int propcode, int value)
Definition: plugin_common.c:319
LogLevel
LogLevel
Definition: logger.h:10
diamondslots.cost
int cost
Definition: diamondslots.py:21
cf_object_update
void cf_object_update(object *op, int flags)
Definition: plugin_common.c:1418
cf_friendlylist_get_first
object * cf_friendlylist_get_first(void)
Definition: plugin_common.c:2010
oblnk
Definition: object.h:445
cf_object_remove
void cf_object_remove(object *op)
Definition: plugin_common.c:552
command_function
void(* command_function)(object *op, const char *params)
Definition: commands.h:17
cf_object_change_exp
void cf_object_change_exp(object *op, int64_t exp, const char *skill_name, int flag)
Definition: plugin_common.c:494
cf_object_say
void cf_object_say(object *op, char *msg)
Definition: plugin_common.c:1039
cf_player_get_ip
sstring cf_player_get_ip(object *op)
Definition: plugin_common.c:838
cf_player_message
void cf_player_message(object *op, char *txt, int flags)
Definition: plugin_common.c:777
cf_object_set_object_property
void cf_object_set_object_property(object *op, int propcode, object *value)
Definition: plugin_common.c:483
cf_map_find_by_archetype_name
object * cf_map_find_by_archetype_name(const char *str, mapstruct *map, int nx, int ny)
Definition: plugin_common.c:1361
cf_object_learn_spell
void cf_object_learn_spell(object *op, object *spell, int special_prayer)
Definition: plugin_common.c:746
cf_map_get_width
int cf_map_get_width(mapstruct *map)
Definition: plugin_common.c:1390
cf_object_get_int_property
int cf_object_get_int_property(object *op, int propcode)
Definition: plugin_common.c:325
cf_quest_was_completed
int cf_quest_was_completed(object *pl, sstring quest_code)
Definition: plugin_common.c:2076
cf_object_get_float_property
float cf_object_get_float_property(object *op, int propcode)
Definition: plugin_common.c:398
cf_map_change_light
int cf_map_change_light(mapstruct *m, int change)
Definition: plugin_common.c:1410
cf_get_time
void cf_get_time(timeofday_t *tod)
Definition: plugin_common.c:1539
cf_object_set_resistance
void cf_object_set_resistance(object *op, int rtype, int16_t value)
Definition: plugin_common.c:311
cf_object_remove_depletion
int cf_object_remove_depletion(object *op, int level)
Definition: plugin_common.c:788
give.name
name
Definition: give.py:27
level
Definition: level.py:1
regiondef
Definition: map.h:275