 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
16 #define DO(v, s) { if (recipe->v) { stringbuffer_append_printf(buf, s "\n", recipe->v); } }
29 DO(keycode,
"keycode %s");
30 DO(transmute,
"trans %d");
31 DO(yield,
"yield %d");
39 DO(cauldron,
"cauldron %s");
40 DO(failure_arch,
"failure_arch %s");
41 DO(failure_message,
"failure_message %s");
42 DO(min_level,
"min_level %d");
43 DO(is_combination,
"combination %d");
size_t tool_size
Length of tool.
size_t arch_names
Size of the arch_name[] array.
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
char ** arch_name
Possible archetypes of the final product made.
List of recipes with a certain number of ingredients.
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Append a string to a string buffer instance.
A buffer that will be expanded as content is added to it.
char ** tool
Tool(s) for item transformation.
linked_char * ingred
List of ingredients.
recipe * next
Next recipe with the same number of ingredients.
bool chance(int a, int b)
Return true with a probability of a/b.
How to Install a Crossfire Server on you must install a python script engine on your computer Python is the default script engine of Crossfire You can find the python engine you have only to install them The VisualC Crossfire settings are for but you habe then to change the pathes in the VC settings Go in Settings C and Settings Link and change the optional include and libs path to the new python installation path o except the maps ! You must download a map package and install them the share folder Its must look like doubleclick on crossfire32 dsw There are projects in your libcross lib and plugin_python You need to compile all Easiest way is to select the plugin_python ReleaseLog as active this will compile all others too Then in Visual C press< F7 > to compile If you don t have an appropriate compiler you can try to get the the VC copies the crossfire32 exe in the crossfire folder and the plugin_python dll in the crossfire share plugins folder we will remove it when we get time for it o Last showing lots of weird write to the Crossfire mailing list
static void writeStringArray(char **items, size_t count, StringBuffer *buf)
Write a list of strings as ' a,b,c' (leading space).
static void writeLinkedChar(const linked_char *list, StringBuffer *buf)
Write a list of strings as ' a,b,c' (leading space).
sstring title
Distinguishing name of product.