![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
A npc template. More...
Public Member Functions | |
NpcTemplate (DBNpcTemplate data) | |
Constructs a new NpcTemplate. | |
NpcTemplate (GameNPC mob) | |
virtual void | SaveIntoDatabase () |
Protected Member Functions | |
int | GetNextFreeTemplateId () |
Protected Attributes | |
int | m_templateId |
string | m_name |
string | m_classType |
string | m_guildName |
string | m_model |
string | m_size |
string | m_level |
string | m_equipmentTemplateID |
string | m_itemsListTemplateID |
short | m_maxSpeed |
byte | m_parryChance |
byte | m_evadeChance |
byte | m_blockChance |
byte | m_leftHandSwingChance |
ushort | m_flags |
string | m_inventory |
eDamageType | m_meleeDamageType |
int | m_strength |
int | m_constitution |
int | m_dexterity |
int | m_quickness |
int | m_piety |
int | m_intelligence |
int | m_empathy |
int | m_charisma |
IList | m_styles |
IList | m_spells |
IList | m_spelllines |
IList | m_abilities |
byte | m_aggroLevel |
int | m_aggroRange |
ushort | m_race |
ushort | m_bodyType |
int | m_maxdistance |
int | m_tetherRange |
int | m_replaceMobValues |
byte | m_visibleActiveWeaponSlot |
Properties | |
int | TemplateId [get, set] |
Gets the npc template ID. | |
string | Name [get, set] |
Gets the template npc name. | |
string | ClassType [get, set] |
Gets the template npc class type. | |
string | GuildName [get, set] |
Gets the template npc guild name. | |
string | Model [get, set] |
Gets the template npc model. | |
string | Size [get, set] |
Gets the template npc size. | |
string | Level [get, set] |
string | EquipmentTemplateID [get, set] |
string | ItemsListTemplateID [get, set] |
List of items sold by this npc. | |
short | MaxSpeed [get, set] |
Gets the template npc max speed. | |
ushort | Flags [get, set] |
Gets the template npc flags. | |
string | Inventory [get, set] |
Gets the template npc inventory. | |
eDamageType | MeleeDamageType [get, set] |
Gets the template npc melee damage type. | |
byte | ParryChance [get, set] |
Gets the template npc parry chance. | |
byte | EvadeChance [get, set] |
Gets the template npc evade chance. | |
byte | BlockChance [get, set] |
Gets the template npc block chance. | |
byte | LeftHandSwingChance [get, set] |
Gets the template npc left hand swing chance. | |
IList | Spells [get, set] |
Gets the template npc spells name array. | |
IList | Styles [get, set] |
Gets the template npc styles name array. | |
IList | SpellLines [get, set] |
Gets the template npc spellLines. | |
IList | Abilities [get, set] |
int | Strength [get, set] |
Gets the template npc stats /summary> | |
int | Constitution [get, set] |
int | Dexterity [get, set] |
int | Quickness [get, set] |
int | Piety [get, set] |
int | Intelligence [get, set] |
int | Empathy [get, set] |
int | Charisma [get, set] |
byte | AggroLevel [get, set] |
Gets the template npc aggro values. | |
int | AggroRange [get, set] |
ushort | Race [get, set] |
ushort | BodyType [get, set] |
int | MaxDistance [get, set] |
The Mob's max distance from its spawn before return automatically if MaxDistance > 0 ... the amount is the normal value if MaxDistance = 0 ... no maxdistance check if MaxDistance less than 0 ... the amount is calculated in procent of the value and the aggrorange (in StandardMobBrain) | |
int | TetherRange [get, set] |
The mob's tether range; if mob is pulled farther than this distance it will return to its spawn point. if TetherRange > 0 ... the amount is the normal value if TetherRange less or equal 0 ... no tether check. | |
int | ReplaceMobValues [get, set] |
Should we get this template values as reference or mob's one ? | |
byte | VisibleActiveWeaponSlot [get, set] |
The visible and active weapon slot. |
A npc template.
DOL.GS.NpcTemplate.NpcTemplate | ( | DBNpcTemplate | data | ) |
Constructs a new NpcTemplate.
data | The source npc template data |
byte DOL.GS.NpcTemplate.AggroLevel [get, set] |
Gets the template npc aggro values.
Implements DOL.GS.INpcTemplate.
byte DOL.GS.NpcTemplate.BlockChance [get, set] |
Gets the template npc block chance.
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.ClassType [get, set] |
Gets the template npc class type.
Implements DOL.GS.INpcTemplate.
byte DOL.GS.NpcTemplate.EvadeChance [get, set] |
Gets the template npc evade chance.
Implements DOL.GS.INpcTemplate.
ushort DOL.GS.NpcTemplate.Flags [get, set] |
Gets the template npc flags.
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.GuildName [get, set] |
Gets the template npc guild name.
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.Inventory [get, set] |
Gets the template npc inventory.
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.ItemsListTemplateID [get, set] |
List of items sold by this npc.
Implements DOL.GS.INpcTemplate.
byte DOL.GS.NpcTemplate.LeftHandSwingChance [get, set] |
Gets the template npc left hand swing chance.
Implements DOL.GS.INpcTemplate.
int DOL.GS.NpcTemplate.MaxDistance [get, set] |
The Mob's max distance from its spawn before return automatically if MaxDistance > 0 ... the amount is the normal value if MaxDistance = 0 ... no maxdistance check if MaxDistance less than 0 ... the amount is calculated in procent of the value and the aggrorange (in StandardMobBrain)
Implements DOL.GS.INpcTemplate.
short DOL.GS.NpcTemplate.MaxSpeed [get, set] |
Gets the template npc max speed.
Implements DOL.GS.INpcTemplate.
eDamageType DOL.GS.NpcTemplate.MeleeDamageType [get, set] |
Gets the template npc melee damage type.
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.Model [get, set] |
Gets the template npc model.
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.Name [get, set] |
Gets the template npc name.
Implements DOL.GS.INpcTemplate.
byte DOL.GS.NpcTemplate.ParryChance [get, set] |
Gets the template npc parry chance.
Implements DOL.GS.INpcTemplate.
int DOL.GS.NpcTemplate.ReplaceMobValues [get, set] |
Should we get this template values as reference or mob's one ?
Implements DOL.GS.INpcTemplate.
string DOL.GS.NpcTemplate.Size [get, set] |
Gets the template npc size.
Implements DOL.GS.INpcTemplate.
IList DOL.GS.NpcTemplate.SpellLines [get, set] |
Gets the template npc spellLines.
summary> Gets the template npc Abilities /summary>
Implements DOL.GS.INpcTemplate.
IList DOL.GS.NpcTemplate.Spells [get, set] |
Gets the template npc spells name array.
Implements DOL.GS.INpcTemplate.
IList DOL.GS.NpcTemplate.Styles [get, set] |
Gets the template npc styles name array.
Implements DOL.GS.INpcTemplate.
int DOL.GS.NpcTemplate.TemplateId [get, set] |
Gets the npc template ID.
Implements DOL.GS.INpcTemplate.
int DOL.GS.NpcTemplate.TetherRange [get, set] |
The mob's tether range; if mob is pulled farther than this distance it will return to its spawn point. if TetherRange > 0 ... the amount is the normal value if TetherRange less or equal 0 ... no tether check.
Implements DOL.GS.INpcTemplate.
byte DOL.GS.NpcTemplate.VisibleActiveWeaponSlot [get, set] |
The visible and active weapon slot.
Implements DOL.GS.INpcTemplate.