npcs.xsd 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:complexType name="drop_list_item">
  4. <xs:attribute name="id" type="xs:positiveInteger" use="required" />
  5. <xs:attribute name="min" type="xs:nonNegativeInteger" />
  6. <xs:attribute name="max" type="xs:positiveInteger" />
  7. <xs:attribute name="chance" type="xs:decimal" />
  8. </xs:complexType>
  9. <xs:complexType name="drop_list">
  10. <xs:choice minOccurs="1" maxOccurs="unbounded">
  11. <xs:element name="item" type="drop_list_item" />
  12. <xs:element name="group">
  13. <xs:complexType>
  14. <xs:sequence>
  15. <xs:element name="item" type="drop_list_item" minOccurs="1" maxOccurs="unbounded" />
  16. </xs:sequence>
  17. <xs:attribute name="chance" type="xs:decimal" />
  18. </xs:complexType>
  19. </xs:element>
  20. </xs:choice>
  21. </xs:complexType>
  22. <xs:element name="list">
  23. <xs:complexType>
  24. <xs:sequence>
  25. <xs:element name="npc" minOccurs="1" maxOccurs="unbounded">
  26. <xs:complexType>
  27. <xs:all>
  28. <xs:element name="parameters" minOccurs="0" maxOccurs="1">
  29. <xs:complexType>
  30. <xs:choice minOccurs="1" maxOccurs="unbounded">
  31. <xs:element name="param">
  32. <xs:complexType>
  33. <xs:attribute name="name" type="xs:token" use="required" />
  34. <xs:attribute name="value" type="xs:string" use="required" />
  35. </xs:complexType>
  36. </xs:element>
  37. <xs:element name="skill">
  38. <xs:complexType>
  39. <xs:attribute name="name" type="xs:token" use="required" />
  40. <xs:attribute name="id" type="xs:positiveInteger" use="required" />
  41. <xs:attribute name="level" type="xs:positiveInteger" use="required" />
  42. </xs:complexType>
  43. </xs:element>
  44. <xs:element name="minions">
  45. <xs:complexType>
  46. <xs:sequence>
  47. <xs:element name="npc" minOccurs="1" maxOccurs="unbounded">
  48. <xs:complexType>
  49. <xs:attribute name="id" type="xs:positiveInteger" use="required" />
  50. <xs:attribute name="count" type="xs:positiveInteger" use="required" />
  51. <xs:attribute name="respawnTime" type="xs:nonNegativeInteger" use="required"/>
  52. <xs:attribute name="weightPoint" type="xs:integer" use="required" />
  53. </xs:complexType>
  54. </xs:element>
  55. </xs:sequence>
  56. <xs:attribute name="name" type="xs:token" use="required" />
  57. </xs:complexType>
  58. </xs:element>
  59. </xs:choice>
  60. </xs:complexType>
  61. </xs:element>
  62. <xs:element name="race" type="xs:token" minOccurs="0" maxOccurs="1" />
  63. <xs:element name="sex" type="xs:token" minOccurs="0" maxOccurs="1" />
  64. <xs:element name="equipment" minOccurs="0" maxOccurs="1">
  65. <xs:complexType>
  66. <xs:attribute name="chest" type="xs:nonNegativeInteger" />
  67. <xs:attribute name="rhand" type="xs:nonNegativeInteger" />
  68. <xs:attribute name="lhand" type="xs:nonNegativeInteger" />
  69. <xs:attribute name="weaponEnchant" type="xs:nonNegativeInteger" />
  70. </xs:complexType>
  71. </xs:element>
  72. <xs:element name="acquire" minOccurs="0" maxOccurs="1">
  73. <xs:complexType>
  74. <xs:attribute name="expRate" type="xs:decimal" />
  75. <xs:attribute name="sp" type="xs:decimal" />
  76. <xs:attribute name="raidPoints" type="xs:decimal" />
  77. </xs:complexType>
  78. </xs:element>
  79. <xs:element name="stats" minOccurs="0" maxOccurs="1">
  80. <xs:complexType>
  81. <xs:all>
  82. <xs:element name="vitals" minOccurs="0" maxOccurs="1">
  83. <xs:complexType>
  84. <xs:attribute name="hp" type="xs:decimal" />
  85. <xs:attribute name="hpRegen" type="xs:decimal" />
  86. <xs:attribute name="mp" type="xs:decimal" />
  87. <xs:attribute name="mpRegen" type="xs:decimal" />
  88. </xs:complexType>
  89. </xs:element>
  90. <xs:element name="attack" minOccurs="0" maxOccurs="1">
  91. <xs:complexType>
  92. <xs:attribute name="physical" type="xs:decimal" />
  93. <xs:attribute name="magical" type="xs:decimal" />
  94. <xs:attribute name="random" type="xs:nonNegativeInteger" />
  95. <xs:attribute name="critical" type="xs:nonNegativeInteger" />
  96. <xs:attribute name="accuracy" type="xs:decimal" />
  97. <xs:attribute name="attackSpeed" type="xs:nonNegativeInteger" />
  98. <xs:attribute name="reuseDelay" type="xs:nonNegativeInteger" />
  99. <xs:attribute name="type" type="xs:token" />
  100. <xs:attribute name="range" type="xs:nonNegativeInteger" />
  101. <xs:attribute name="distance" type="xs:nonNegativeInteger" />
  102. <xs:attribute name="width" type="xs:nonNegativeInteger" />
  103. </xs:complexType>
  104. </xs:element>
  105. <xs:element name="defence" minOccurs="0" maxOccurs="1">
  106. <xs:complexType>
  107. <xs:attribute name="physical" type="xs:decimal" />
  108. <xs:attribute name="magical" type="xs:decimal" />
  109. <xs:attribute name="evasion" type="xs:integer" />
  110. <xs:attribute name="shield" type="xs:nonNegativeInteger" />
  111. <xs:attribute name="shieldRate" type="xs:nonNegativeInteger" />
  112. </xs:complexType>
  113. </xs:element>
  114. <xs:element name="attribute" minOccurs="0" maxOccurs="1">
  115. <xs:complexType>
  116. <xs:all>
  117. <xs:element name="attack" minOccurs="0" maxOccurs="1">
  118. <xs:complexType>
  119. <xs:attribute name="type" type="xs:token" />
  120. <xs:attribute name="value" type="xs:nonNegativeInteger" />
  121. </xs:complexType>
  122. </xs:element>
  123. <xs:element name="defence" minOccurs="0" maxOccurs="1">
  124. <xs:complexType>
  125. <xs:attribute name="fire" type="xs:integer" />
  126. <xs:attribute name="water" type="xs:integer" />
  127. <xs:attribute name="wind" type="xs:integer" />
  128. <xs:attribute name="earth" type="xs:integer" />
  129. <xs:attribute name="holy" type="xs:integer" />
  130. <xs:attribute name="dark" type="xs:integer" />
  131. <xs:attribute name="default" type="xs:integer" />
  132. </xs:complexType>
  133. </xs:element>
  134. </xs:all>
  135. </xs:complexType>
  136. </xs:element>
  137. <xs:element name="speed" minOccurs="0" maxOccurs="1">
  138. <xs:complexType>
  139. <xs:all>
  140. <xs:element name="walk" minOccurs="0" maxOccurs="1">
  141. <xs:complexType>
  142. <xs:attribute name="ground" type="xs:decimal" />
  143. <xs:attribute name="swim" type="xs:decimal" />
  144. <xs:attribute name="fly" type="xs:decimal" />
  145. </xs:complexType>
  146. </xs:element>
  147. <xs:element name="run" minOccurs="0" maxOccurs="1">
  148. <xs:complexType>
  149. <xs:attribute name="ground" type="xs:decimal" />
  150. <xs:attribute name="swim" type="xs:decimal" />
  151. <xs:attribute name="fly" type="xs:decimal" />
  152. </xs:complexType>
  153. </xs:element>
  154. </xs:all>
  155. </xs:complexType>
  156. </xs:element>
  157. <xs:element name="hit_time" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1" />
  158. </xs:all>
  159. <xs:attribute name="str" type="xs:nonNegativeInteger" />
  160. <xs:attribute name="int" type="xs:nonNegativeInteger" />
  161. <xs:attribute name="dex" type="xs:nonNegativeInteger" />
  162. <xs:attribute name="wit" type="xs:nonNegativeInteger" />
  163. <xs:attribute name="con" type="xs:nonNegativeInteger" />
  164. <xs:attribute name="men" type="xs:nonNegativeInteger" />
  165. </xs:complexType>
  166. </xs:element>
  167. <xs:element name="status" minOccurs="0" maxOccurs="1">
  168. <xs:complexType>
  169. <xs:attribute name="unique" type="xs:boolean" />
  170. <xs:attribute name="attackable" type="xs:boolean" />
  171. <xs:attribute name="targetable" type="xs:boolean" />
  172. <xs:attribute name="undying" type="xs:boolean" />
  173. <xs:attribute name="showName" type="xs:boolean" />
  174. <xs:attribute name="flying" type="xs:boolean" />
  175. <xs:attribute name="canMove" type="xs:boolean" />
  176. <xs:attribute name="noSleepMode" type="xs:boolean" />
  177. <xs:attribute name="passableDoor" type="xs:boolean" />
  178. <xs:attribute name="hasSummoner" type="xs:boolean" />
  179. <xs:attribute name="canBeSown" type="xs:boolean" />
  180. </xs:complexType>
  181. </xs:element>
  182. <xs:element name="skill_list" minOccurs="0" maxOccurs="1">
  183. <xs:complexType>
  184. <xs:sequence>
  185. <xs:element name="skill" minOccurs="1" maxOccurs="unbounded">
  186. <xs:complexType>
  187. <xs:attribute name="id" type="xs:nonNegativeInteger" use="required" />
  188. <xs:attribute name="level" type="xs:nonNegativeInteger" use="required" />
  189. </xs:complexType>
  190. </xs:element>
  191. </xs:sequence>
  192. </xs:complexType>
  193. </xs:element>
  194. <xs:element name="shots" minOccurs="0" maxOccurs="1">
  195. <xs:complexType>
  196. <xs:attribute name="soul" type="xs:nonNegativeInteger" />
  197. <xs:attribute name="spirit" type="xs:nonNegativeInteger" />
  198. <xs:attribute name="shotChance" type="xs:nonNegativeInteger" />
  199. <xs:attribute name="spiritChance" type="xs:nonNegativeInteger" />
  200. </xs:complexType>
  201. </xs:element>
  202. <xs:element name="corpse_time" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1" />
  203. <xs:element name="ex_crt_effect" type="xs:boolean" minOccurs="0" maxOccurs="1" />
  204. <xs:element name="s_npc_prop_hp_rate" type="xs:decimal" minOccurs="0" maxOccurs="1" />
  205. <xs:element name="ai" minOccurs="0" maxOccurs="1">
  206. <xs:complexType>
  207. <xs:all>
  208. <xs:element name="skill" minOccurs="0" maxOccurs="1">
  209. <xs:complexType>
  210. <xs:attribute name="minChance" type="xs:nonNegativeInteger" />
  211. <xs:attribute name="maxChance" type="xs:nonNegativeInteger" />
  212. <xs:attribute name="primaryId" type="xs:nonNegativeInteger" />
  213. <xs:attribute name="shortRangeId" type="xs:nonNegativeInteger" />
  214. <xs:attribute name="shortRangeChance" type="xs:nonNegativeInteger" />
  215. <xs:attribute name="longRangeId" type="xs:nonNegativeInteger" />
  216. <xs:attribute name="longRangeChance" type="xs:nonNegativeInteger" />
  217. </xs:complexType>
  218. </xs:element>
  219. <xs:element name="clan_list" minOccurs="0" maxOccurs="1">
  220. <xs:complexType>
  221. <xs:choice minOccurs="1" maxOccurs="unbounded">
  222. <xs:element name="clan" type="xs:token" />
  223. <xs:element name="ignore_npc_id" type="xs:nonNegativeInteger" />
  224. </xs:choice>
  225. </xs:complexType>
  226. </xs:element>
  227. </xs:all>
  228. <xs:attribute name="type" type="xs:token" />
  229. <xs:attribute name="aggroRange" type="xs:nonNegativeInteger" />
  230. <xs:attribute name="clanHelpRange" type="xs:nonNegativeInteger" />
  231. <xs:attribute name="dodge" type="xs:nonNegativeInteger" />
  232. <xs:attribute name="isChaos" type="xs:boolean" />
  233. <xs:attribute name="isAggressive" type="xs:boolean" />
  234. </xs:complexType>
  235. </xs:element>
  236. <xs:element name="drop_lists" minOccurs="0" maxOccurs="1">
  237. <xs:complexType>
  238. <xs:all>
  239. <xs:element name="death" type="drop_list" minOccurs="0" maxOccurs="1" />
  240. <xs:element name="corpse" type="drop_list" minOccurs="0" maxOccurs="1" />
  241. </xs:all>
  242. </xs:complexType>
  243. </xs:element>
  244. <xs:element name="collision" minOccurs="0" maxOccurs="1">
  245. <xs:complexType>
  246. <xs:all>
  247. <xs:element name="radius" minOccurs="0" maxOccurs="1">
  248. <xs:complexType>
  249. <xs:attribute name="normal" type="xs:decimal" />
  250. <xs:attribute name="grown" type="xs:decimal" />
  251. </xs:complexType>
  252. </xs:element>
  253. <xs:element name="height" minOccurs="0" maxOccurs="1">
  254. <xs:complexType>
  255. <xs:attribute name="normal" type="xs:decimal" />
  256. <xs:attribute name="grown" type="xs:decimal" />
  257. </xs:complexType>
  258. </xs:element>
  259. </xs:all>
  260. </xs:complexType>
  261. </xs:element>
  262. </xs:all>
  263. <xs:attribute name="id" type="xs:positiveInteger" use="required" />
  264. <xs:attribute name="displayId" type="xs:positiveInteger" />
  265. <xs:attribute name="level" type="xs:byte" />
  266. <xs:attribute name="type" type="xs:token" />
  267. <xs:attribute name="name" type="xs:string" />
  268. <xs:attribute name="usingServerSideName" type="xs:boolean" />
  269. <xs:attribute name="title" type="xs:string" />
  270. <xs:attribute name="usingServerSideTitle" type="xs:boolean" />
  271. </xs:complexType>
  272. </xs:element>
  273. </xs:sequence>
  274. </xs:complexType>
  275. </xs:element>
  276. </xs:schema>