 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
15 #define W(x, n) { if (item->x) { stringbuffer_append_printf(buf, "%s" n "\n", indentItems.c_str(), item->x); } }
18 std::string indentItems(indent);
25 W(list_magic_value,
"list_magic_value %d");
26 W(list_magic_adjustment,
"list_magic_adjustment %d");
28 W(change_arch.name,
"change_name %s");
29 W(change_arch.title,
"change_title %s");
30 W(change_arch.slaying,
"change_slaying %s");
53 if (
list->total_chance == 0) {
uint8_t chance
Percent chance for this item.
static void writeItem(const treasure *item, const std::string &indent, StringBuffer *buf)
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
Plugin animator file specs[Config] name
treasurelist represents one logical group of items to be generated together.
virtual void write(const treasurelist *list, StringBuffer *buf)
Write the specified asset to the StringBuffer.
struct archetype * item
Which item this link can be.
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Append a string to a string buffer instance.
treasure * next
Next treasure-item in a linked list.
A buffer that will be expanded as content is added to it.
treasure * next_yes
If this item was generated, use this link instead of ->next.
treasure * next_no
If this item was not generated, then continue here.
sstring name
More definite name, like "generate_kobold".
treasure is one element in a linked list, which together consist of a complete treasure-list.
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
This is one artifact, ie one special item.