OpenKO Database Model
Table- and column-level documentation generated from the jsonSchema
Loading...
Searching...
No Matches
full_model::Npc Class Referenceexport
module FullModel

[K_NPC] Non-Player Character More...

Public Types

enum class  EnumType {
  Monster = 0 , Npc = 1 , Event = 2 , Unknown3 = 3 ,
  Unknown4 = 4 , Trap = 5 , RangedOrc = 6 , Unknown9 = 9
}
 Known valid values for byType.
 
using BinderType = full_binder::Npc
 

Public Member Functions

const int16_t & MapKey () const
 Returns a value for use in map keys based on the table's primary key.
 

Static Public Member Functions

static const std::string & TableName ()
 Returns the table name.
 
static const std::unordered_set< std::string > & ColumnNames ()
 Returns a set of column names for the table.
 
static const std::vector< std::string > & OrderedColumnNames ()
 Returns an ordered vector of column names for the table.
 
static const std::unordered_set< std::string > & BlobColumns ()
 Returns a set of blob column names for the table.
 
static const modelUtil::DbType DbType ()
 Returns the associated database type for the table.
 
static const std::vector< std::string > & PrimaryKey ()
 Returns the columns associated with the table's Primary Key.
 

Public Attributes

int16_t NpcId = {}
 Column [sSid]: NPC Identifier.
 
std::optional< std::string > Name
 Column [strName]: Name.
 
int16_t PictureId = {}
 Column [sPid]: Picture identifier.
 
int16_t Size = {}
 Column [sSize]: Size multiplier.
 
int32_t Weapon1 = {}
 Column [iWeapon1]: Weapon 1 ItemNum.
 
int32_t Weapon2 = {}
 Column [iWeapon2]: Weapon 2 ItemNum.
 
uint8_t Group = {}
 Column [byGroup]: Group.
 
uint8_t ActType = {}
 Column [byActType]: Act Type.
 
uint8_t Type = {}
 Column [byType]: Type.
 
uint8_t Family = {}
 Column [byFamily]: Family.
 
uint8_t Rank = {}
 Column [byRank]: Rank.
 
uint8_t Title = {}
 Column [byTitle]: Title.
 
int32_t SellingGroup = {}
 Column [iSellingGroup]: Npc selling group.
 
int16_t Level = {}
 Column [sLevel]: Level.
 
int32_t Exp = {}
 Column [iExp]: Experience granted when killed.
 
int32_t Loyalty = {}
 Column [iLoyalty]: NP granted when killed.
 
int32_t HitPoints = {}
 Column [iHpPoint]: Max health.
 
int16_t ManaPoints = {}
 Column [sMpPoint]: Max mana.
 
int16_t Attack = {}
 Column [sAtk]: TODO: Doc usage.
 
int16_t Armor = {}
 Column [sAc]: Armor.
 
int16_t HitRate = {}
 Column [sHitRate]: Attack success rate.
 
int16_t EvadeRate = {}
 Column [sEvadeRate]: Evasion Rate.
 
int16_t Damage = {}
 Column [sDamage]: Raw damage dealt.
 
int16_t AttackDelay = {}
 Column [sAttackDelay]: Time to wait between attacks.
 
uint8_t WalkSpeed = {}
 Column [bySpeed1]: Walk movement speed.
 
uint8_t RunSpeed = {}
 Column [bySpeed2]: Run movement speed.
 
int16_t StandTime = {}
 Column [sStandtime]: Delay time while in standing state.
 
int32_t Magic1 = {}
 Column [iMagic1]: Magic identifier 1.
 
int32_t Magic2 = {}
 Column [iMagic2]: Magic identifier 2.
 
int32_t Magic3 = {}
 Column [iMagic3]: Magic identifier 3.
 
int16_t FireResist = {}
 Column [sFireR]: Fire resistance.
 
int16_t ColdResist = {}
 Column [sColdR]: Cold resistance.
 
int16_t LightningResist = {}
 Column [sLightningR]: Lightning resistance.
 
int16_t MagicResist = {}
 Column [sMagicR]: Magic resistance.
 
int16_t DiseaseResist = {}
 Column [sDiseaseR]: Disease resistance.
 
int16_t PoisonResist = {}
 Column [sPoisonR]: Poison resistance.
 
int16_t LightResist = {}
 Column [sLightR]: Light resistance.
 
int16_t Bulk = {}
 Column [sBulk]: Bulk.
 
uint8_t AttackRange = {}
 Column [byAttackRange]: Attack range.
 
uint8_t SearchRange = {}
 Column [bySearchRange]: Search range.
 
uint8_t TracingRange = {}
 Column [byTracingRange]: Tracing range.
 
int32_t Money = {}
 Column [iMoney]: Coins dropped on death.
 
int16_t Item = {}
 Column [sItem]: K_MONSTER_ITEM.Index drop table reference.
 
uint8_t DirectAttack = {}
 Column [byDirectAttack]: Direct attack.
 
uint8_t MagicAttack = {}
 Column [byMagicAttack]: Magic attack.
 
uint8_t MoneyType = {}
 Column [byMoneyType]: Money type.
 

Detailed Description

[K_NPC] Non-Player Character

GAME Database - Full Library
K_NPC Non-Player Character

Member Data Documentation

◆ Type

uint8_t full_model::Npc::Type = {}

Column [byType]: Type.

See also
EnumType

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