Skip to content

XML unit_npcdata

riyu edited this page Nov 5, 2026 · 5 revisions

XML unit npcdata

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)

Element nesting

Reconstructed from FirstChild* / NextSibling* chains. A leading $name marks a loop/helper variable that could not be resolved to a literal.

  • additionalEffect
  • capsule
  • collision
  • corpse
  • dead
  • distance
  • dropiteminfo
  • interact
  • model
  • normal
  • push
  • skill
  • stat

Element (function parameter / root)

Attribute C++ type Field Default Enum Reader Line
id unsigned m_nId Load
0x1406cade0
773
stringID CStringA m_strStringId LoadXml
0x1406cae60
1449
friendly int m_nFriendly LoadXml
0x1406cae60
1450
npcAttackGroup int m_nAttackGroup LoadXml
0x1406cae60
1451
npcDefenseGroup int m_nDefenseGroup LoadXml
0x1406cae60
1452
kind int m_nKind LoadXml
0x1406cae60
1453
shopId unsigned m_nShopId LoadXml
0x1406cae60
1454
minimap bool m_bMinimap LoadXml
0x1406cae60
1455
defenceMaterial int m_nDefenceMaterial LoadXml
0x1406cae60
1456
hitImmune int m_nHitImmune LoadXml
0x1406cae60
1457
abnormalImmune int m_nAbnormalImmune LoadXml
0x1406cae60
1458
level unsigned
short
m_nLevel LoadXml
0x1406cae60
1459
rotationDisabled bool m_bRotationDisabled LoadXml
0x1406cae60
1461
carePathToEnemy bool m_bCarePathToEnemy LoadXml
0x1406cae60
1462
rankIcon CStringA m_strRankIcon LoadXml
0x1406cae60
1463
talkAni bool m_bTalkAni LoadXml
0x1406cae60
1464
damagedColorScale float m_fDamagedColorScale LoadXml
0x1406cae60
1465
damagedVibrateDuration float m_fDamagedVibrateDuration LoadXml
0x1406cae60
1466
damagedVibrateAmp float m_fDamagedVibrateAmp LoadXml
0x1406cae60
1467
portrait CStringA m_strPortrait LoadXml
0x1406cae60
1468
checkCameraDistance float m_fCheckCameraDistance LoadXml
0x1406cae60
1469
extraCameraDistance float m_fExtraCameraDistance LoadXml
0x1406cae60
1470
bossSoundDistance float m_fBossSoundDistance LoadXml
0x1406cae60
1471
bossSoundEndDistance float m_fBossSoundEndDistance LoadXml
0x1406cae60
1472
bossNotify bool m_bBossNotify LoadXml
0x1406cae60
1492
emotionID unsigned m_nEmotionId LoadXml
0x1406cae60
1493
installNpc bool m_bInstallNpc LoadXml
0x1406cae60
1494
customExp __int64 m_nCustomExp LoadXml
0x1406cae60
1496
lookAtMyPCWhenTalking bool m_bLookAtMyPCWhenTalking LoadXml
0x1406cae60
1497
useTalkMotion bool m_bUseTalkMotion LoadXml
0x1406cae60
1498
targetNode CStringA m_strTargetNode LoadXml
0x1406cae60
1622
volume efd::Point3 m_vVolume LoadXml
0x1406cae60
1623
offset efd::Point3 m_vOffset LoadXml
0x1406cae60
1624
volume efd::Point3 m_vVolume LoadXml
0x1406cae60
1634
offset efd::Point3 m_vOffset LoadXml
0x1406cae60
1635

Element additionalEffect

Attribute C++ type Field Default Enum Reader Line
codes CString strCodes (empty) LoadXml
0x1406cae60
1575
levels CString strLevels (empty) LoadXml
0x1406cae60
1577
group CString strGroup (empty) LoadXml
0x1406cae60
1579
rewardCodes CString strRewardCodes (empty) LoadXml
0x1406cae60
1591
rewardLevels CString strRewardLevels (empty) LoadXml
0x1406cae60
1593

Element capsule

Attribute C++ type Field Default Enum Reader Line
radius float m_capsule.m_fRadius LoadXml
0x1406cae60
1642
height float m_capsule.m_fHeight LoadXml
0x1406cae60
1643
ignore int m_capsule.m_nIgnore LoadXml
0x1406cae60
1644

Element collision

Attribute C++ type Field Default Enum Reader Line
shape CStringA m_collision.m_strShape LoadXml
0x1406cae60
1608
width float m_collision.m_fWidth LoadXml
0x1406cae60
1609
depth float m_collision.m_fDepth LoadXml
0x1406cae60
1610
height float m_collision.m_fHeight LoadXml
0x1406cae60
1611
widthOffset int m_collision.m_nWidthOffset LoadXml
0x1406cae60
1612
depthOffset int m_collision.m_nDepthOffset LoadXml
0x1406cae60
1613
heightOffset int m_collision.m_nHeightOffset LoadXml
0x1406cae60
1614

Element corpse

Attribute C++ type Field Default Enum Reader Line
width float m_corpse.m_shape.m_fWidth LoadXml
0x1406cae60
1712
height float m_corpse.m_shape.m_fHeight LoadXml
0x1406cae60
1713
depth float m_corpse.m_shape.m_fDepth LoadXml
0x1406cae60
1714
added float m_corpse.m_fAdded LoadXml
0x1406cae60
1715
offsetNametag float m_corpse.m_fOffsetNametag LoadXml
0x1406cae60
1716
hitAble int m_corpse.m_nHitAble LoadXml
0x1406cae60
1717
rotation ATL::
CAtlArray<
int>
m_corpse.m_aRotation LoadXml
0x1406cae60
1718
corpseEffect CStringA m_corpse.m_strCorpseEffect LoadXml
0x1406cae60
1719

Element dead

Attribute C++ type Field Default Enum Reader Line
time float m_dead.m_fTime LoadXml
0x1406cae60
1654
defaultaction ATL::
CAtlArray<
CStringA>
m_dead.m_aDefaultAction LoadXml
0x1406cae60
1655
upaction ATL::
CAtlArray<
CStringA>
m_dead.m_aUpAction LoadXml
0x1406cae60
1656
revival int m_dead.m_nRevival LoadXml
0x1406cae60
1657
count int m_dead.m_nCount LoadXml
0x1406cae60
1658
lifeTime float m_dead.m_fLifeTime LoadXml
0x1406cae60
1659
extendRoomTime unsigned
long
m_dead.m_nExtendRoomTime LoadXml
0x1406cae60
1660

Element distance

Attribute C++ type Field Default Enum Reader Line
avoid float m_distance.m_a LoadXml
0x1406cae60
1557
sight float m_distance.m_b LoadXml
0x1406cae60
1558
sightHeightUP float m_distance.m_c LoadXml
0x1406cae60
1559
sightHeightDown float m_distance.m_d LoadXml
0x1406cae60
1560
customLastSightRadius float m_distance.m_e LoadXml
0x1406cae60
1561
customLastSightHeightUp float m_distance.m_f LoadXml
0x1406cae60
1562
customLastSightHeightDown float m_distance.m_g LoadXml
0x1406cae60
1563

Element dropiteminfo

Attribute C++ type Field Default Enum Reader Line
globalDropBoxId std::
vector<
unsigned>
m_drop.m_aGlobalDropBoxId LoadXml
0x1406cae60
1698
globalDeadDropBoxId std::
vector<
unsigned>
m_drop.m_aGlobalDeadDropBoxId LoadXml
0x1406cae60
1699
individualDropBoxId std::
vector<
unsigned>
m_drop.m_aIndividualDropBoxId LoadXml
0x1406cae60
1700
globalHitDropBoxId std::
vector<
unsigned>
m_drop.m_aGlobalHitDropBoxId LoadXml
0x1406cae60
1701
individualHitDropBoxId std::
vector<
unsigned>
m_drop.m_aIndividualHitDropBoxId LoadXml
0x1406cae60
1702
dropHeight float m_drop.m_fDropHeight LoadXml
0x1406cae60
1703
dropDistanceBase float m_drop.m_fDropDistanceBase LoadXml
0x1406cae60
1704
dropDistanceRandom int m_drop.m_nDropDistanceRandom LoadXml
0x1406cae60
1705
fireVelocity float m_drop.m_fFireVelocity LoadXml
0x1406cae60
1706

Element interact

Attribute C++ type Field Default Enum Reader Line
interactFunction CStringW m_interact.m_strFunction LoadXml
0x1406cae60
1599
interactCastingAnimation CStringA m_interact.m_strCastingAnimation LoadXml
0x1406cae60
1600
interactCastingTime unsigned m_interact.m_nCastingTime LoadXml
0x1406cae60
1601
interactCoolTime unsigned m_interact.m_nCoolTime LoadXml
0x1406cae60
1602
interactIsShowCastingBar bool m_interact.m_bShowCastingBar LoadXml
0x1406cae60
1603

Element model

Attribute C++ type Field Default Enum Reader Line
kfm CString m_model.m_strKfm LoadXml
0x1406cae60
1520
scale float m_model.m_fScale LoadXml
0x1406cae60
1521
anispeed float m_model.m_fAniSpeed LoadXml
0x1406cae60
1522
spawnAlphaAnimation int m_model.m_nSpawnAlphaAnimation LoadXml
0x1406cae60
1523
offset efd::Point3 m_model.m_vOffset LoadXml
0x1406cae60
1524
shadowScale float m_fShadowScale LoadXml
0x1406cae60
1525
rotationSpeed float m_fRotationSpeed LoadXml
0x1406cae60
1526
walkSpeed float m_fWalkSpeed LoadXml
0x1406cae60
1527
runSpeed float m_fRunSpeed LoadXml
0x1406cae60
1528

Element normal

Attribute C++ type Field Default Enum Reader Line
action CString strAction (empty) LoadXml
0x1406cae60
1672
prob CString strProb (empty) LoadXml
0x1406cae60
1673
movearea int m_normal.m_nMoveArea LoadXml
0x1406cae60
1686

Element push

Attribute C++ type Field Default Enum Reader Line
back float m_push.m_fBack LoadXml
0x1406cae60
1665
up float m_push.m_fUp LoadXml
0x1406cae60
1666
knockback float m_push.m_fKnockback LoadXml
0x1406cae60
1667

Element skill

Attribute C++ type Field Default Enum Reader Line
ids std::vector<
unsigned>
m_skill.m_aIds LoadXml
0x1406cae60
1568
probs std::vector<
unsigned>
m_skill.m_aProbs LoadXml
0x1406cae60
1570

Element stat

Attribute C++ type Field Default Enum Reader Line
scaleStatRate_2 float m_stat.m_fScaleStatRate LoadXml
0x1406cae60
1541
scaleBaseTap_2 __int64 m_stat.m_nScaleBaseTap LoadXml
0x1406cae60
1542
scaleBaseDef_2 __int64 m_stat.m_nScaleBaseDef LoadXml
0x1406cae60
1543
scaleBaseSpaRate_2 float m_stat.m_fScaleBaseSpaRate LoadXml
0x1406cae60
1544
scaleStatRate_1 float m_stat.m_fScaleStatRate LoadXml
0x1406cae60
1548
scaleBaseTap_1 __int64 m_stat.m_nScaleBaseTap LoadXml
0x1406cae60
1549
scaleBaseDef_1 __int64 m_stat.m_nScaleBaseDef LoadXml
0x1406cae60
1550
scaleBaseSpaRate_1 float m_stat.m_fScaleBaseSpaRate LoadXml
0x1406cae60
1551

Clone this wiki locally