Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/magic.h File Reference

Magic Related stuff. More...

#include "nxwcommn.h"
#include "targeting.h"
#include "packets.h"
#include "menu.h"

Go to the source code of this file.

Namespaces

namespace  magic

Defines

#define SPELLFLAG_NOUSEMANA   0x1
 dont use up mana

#define SPELLFLAG_DONTCRIMINAL   0x2
 dont check criminal stuff

#define SPELLFLAG_DONTREQREAGENTS   0x4
 dont use up reagents

#define SPELLFLAG_DONTCHECKSPELLBOOK   0x8
 dont check spellbook for spell presence

#define SPELLFLAG_PARAMISSKILLTOUSE   0x10
 optional parameter is the skill to be used instead of magery

#define SPELLFLAG_PARAMISDAMAGE   0x20
 optional parameter is the damage to be done or healed

#define SPELLFLAG_PARAMISBONUS   0x20
 optional parameter is the bonus/malus to be applied

#define SPELLFLAG_PARAMISNPCNUMBER   0x20
 optional parameter is the npc to be invoked

#define SPELLFLAG_PARAMISDURATION   0x80
 optional parameter is the duration of some tempfx

#define SPELLFLAG_DONTUSEPARTICLES   0x100
 dont use UO:3D particle effects

#define SPELLFLAG_DONTREFLECT   0x200
 dont check magic reflection

#define SPELLFLAG_IGNORERESISTANCE   0x400
 dont check magic resistance

#define SPELLFLAG_IGNORETOWNLIMITS   0x800
 dont check if in town

#define SPELLFLAG_DONTCHECKSKILL   0x1000
 do not check skill

#define SPELLFLAG_SILENTSPELL   0x2000
 spell is silent

#define SPELLFLAG_IMMOBLESPELL   0x4000
 spell is immoble

#define SPELLFLAG_BONUSCHANCE   0x8000
 spell has a great chance to hit (scrolls)

#define SPELLFLAGS_NPCDEFAULT   (SPELLFLAG_DONTCRIMINAL|SPELLFLAG_DONTREQREAGENTS|SPELLFLAG_DONTCHECKSPELLBOOK|SPELLFLAG_IGNORETOWNLIMITS|SPELLFLAG_DONTCHECKSKILL)
 this is the default for NPC casting :]


Detailed Description

Magic Related stuff.


Define Documentation

#define SPELLFLAG_BONUSCHANCE   0x8000
 

spell has a great chance to hit (scrolls)

#define SPELLFLAG_DONTCHECKSKILL   0x1000
 

do not check skill

#define SPELLFLAG_DONTCHECKSPELLBOOK   0x8
 

dont check spellbook for spell presence

#define SPELLFLAG_DONTCRIMINAL   0x2
 

dont check criminal stuff

#define SPELLFLAG_DONTREFLECT   0x200
 

dont check magic reflection

#define SPELLFLAG_DONTREQREAGENTS   0x4
 

dont use up reagents

#define SPELLFLAG_DONTUSEPARTICLES   0x100
 

dont use UO:3D particle effects

#define SPELLFLAG_IGNORERESISTANCE   0x400
 

dont check magic resistance

#define SPELLFLAG_IGNORETOWNLIMITS   0x800
 

dont check if in town

#define SPELLFLAG_IMMOBLESPELL   0x4000
 

spell is immoble

#define SPELLFLAG_NOUSEMANA   0x1
 

dont use up mana

#define SPELLFLAG_PARAMISBONUS   0x20
 

optional parameter is the bonus/malus to be applied

#define SPELLFLAG_PARAMISDAMAGE   0x20
 

optional parameter is the damage to be done or healed

#define SPELLFLAG_PARAMISDURATION   0x80
 

optional parameter is the duration of some tempfx

#define SPELLFLAG_PARAMISNPCNUMBER   0x20
 

optional parameter is the npc to be invoked

#define SPELLFLAG_PARAMISSKILLTOUSE   0x10
 

optional parameter is the skill to be used instead of magery

#define SPELLFLAG_SILENTSPELL   0x2000
 

spell is silent

#define SPELLFLAGS_NPCDEFAULT   (SPELLFLAG_DONTCRIMINAL|SPELLFLAG_DONTREQREAGENTS|SPELLFLAG_DONTCHECKSPELLBOOK|SPELLFLAG_IGNORETOWNLIMITS|SPELLFLAG_DONTCHECKSKILL)
 

this is the default for NPC casting :]

SourceForge.net Logo