spells.h
./spells.h · 1.4 KB
From the archive guild.tar.gz
Download the archive « Back to the archive contents
#define SPELLS "players/auronthas/spells/spells"
#define SPELLDIR "/players/auronthas/spells/"
#define QSP query_spell_points()
#define HOMEDIR "players/auronthas/"
#define LEARN_UNKNOWN 0
#define LEARN_ALREADY_KNOWN 1
#define LEARN_SUCCESS 2
#define LEARN_NOT_ALLOWED 3
/* This one's coming ASAP though...
*/
#define NOT_SKILLS_YET
/* The schools of magic in integer format.. :)
*/
#define DARK 0
#define DIVI 1
#define ELEM 2
#define ENCH 3
#define HEAL 4
#define ILLU 5
#define NECR 6
#define PROT 7
#define SUMM 8
/* These defines are for the elements in the spell_info array:
*/
#define SP_NAME 0
#define SP_ABBR 1
#define SP_DURATION 2
#define SP_COST 3
#define SP_SCHOOL 4
#define SP_LEVEL 5
/* Define how to get a player's skill in types of magic.
*/
#ifdef NOT_SKILLS_YET
#define SK_ENCH TP->QINT
#define SK_ELEM TP->QINT
#define SK_PROT TP->QINT
#define SK_NECR TP->QINT
#define SK_ILLU TP->QINT
#define SK_DARK TP->QINT
#define SK_DIVI TP->QINT
#define SK_SUMM TP->QINT
#define SK_HEAL TP->QINT
#else
#define SK_ENCH query_skill("enchantment magic")
#define SK_ELEM query_skill("elemental magic")
#define SK_PROT query_skill("protection magic")
#define SK_NECR query_skill("necromancy")
#define SK_ILLU query_skill("illusions")
#define SK_DARK query_skill("dark arts")
#define SK_DIVI query_skill("divination")
#define SK_SUMM query_skill("summoning")
#define SK_HEAL query_skill("healing magic")
#endif