Repository navigation
XML unit_npcdata
riyu edited this page Nov 4, 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 | 106 (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 |
Load 0x1406cade0 |
773 | ||
stringID |
CStringA |
m_strStringId |
LoadXml 0x1406cae60 |
1448 | ||
friendly |
int |
m_nFriendly |
LoadXml 0x1406cae60 |
1449 | ||
npcAttackGroup |
int |
m_nAttackGroup |
LoadXml 0x1406cae60 |
1450 | ||
npcDefenseGroup |
int |
m_nDefenseGroup |
LoadXml 0x1406cae60 |
1451 | ||
kind |
int |
m_nKind |
LoadXml 0x1406cae60 |
1452 | ||
shopId |
unsigned |
m_nShopId |
LoadXml 0x1406cae60 |
1453 | ||
minimap |
bool |
m_bMinimap |
LoadXml 0x1406cae60 |
1454 | ||
defenceMaterial |
int |
m_nDefenceMaterial |
LoadXml 0x1406cae60 |
1455 | ||
hitImmune |
int |
m_nHitImmune |
LoadXml 0x1406cae60 |
1456 | ||
abnormalImmune |
int |
m_nAbnormalImmune |
LoadXml 0x1406cae60 |
1457 | ||
level |
unsigned short |
m_nLevel |
LoadXml 0x1406cae60 |
1458 | ||
rotationDisabled |
bool |
m_bRotationDisabled |
LoadXml 0x1406cae60 |
1460 | ||
carePathToEnemy |
bool |
m_bCarePathToEnemy |
LoadXml 0x1406cae60 |
1461 | ||
rankIcon |
CStringA |
m_strRankIcon |
LoadXml 0x1406cae60 |
1462 | ||
talkAni |
bool |
m_bTalkAni |
LoadXml 0x1406cae60 |
1463 | ||
damagedColorScale |
float |
m_fDamagedColorScale |
LoadXml 0x1406cae60 |
1464 | ||
damagedVibrateDuration |
float |
m_fDamagedVibrateDuration |
LoadXml 0x1406cae60 |
1465 | ||
damagedVibrateAmp |
float |
m_fDamagedVibrateAmp |
LoadXml 0x1406cae60 |
1466 | ||
portrait |
CStringA |
m_strPortrait |
LoadXml 0x1406cae60 |
1467 | ||
checkCameraDistance |
float |
m_fCheckCameraDistance |
LoadXml 0x1406cae60 |
1468 | ||
extraCameraDistance |
float |
m_fExtraCameraDistance |
LoadXml 0x1406cae60 |
1469 | ||
bossSoundDistance |
float |
m_fBossSoundDistance |
LoadXml 0x1406cae60 |
1470 | ||
bossSoundEndDistance |
float |
m_fBossSoundEndDistance |
LoadXml 0x1406cae60 |
1471 | ||
bossNotify |
bool |
m_bBossNotify |
LoadXml 0x1406cae60 |
1491 | ||
emotionID |
unsigned |
m_nEmotionId |
LoadXml 0x1406cae60 |
1492 | ||
installNpc |
bool |
m_bInstallNpc |
LoadXml 0x1406cae60 |
1493 | ||
customExp |
__int64 |
m_nCustomExp |
LoadXml 0x1406cae60 |
1495 | ||
lookAtMyPCWhenTalking |
bool |
m_bLookAtMyPCWhenTalking |
LoadXml 0x1406cae60 |
1496 | ||
useTalkMotion |
bool |
m_bUseTalkMotion |
LoadXml 0x1406cae60 |
1497 | ||
targetNode |
CStringA |
m_strTargetNode |
LoadXml 0x1406cae60 |
1621 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
codes |
CString |
strCodes |
(empty) |
LoadXml 0x1406cae60 |
1574 | |
levels |
CString |
strLevels |
(empty) |
LoadXml 0x1406cae60 |
1576 | |
group |
CString |
strGroup |
(empty) |
LoadXml 0x1406cae60 |
1578 | |
rewardCodes |
CString |
strRewardCodes |
(empty) |
LoadXml 0x1406cae60 |
1590 | |
rewardLevels |
CString |
strRewardLevels |
(empty) |
LoadXml 0x1406cae60 |
1592 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
radius |
float |
m_capsule.m_fRadius |
LoadXml 0x1406cae60 |
1641 | ||
height |
float |
m_capsule.m_fHeight |
LoadXml 0x1406cae60 |
1642 | ||
ignore |
int |
m_capsule.m_nIgnore |
LoadXml 0x1406cae60 |
1643 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
shape |
CStringA |
m_collision.m_strShape |
LoadXml 0x1406cae60 |
1607 | ||
width |
float |
m_collision.m_fWidth |
LoadXml 0x1406cae60 |
1608 | ||
depth |
float |
m_collision.m_fDepth |
LoadXml 0x1406cae60 |
1609 | ||
height |
float |
m_collision.m_fHeight |
LoadXml 0x1406cae60 |
1610 | ||
widthOffset |
int |
m_collision.m_nWidthOffset |
LoadXml 0x1406cae60 |
1611 | ||
depthOffset |
int |
m_collision.m_nDepthOffset |
LoadXml 0x1406cae60 |
1612 | ||
heightOffset |
int |
m_collision.m_nHeightOffset |
LoadXml 0x1406cae60 |
1613 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
width |
float |
m_corpse.m_shape.m_fWidth |
LoadXml 0x1406cae60 |
1711 | ||
height |
float |
m_corpse.m_shape.m_fHeight |
LoadXml 0x1406cae60 |
1712 | ||
depth |
float |
m_corpse.m_shape.m_fDepth |
LoadXml 0x1406cae60 |
1713 | ||
added |
float |
m_corpse.m_fAdded |
LoadXml 0x1406cae60 |
1714 | ||
offsetNametag |
float |
m_corpse.m_fOffsetNametag |
LoadXml 0x1406cae60 |
1715 | ||
hitAble |
int |
m_corpse.m_nHitAble |
LoadXml 0x1406cae60 |
1716 | ||
rotation |
ATL::CAtlArray<int> |
m_corpse.m_aRotation |
LoadXml 0x1406cae60 |
1717 | ||
corpseEffect |
CStringA |
m_corpse.m_strCorpseEffect |
LoadXml 0x1406cae60 |
1718 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
time |
float |
m_dead.m_fTime |
LoadXml 0x1406cae60 |
1653 | ||
defaultaction |
ATL::CAtlArray<CStringA> |
m_dead.m_aDefaultAction |
LoadXml 0x1406cae60 |
1654 | ||
upaction |
ATL::CAtlArray<CStringA> |
m_dead.m_aUpAction |
LoadXml 0x1406cae60 |
1655 | ||
revival |
int |
m_dead.m_nRevival |
LoadXml 0x1406cae60 |
1656 | ||
count |
int |
m_dead.m_nCount |
LoadXml 0x1406cae60 |
1657 | ||
lifeTime |
float |
m_dead.m_fLifeTime |
LoadXml 0x1406cae60 |
1658 | ||
extendRoomTime |
unsigned long |
m_dead.m_nExtendRoomTime |
LoadXml 0x1406cae60 |
1659 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
avoid |
float |
m_distance.m_a |
LoadXml 0x1406cae60 |
1556 | ||
sight |
float |
m_distance.m_b |
LoadXml 0x1406cae60 |
1557 | ||
sightHeightUP |
float |
m_distance.m_c |
LoadXml 0x1406cae60 |
1558 | ||
sightHeightDown |
float |
m_distance.m_d |
LoadXml 0x1406cae60 |
1559 | ||
customLastSightRadius |
float |
m_distance.m_e |
LoadXml 0x1406cae60 |
1560 | ||
customLastSightHeightUp |
float |
m_distance.m_f |
LoadXml 0x1406cae60 |
1561 | ||
customLastSightHeightDown |
float |
m_distance.m_g |
LoadXml 0x1406cae60 |
1562 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
globalDropBoxId |
std::vector<unsigned> |
m_drop.m_aGlobalDropBoxId |
LoadXml 0x1406cae60 |
1697 | ||
globalDeadDropBoxId |
std::vector<unsigned> |
m_drop.m_aGlobalDeadDropBoxId |
LoadXml 0x1406cae60 |
1698 | ||
individualDropBoxId |
std::vector<unsigned> |
m_drop.m_aIndividualDropBoxId |
LoadXml 0x1406cae60 |
1699 | ||
globalHitDropBoxId |
std::vector<unsigned> |
m_drop.m_aGlobalHitDropBoxId |
LoadXml 0x1406cae60 |
1700 | ||
individualHitDropBoxId |
std::vector<unsigned> |
m_drop.m_aIndividualHitDropBoxId |
LoadXml 0x1406cae60 |
1701 | ||
dropHeight |
float |
m_drop.m_fDropHeight |
LoadXml 0x1406cae60 |
1702 | ||
dropDistanceBase |
float |
m_drop.m_fDropDistanceBase |
LoadXml 0x1406cae60 |
1703 | ||
dropDistanceRandom |
int |
m_drop.m_nDropDistanceRandom |
LoadXml 0x1406cae60 |
1704 | ||
fireVelocity |
float |
m_drop.m_fFireVelocity |
LoadXml 0x1406cae60 |
1705 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
interactFunction |
CStringW |
m_interact.m_strFunction |
LoadXml 0x1406cae60 |
1598 | ||
interactCastingAnimation |
CStringA |
m_interact.m_strCastingAnimation |
LoadXml 0x1406cae60 |
1599 | ||
interactCastingTime |
unsigned |
m_interact.m_nCastingTime |
LoadXml 0x1406cae60 |
1600 | ||
interactCoolTime |
unsigned |
m_interact.m_nCoolTime |
LoadXml 0x1406cae60 |
1601 | ||
interactIsShowCastingBar |
bool |
m_interact.m_bShowCastingBar |
LoadXml 0x1406cae60 |
1602 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
kfm |
CString |
m_model.m_strKfm |
LoadXml 0x1406cae60 |
1519 | ||
scale |
float |
m_model.m_fScale |
LoadXml 0x1406cae60 |
1520 | ||
anispeed |
float |
m_model.m_fAniSpeed |
LoadXml 0x1406cae60 |
1521 | ||
spawnAlphaAnimation |
int |
m_model.m_nSpawnAlphaAnimation |
LoadXml 0x1406cae60 |
1522 | ||
shadowScale |
float |
m_fShadowScale |
LoadXml 0x1406cae60 |
1524 | ||
rotationSpeed |
float |
m_fRotationSpeed |
LoadXml 0x1406cae60 |
1525 | ||
walkSpeed |
float |
m_fWalkSpeed |
LoadXml 0x1406cae60 |
1526 | ||
runSpeed |
float |
m_fRunSpeed |
LoadXml 0x1406cae60 |
1527 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
action |
CString |
strAction |
(empty) |
LoadXml 0x1406cae60 |
1671 | |
prob |
CString |
strProb |
(empty) |
LoadXml 0x1406cae60 |
1672 | |
movearea |
int |
m_normal.m_nMoveArea |
LoadXml 0x1406cae60 |
1685 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
back |
float |
m_push.m_fBack |
LoadXml 0x1406cae60 |
1664 | ||
up |
float |
m_push.m_fUp |
LoadXml 0x1406cae60 |
1665 | ||
knockback |
float |
m_push.m_fKnockback |
LoadXml 0x1406cae60 |
1666 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
ids |
std::vector<unsigned> |
m_skill.m_aIds |
LoadXml 0x1406cae60 |
1567 | ||
probs |
std::vector<unsigned> |
m_skill.m_aProbs |
LoadXml 0x1406cae60 |
1569 |
| Attribute | C++ type | Field | Default | Enum | Reader | Line |
|---|---|---|---|---|---|---|
scaleStatRate_2 |
float |
m_stat.m_fScaleStatRate |
LoadXml 0x1406cae60 |
1540 | ||
scaleBaseTap_2 |
__int64 |
m_stat.m_nScaleBaseTap |
LoadXml 0x1406cae60 |
1541 | ||
scaleBaseDef_2 |
__int64 |
m_stat.m_nScaleBaseDef |
LoadXml 0x1406cae60 |
1542 | ||
scaleBaseSpaRate_2 |
float |
m_stat.m_fScaleBaseSpaRate |
LoadXml 0x1406cae60 |
1543 | ||
scaleStatRate_1 |
float |
m_stat.m_fScaleStatRate |
LoadXml 0x1406cae60 |
1547 | ||
scaleBaseTap_1 |
__int64 |
m_stat.m_nScaleBaseTap |
LoadXml 0x1406cae60 |
1548 | ||
scaleBaseDef_1 |
__int64 |
m_stat.m_nScaleBaseDef |
LoadXml 0x1406cae60 |
1549 | ||
scaleBaseSpaRate_1 |
float |
m_stat.m_fScaleBaseSpaRate |
LoadXml 0x1406cae60 |
1550 |