Crossfire Client, Trunk  R18666
Data Fields
Spell_struct Struct Reference

#include <client.h>

Collaboration diagram for Spell_struct:
Collaboration graph
[legend]

Data Fields

struct Spell_structnext
char name [256]
char message [10000]
uint32 tag
uint16 level
uint16 time
uint16 sp
uint16 grace
uint16 dam
uint8 skill_number
char * skill
uint32 path
sint32 face
uint8 usage
char requirements [256]

Detailed Description

Definition at line 277 of file client.h.


Field Documentation

Damage done by spell though the meaning is spell dependent and actual damage may depend on how the spell works.

Definition at line 288 of file client.h.

A face ID that may be used to show a graphic representation of the spell.

Definition at line 302 of file client.h.

Grace per cast; may be zero.

Definition at line 287 of file client.h.

The casting level of the spell.

Definition at line 284 of file client.h.

char message[10000]

This is huge, the packets can't be much bigger than this anyway

Definition at line 280 of file client.h.

char name[256]

One length byte plus data

Definition at line 279 of file client.h.

struct Spell_struct* next

Definition at line 278 of file client.h.

The bitmask of paths this spell belongs to. See request_info spell_paths and stats about attunement, repulsion, etc.

Definition at line 298 of file client.h.

char requirements[256]

Spellmon 2 data. One length byte plus data. If the spell requires items to be cast, this is a list of req'd items. Comma-separated, number of items, singular names (like ingredients for alchemy).

Definition at line 310 of file client.h.

char* skill

Pointer to the skill name, derived from the skill number.

Definition at line 296 of file client.h.

The index in the skill arrays, plus CS_STAT_SKILLINFO. 0: no skill used for cast. See also: request_info skill_info

Definition at line 292 of file client.h.

Mana per cast; may be zero.

Definition at line 286 of file client.h.

Unique ID number for a spell so updspell etc can operate on it.

Definition at line 282 of file client.h.

Casting time in server ticks.

Definition at line 285 of file client.h.

Spellmon 2 data. Values are: 0: No argument required. 1: Requires other spell name. 2: Freeform string is optional. 3: Freeform string is required.

Definition at line 305 of file client.h.


The documentation for this struct was generated from the following file: