Repository navigation
XML unit_npcdata
riyu edited this page Nov 5, 2026
·
5 revisions
Back to XML Tables Index.
| Data file | (path passed in) |
| Source unit | src/ms2/commonfiles/npcdata.cpp |
| Loader | no single loader; readers: Load (0x1406cade0), LoadXml(0x1406cae60) |
| Category | common |
| Attributes | 111 (0 partial) |
Reconstructed from FirstChild* / NextSibling* chains. A leading $name marks a loop/helper variable that could not be resolved to a literal.
additionalEffectcapsulecollisioncorpsedeaddistancedropiteminfointeractmodelnormalpushskillstat
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
id |
unsigned |
m_nId |
Load0x1406cade0 |
773 | ||
stringID |
CStringA |
m_strStringId |
LoadXml0x1406cae60 |
1449 | ||
friendly |
int |
m_nFriendly |
LoadXml0x1406cae60 |
1450 | ||
npcAttackGroup |
int |
m_nAttackGroup |
LoadXml0x1406cae60 |
1451 | ||
npcDefenseGroup |
int |
m_nDefenseGroup |
LoadXml0x1406cae60 |
1452 | ||
kind |
int |
m_nKind |
LoadXml0x1406cae60 |
1453 | ||
shopId |
unsigned |
m_nShopId |
LoadXml0x1406cae60 |
1454 | ||
minimap |
bool |
m_bMinimap |
LoadXml0x1406cae60 |
1455 | ||
defenceMaterial |
int |
m_nDefenceMaterial |
LoadXml0x1406cae60 |
1456 | ||
hitImmune |
int |
m_nHitImmune |
LoadXml0x1406cae60 |
1457 | ||
abnormalImmune |
int |
m_nAbnormalImmune |
LoadXml0x1406cae60 |
1458 | ||
level |
unsignedshort
|
m_nLevel |
LoadXml0x1406cae60 |
1459 | ||
rotationDisabled |
bool |
m_bRotationDisabled |
LoadXml0x1406cae60 |
1461 | ||
carePathToEnemy |
bool |
m_bCarePathToEnemy |
LoadXml0x1406cae60 |
1462 | ||
rankIcon |
CStringA |
m_strRankIcon |
LoadXml0x1406cae60 |
1463 | ||
talkAni |
bool |
m_bTalkAni |
LoadXml0x1406cae60 |
1464 | ||
damagedColorScale |
float |
m_fDamagedColorScale |
LoadXml0x1406cae60 |
1465 | ||
damagedVibrateDuration |
float |
m_fDamagedVibrateDuration |
LoadXml0x1406cae60 |
1466 | ||
damagedVibrateAmp |
float |
m_fDamagedVibrateAmp |
LoadXml0x1406cae60 |
1467 | ||
portrait |
CStringA |
m_strPortrait |
LoadXml0x1406cae60 |
1468 | ||
checkCameraDistance |
float |
m_fCheckCameraDistance |
LoadXml0x1406cae60 |
1469 | ||
extraCameraDistance |
float |
m_fExtraCameraDistance |
LoadXml0x1406cae60 |
1470 | ||
bossSoundDistance |
float |
m_fBossSoundDistance |
LoadXml0x1406cae60 |
1471 | ||
bossSoundEndDistance |
float |
m_fBossSoundEndDistance |
LoadXml0x1406cae60 |
1472 | ||
bossNotify |
bool |
m_bBossNotify |
LoadXml0x1406cae60 |
1492 | ||
emotionID |
unsigned |
m_nEmotionId |
LoadXml0x1406cae60 |
1493 | ||
installNpc |
bool |
m_bInstallNpc |
LoadXml0x1406cae60 |
1494 | ||
customExp |
__int64 |
m_nCustomExp |
LoadXml0x1406cae60 |
1496 | ||
lookAtMyPCWhenTalking |
bool |
m_bLookAtMyPCWhenTalking |
LoadXml0x1406cae60 |
1497 | ||
useTalkMotion |
bool |
m_bUseTalkMotion |
LoadXml0x1406cae60 |
1498 | ||
targetNode |
CStringA |
m_strTargetNode |
LoadXml0x1406cae60 |
1622 | ||
volume |
efd::Point3 |
m_vVolume |
LoadXml0x1406cae60 |
1623 | ||
offset |
efd::Point3 |
m_vOffset |
LoadXml0x1406cae60 |
1624 | ||
volume |
efd::Point3 |
m_vVolume |
LoadXml0x1406cae60 |
1634 | ||
offset |
efd::Point3 |
m_vOffset |
LoadXml0x1406cae60 |
1635 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
codes |
CString |
strCodes |
(empty) |
LoadXml0x1406cae60 |
1575 | |
levels |
CString |
strLevels |
(empty) |
LoadXml0x1406cae60 |
1577 | |
group |
CString |
strGroup |
(empty) |
LoadXml0x1406cae60 |
1579 | |
rewardCodes |
CString |
strRewardCodes |
(empty) |
LoadXml0x1406cae60 |
1591 | |
rewardLevels |
CString |
strRewardLevels |
(empty) |
LoadXml0x1406cae60 |
1593 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
radius |
float |
m_capsule.m_fRadius |
LoadXml0x1406cae60 |
1642 | ||
height |
float |
m_capsule.m_fHeight |
LoadXml0x1406cae60 |
1643 | ||
ignore |
int |
m_capsule.m_nIgnore |
LoadXml0x1406cae60 |
1644 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
shape |
CStringA |
m_collision.m_strShape |
LoadXml0x1406cae60 |
1608 | ||
width |
float |
m_collision.m_fWidth |
LoadXml0x1406cae60 |
1609 | ||
depth |
float |
m_collision.m_fDepth |
LoadXml0x1406cae60 |
1610 | ||
height |
float |
m_collision.m_fHeight |
LoadXml0x1406cae60 |
1611 | ||
widthOffset |
int |
m_collision.m_nWidthOffset |
LoadXml0x1406cae60 |
1612 | ||
depthOffset |
int |
m_collision.m_nDepthOffset |
LoadXml0x1406cae60 |
1613 | ||
heightOffset |
int |
m_collision.m_nHeightOffset |
LoadXml0x1406cae60 |
1614 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
width |
float |
m_corpse.m_shape.m_fWidth |
LoadXml0x1406cae60 |
1712 | ||
height |
float |
m_corpse.m_shape.m_fHeight |
LoadXml0x1406cae60 |
1713 | ||
depth |
float |
m_corpse.m_shape.m_fDepth |
LoadXml0x1406cae60 |
1714 | ||
added |
float |
m_corpse.m_fAdded |
LoadXml0x1406cae60 |
1715 | ||
offsetNametag |
float |
m_corpse.m_fOffsetNametag |
LoadXml0x1406cae60 |
1716 | ||
hitAble |
int |
m_corpse.m_nHitAble |
LoadXml0x1406cae60 |
1717 | ||
rotation |
ATL::CAtlArray<int>
|
m_corpse.m_aRotation |
LoadXml0x1406cae60 |
1718 | ||
corpseEffect |
CStringA |
m_corpse.m_strCorpseEffect |
LoadXml0x1406cae60 |
1719 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
time |
float |
m_dead.m_fTime |
LoadXml0x1406cae60 |
1654 | ||
defaultaction |
ATL::CAtlArray<CStringA>
|
m_dead.m_aDefaultAction |
LoadXml0x1406cae60 |
1655 | ||
upaction |
ATL::CAtlArray<CStringA>
|
m_dead.m_aUpAction |
LoadXml0x1406cae60 |
1656 | ||
revival |
int |
m_dead.m_nRevival |
LoadXml0x1406cae60 |
1657 | ||
count |
int |
m_dead.m_nCount |
LoadXml0x1406cae60 |
1658 | ||
lifeTime |
float |
m_dead.m_fLifeTime |
LoadXml0x1406cae60 |
1659 | ||
extendRoomTime |
unsignedlong
|
m_dead.m_nExtendRoomTime |
LoadXml0x1406cae60 |
1660 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
avoid |
float |
m_distance.m_a |
LoadXml0x1406cae60 |
1557 | ||
sight |
float |
m_distance.m_b |
LoadXml0x1406cae60 |
1558 | ||
sightHeightUP |
float |
m_distance.m_c |
LoadXml0x1406cae60 |
1559 | ||
sightHeightDown |
float |
m_distance.m_d |
LoadXml0x1406cae60 |
1560 | ||
customLastSightRadius |
float |
m_distance.m_e |
LoadXml0x1406cae60 |
1561 | ||
customLastSightHeightUp |
float |
m_distance.m_f |
LoadXml0x1406cae60 |
1562 | ||
customLastSightHeightDown |
float |
m_distance.m_g |
LoadXml0x1406cae60 |
1563 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
globalDropBoxId |
std::vector<unsigned>
|
m_drop.m_aGlobalDropBoxId |
LoadXml0x1406cae60 |
1698 | ||
globalDeadDropBoxId |
std::vector<unsigned>
|
m_drop.m_aGlobalDeadDropBoxId |
LoadXml0x1406cae60 |
1699 | ||
individualDropBoxId |
std::vector<unsigned>
|
m_drop.m_aIndividualDropBoxId |
LoadXml0x1406cae60 |
1700 | ||
globalHitDropBoxId |
std::vector<unsigned>
|
m_drop.m_aGlobalHitDropBoxId |
LoadXml0x1406cae60 |
1701 | ||
individualHitDropBoxId |
std::vector<unsigned>
|
m_drop.m_aIndividualHitDropBoxId |
LoadXml0x1406cae60 |
1702 | ||
dropHeight |
float |
m_drop.m_fDropHeight |
LoadXml0x1406cae60 |
1703 | ||
dropDistanceBase |
float |
m_drop.m_fDropDistanceBase |
LoadXml0x1406cae60 |
1704 | ||
dropDistanceRandom |
int |
m_drop.m_nDropDistanceRandom |
LoadXml0x1406cae60 |
1705 | ||
fireVelocity |
float |
m_drop.m_fFireVelocity |
LoadXml0x1406cae60 |
1706 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
interactFunction |
CStringW |
m_interact.m_strFunction |
LoadXml0x1406cae60 |
1599 | ||
interactCastingAnimation |
CStringA |
m_interact.m_strCastingAnimation |
LoadXml0x1406cae60 |
1600 | ||
interactCastingTime |
unsigned |
m_interact.m_nCastingTime |
LoadXml0x1406cae60 |
1601 | ||
interactCoolTime |
unsigned |
m_interact.m_nCoolTime |
LoadXml0x1406cae60 |
1602 | ||
interactIsShowCastingBar |
bool |
m_interact.m_bShowCastingBar |
LoadXml0x1406cae60 |
1603 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
kfm |
CString |
m_model.m_strKfm |
LoadXml0x1406cae60 |
1520 | ||
scale |
float |
m_model.m_fScale |
LoadXml0x1406cae60 |
1521 | ||
anispeed |
float |
m_model.m_fAniSpeed |
LoadXml0x1406cae60 |
1522 | ||
spawnAlphaAnimation |
int |
m_model.m_nSpawnAlphaAnimation |
LoadXml0x1406cae60 |
1523 | ||
offset |
efd::Point3 |
m_model.m_vOffset |
LoadXml0x1406cae60 |
1524 | ||
shadowScale |
float |
m_fShadowScale |
LoadXml0x1406cae60 |
1525 | ||
rotationSpeed |
float |
m_fRotationSpeed |
LoadXml0x1406cae60 |
1526 | ||
walkSpeed |
float |
m_fWalkSpeed |
LoadXml0x1406cae60 |
1527 | ||
runSpeed |
float |
m_fRunSpeed |
LoadXml0x1406cae60 |
1528 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
action |
CString |
strAction |
(empty) |
LoadXml0x1406cae60 |
1672 | |
prob |
CString |
strProb |
(empty) |
LoadXml0x1406cae60 |
1673 | |
movearea |
int |
m_normal.m_nMoveArea |
LoadXml0x1406cae60 |
1686 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
back |
float |
m_push.m_fBack |
LoadXml0x1406cae60 |
1665 | ||
up |
float |
m_push.m_fUp |
LoadXml0x1406cae60 |
1666 | ||
knockback |
float |
m_push.m_fKnockback |
LoadXml0x1406cae60 |
1667 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
ids |
std::vector<unsigned>
|
m_skill.m_aIds |
LoadXml0x1406cae60 |
1568 | ||
probs |
std::vector<unsigned>
|
m_skill.m_aProbs |
LoadXml0x1406cae60 |
1570 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
scaleStatRate_2 |
float |
m_stat.m_fScaleStatRate |
LoadXml0x1406cae60 |
1541 | ||
scaleBaseTap_2 |
__int64 |
m_stat.m_nScaleBaseTap |
LoadXml0x1406cae60 |
1542 | ||
scaleBaseDef_2 |
__int64 |
m_stat.m_nScaleBaseDef |
LoadXml0x1406cae60 |
1543 | ||
scaleBaseSpaRate_2 |
float |
m_stat.m_fScaleBaseSpaRate |
LoadXml0x1406cae60 |
1544 | ||
scaleStatRate_1 |
float |
m_stat.m_fScaleStatRate |
LoadXml0x1406cae60 |
1548 | ||
scaleBaseTap_1 |
__int64 |
m_stat.m_nScaleBaseTap |
LoadXml0x1406cae60 |
1549 | ||
scaleBaseDef_1 |
__int64 |
m_stat.m_nScaleBaseDef |
LoadXml0x1406cae60 |
1550 | ||
scaleBaseSpaRate_1 |
float |
m_stat.m_fScaleBaseSpaRate |
LoadXml0x1406cae60 |
1551 |