ctrl.lua
Upload User: bjtaixing
Upload Date: 2021-01-15
Package Size: 24749k
Code Size: 39k
Category:

E-Books

Development Platform:

DOS

  1. --此文件中,凡是可能被多次执行的函数,函数名都要加上地图名前缀
  2. function config(map)
  3.     MapCanSavePos(map, 0) --设置地图是否保存角色位置(地图,坐标,方向),此设置影响该地图的所有副本
  4.     MapCanPK(map, 1) --设置地图是否可以PK,此设置影响该地图的所有副本
  5.     MapCanTeam( map, 0 )
  6.     MapType( map , 3 )
  7.     MapCopyNum(map, 1) --设置地图的副本数目,如果不调用该语句,则使用默认值1
  8.     SingleMapCopyPlyNum(map, 300)   --设置一个副本的玩家数
  9.     --MapCanTeam(map , 1)
  10.     MapCanStall(map , 0)
  11. end
  12. function get_map_entry_pos_garner2()   --设置入口的位置的坐标(坐标(米))
  13. local POS_X=1370
  14. local POS_Y=532
  15. return POS_X , POS_Y
  16. end
  17. function init_entry(map)
  18.     SetMapEntryMapName(map, "darkblue") --设置入口的位置(地图名)
  19.     SetMapEntryTime(map, "2006/10/18/0/0", "0/3/0", "0/0/30", "0/0/45") --设置入口的时间,地图对象,首次开启时间(年/月/日/时/分),以后再次开启的间隔(日/时/分,全0表示只有首次开启),每次开启到入口消失的间隔(日/时/分,全0表示永不消失),每次开启到地图关闭的间隔(日/时/分,全0表示永不关闭)。。
  20. end
  21. function after_enter_garner2( role , map_copy )
  22. end
  23. function before_leave_garner2( role )
  24. end
  25. --function map_copy_first_run_garner2( map_copy )
  26. -- lua_SetCopySpecialInter(map_copy , 10000)
  27. -- Notice("10")
  28. --
  29. --end
  30. --function map_copy_run_garner2( map_copy )
  31. ----Notice("3")
  32. --local new1 = CreateChaEx(791, 120, 120, 145, 50)
  33. -- SetChaLifeTime(new1, 900000)
  34. --
  35. --end
  36. --每5分钟秒执行1次
  37. function map_copy_run_special_garner2( map_copy ) 
  38. local HowManyNoDead = GetMapActivePlayer(map_copy)
  39. Notice("乱斗白银城中此时还存活着"..HowManyNoDead.."位玩家")
  40. Every_5_minute = Every_5_minute+1
  41. if Every_5_minute == 2 then -- 初级宝箱
  42. local Monster2 = CreateChaEx(859, 6352, 3558, 145, 60,map_copy)
  43. local Monster3 = CreateChaEx(859, 6761, 13062, 145, 60,map_copy)
  44. local Monster4 = CreateChaEx(859, 10820, 24989, 145, 60,map_copy)
  45. local Monster5 = CreateChaEx(859, 14673, 20803, 145, 60,map_copy)
  46. local Monster6 = CreateChaEx(859, 12311, 16188, 145, 60,map_copy)
  47. local Monster7 = CreateChaEx(859, 12015, 13994, 145, 60,map_copy)
  48. local Monster8 = CreateChaEx(859, 12380, 12324, 145, 60,map_copy)
  49. local Monster9 = CreateChaEx(859, 14339, 12947, 145, 60,map_copy)
  50. local Monster10 = CreateChaEx(859, 18442, 12863, 145, 60,map_copy)
  51. local Monster11 = CreateChaEx(859, 18791, 7534, 145, 60,map_copy)
  52. local Monster12 = CreateChaEx(859, 14373, 7541, 145, 60,map_copy)
  53. local Monster13 = CreateChaEx(859, 10186, 6273, 145, 60,map_copy)
  54. local Monster14 = CreateChaEx(859, 10043, 9649, 145, 60,map_copy)
  55. local Monster15 = CreateChaEx(859, 17186, 3343, 145, 60,map_copy)
  56. SetChaLifeTime(Monster2,299050)
  57. SetChaLifeTime(Monster3,299100)
  58. SetChaLifeTime(Monster4,299150)
  59. SetChaLifeTime(Monster5,299200)
  60. SetChaLifeTime(Monster6,299250)
  61. SetChaLifeTime(Monster7,299300)
  62. SetChaLifeTime(Monster8,299350)
  63. SetChaLifeTime(Monster9,299400)
  64. SetChaLifeTime(Monster10,299450)
  65. SetChaLifeTime(Monster11,299500)
  66. SetChaLifeTime(Monster12,299550)
  67. SetChaLifeTime(Monster13,299600)
  68. SetChaLifeTime(Monster14,299650)
  69. SetChaLifeTime(Monster15,299700)
  70. end
  71. if Every_5_minute == 3 then -- 中级宝箱
  72. local Monster16 = CreateChaEx(860, 11339, 24276, 145, 60,map_copy)
  73. local Monster17 = CreateChaEx(860, 13812, 18439, 145, 60,map_copy)
  74. local Monster18 = CreateChaEx(860, 15189, 6218, 145, 60,map_copy)
  75. local Monster19 = CreateChaEx(860, 16393, 12239, 145, 60,map_copy)
  76. local Monster20 = CreateChaEx(860, 14895, 13905, 145, 60,map_copy)
  77. local Monster21 = CreateChaEx(860, 12824, 12767, 145, 60,map_copy)
  78. local Monster22 = CreateChaEx(860, 10154, 11890, 145, 60,map_copy)
  79. SetChaLifeTime(Monster16, 299050)
  80. SetChaLifeTime(Monster17, 299100)
  81. SetChaLifeTime(Monster18, 299150)
  82. SetChaLifeTime(Monster19, 299200)
  83. SetChaLifeTime(Monster20, 299250)
  84. SetChaLifeTime(Monster21, 299300)
  85. SetChaLifeTime(Monster22, 299350)
  86. end
  87. if Every_5_minute == 4 then -- 高级宝箱
  88. local Monster23 = CreateChaEx(861, 12167, 25665, 145, 60,map_copy)
  89. local Monster24 = CreateChaEx(861, 13564, 23189, 145, 60,map_copy)
  90. local Monster25 = CreateChaEx(861, 18274, 13329, 145, 60,map_copy)
  91. local Monster26 = CreateChaEx(861, 19167, 9778, 145, 60,map_copy)
  92. local Monster27 = CreateChaEx(861, 14915, 14352, 145, 60,map_copy)
  93. local Monster28 = CreateChaEx(861, 13881, 9818, 145, 60,map_copy)
  94. local Monster29 = CreateChaEx(861, 10854, 11740, 145, 60,map_copy)
  95. SetChaLifeTime(Monster23, 299050)
  96. SetChaLifeTime(Monster24, 299100)
  97. SetChaLifeTime(Monster25, 299150)
  98. SetChaLifeTime(Monster26, 299200)
  99. SetChaLifeTime(Monster27, 299250)
  100. SetChaLifeTime(Monster28, 299300)
  101. SetChaLifeTime(Monster29, 299350)
  102. end
  103. if Every_5_minute == 5 then --新手
  104. local Monster30 = CreateChaEx(875, 10785, 24073, 145, 60,map_copy)
  105. local Monster31 = CreateChaEx(872, 13477, 22976, 145, 60,map_copy)
  106. local Monster32 = CreateChaEx(868, 14639, 15668, 145, 60,map_copy)
  107. local Monster33 = CreateChaEx(872, 13318, 16448, 145, 60,map_copy)
  108. local Monster34 = CreateChaEx(879, 12347, 15640, 145, 60,map_copy)
  109. local Monster35 = CreateChaEx(872, 13948, 13970, 145, 60,map_copy)
  110. local Monster36 = CreateChaEx(875, 15914, 12813, 145, 60,map_copy)
  111. local Monster37 = CreateChaEx(868, 18943, 10871, 145, 60,map_copy)
  112. local Monster38 = CreateChaEx(868, 18963, 8391, 145, 60,map_copy)
  113. local Monster39 = CreateChaEx(868, 16101, 6381, 145, 60,map_copy)
  114. local Monster40 = CreateChaEx(879, 15389, 6087, 145, 60,map_copy)
  115. local Monster41 = CreateChaEx(879, 15126, 6725, 145, 60,map_copy)
  116. local Monster42 = CreateChaEx(875, 14694, 7473, 145, 60,map_copy)
  117. local Monster43 = CreateChaEx(875, 14046, 10079, 145, 60,map_copy)
  118. local Monster44 = CreateChaEx(872, 13561, 9940, 145, 60,map_copy)
  119. local Monster45 = CreateChaEx(879, 12202, 10924, 145, 60,map_copy)
  120. local Monster46 = CreateChaEx(875, 11824, 10620, 145, 60,map_copy)
  121. local Monster47 = CreateChaEx(875, 11026, 11515, 145, 60,map_copy)
  122. local Monster48 = CreateChaEx(868, 9987, 11359, 145, 60,map_copy)
  123. local Monster49 = CreateChaEx(868, 10050, 10309, 145, 60,map_copy)
  124. local Monster50 = CreateChaEx(868, 10009, 8176, 145, 60,map_copy)
  125. local Monster51 = CreateChaEx(868, 12256, 6305, 145, 60,map_copy)
  126. SetChaLifeTime(Monster30,298050)
  127. SetChaLifeTime(Monster31,298100)
  128. SetChaLifeTime(Monster32,298150)
  129. SetChaLifeTime(Monster33,298200)
  130. SetChaLifeTime(Monster34,298250)
  131. SetChaLifeTime(Monster35,298300)
  132. SetChaLifeTime(Monster36,298350)
  133. SetChaLifeTime(Monster37,298400)
  134. SetChaLifeTime(Monster38,298450)
  135. SetChaLifeTime(Monster39,298500)
  136. SetChaLifeTime(Monster40,298550)
  137. SetChaLifeTime(Monster41,298600)
  138. SetChaLifeTime(Monster42,298650)
  139. SetChaLifeTime(Monster43,298700)
  140. SetChaLifeTime(Monster44,298750)
  141. SetChaLifeTime(Monster45,298800)
  142. SetChaLifeTime(Monster46,298850)
  143. SetChaLifeTime(Monster47,298900)
  144. SetChaLifeTime(Monster48,298950)
  145. SetChaLifeTime(Monster49,299000)
  146. SetChaLifeTime(Monster50,299050)
  147. SetChaLifeTime(Monster51,299100)
  148. end
  149. if Every_5_minute == 6 then -- 一转角色
  150. local Monster52 = CreateChaEx(869, 6383, 3326, 130, 60,map_copy)
  151. local Monster53 = CreateChaEx(880, 6760, 5283, 310, 60,map_copy)
  152. local Monster54 = CreateChaEx(876, 5985, 6834, 85, 60,map_copy)
  153. local Monster55 = CreateChaEx(876, 7022, 8707, 70, 60,map_copy)
  154. local Monster56 = CreateChaEx(869, 7976, 9655, 280, 60,map_copy)
  155. local Monster57 = CreateChaEx(869, 6933, 12327, 280, 60,map_copy)
  156. local Monster58 = CreateChaEx(880, 6095, 15473, 55, 60,map_copy)
  157. local Monster59 = CreateChaEx(880, 8774, 13019, 145, 60,map_copy)
  158. local Monster60 = CreateChaEx(876, 9894, 12745, 175, 60,map_copy)
  159. local Monster61 = CreateChaEx(869, 10279, 13445, 310, 60,map_copy)
  160. local Monster62 = CreateChaEx(869, 13154, 21932, 145, 60,map_copy)
  161. local Monster63 = CreateChaEx(873, 13979, 24290, 280, 60,map_copy)
  162. local Monster64 = CreateChaEx(869, 12066, 25739, 10, 60,map_copy)
  163. local Monster65 = CreateChaEx(880, 10475, 24473, 115, 60,map_copy)
  164. local Monster66 = CreateChaEx(876, 11915, 22670, 145, 60,map_copy)
  165. local Monster67 = CreateChaEx(873, 13946, 22903, 265, 60,map_copy)
  166. local Monster68 = CreateChaEx(880, 13144, 20195, 100, 60,map_copy)
  167. local Monster69 = CreateChaEx(873, 13908, 18644, 235, 60,map_copy)
  168. local Monster70 = CreateChaEx(869, 13055, 18537, 85, 60,map_copy)
  169. local Monster71 = CreateChaEx(873, 14496, 16124, 280, 60,map_copy)
  170. local Monster72 = CreateChaEx(880, 14689, 15746, 340, 60,map_copy)
  171. local Monster73 = CreateChaEx(869, 11936, 16302, 70, 60,map_copy)
  172. local Monster74 = CreateChaEx(873, 13456, 13442, 340, 60,map_copy)
  173. local Monster75 = CreateChaEx(869, 16310, 12095, 220, 60,map_copy)
  174. local Monster76 = CreateChaEx(873, 18525, 13386, 325, 60,map_copy)
  175. local Monster77 = CreateChaEx(880, 18688, 11302, 175, 60,map_copy)
  176. local Monster78 = CreateChaEx(876, 19509, 10124, 160, 60,map_copy)
  177. local Monster79 = CreateChaEx(873, 19458, 9739, 205, 60,map_copy)
  178. local Monster80 = CreateChaEx(869, 18724, 7861, 175, 60,map_copy)
  179. local Monster81 = CreateChaEx(876, 17617, 5696, 175, 60,map_copy)
  180. local Monster82 = CreateChaEx(873, 17042, 6149, 145, 60,map_copy)
  181. local Monster83 = CreateChaEx(869, 16166, 6177, 190, 60,map_copy)
  182. local Monster84 = CreateChaEx(879, 19034, 3793, 145, 60,map_copy)
  183. local Monster85 = CreateChaEx(876, 16762, 3079, 145, 60,map_copy)
  184. local Monster86 = CreateChaEx(880, 15763, 3315, 145, 60,map_copy)
  185. local Monster87 = CreateChaEx(873, 15786, 3892, 145, 60,map_copy)
  186. local Monster88 = CreateChaEx(869, 14734, 4920, 145, 60,map_copy)
  187. local Monster89 = CreateChaEx(873, 12945, 6454, 145, 60,map_copy)
  188. local Monster90 = CreateChaEx(880, 12909, 6129, 145, 60,map_copy)
  189. local Monster91 = CreateChaEx(876, 11697, 6337, 145, 60,map_copy)
  190. local Monster92 = CreateChaEx(873, 11130, 6266, 145, 60,map_copy)
  191. local Monster93 = CreateChaEx(876, 10087, 6876, 145, 60,map_copy)
  192. SetChaLifeTime(Monster52,297050)
  193. SetChaLifeTime(Monster53,297100)
  194. SetChaLifeTime(Monster54,297150)
  195. SetChaLifeTime(Monster55,297200)
  196. SetChaLifeTime(Monster56,297250)
  197. SetChaLifeTime(Monster57,297300)
  198. SetChaLifeTime(Monster58,297350)
  199. SetChaLifeTime(Monster59,297400)
  200. SetChaLifeTime(Monster60,297450)
  201. SetChaLifeTime(Monster61,297500)
  202. SetChaLifeTime(Monster62,297550)
  203. SetChaLifeTime(Monster63,297600)
  204. SetChaLifeTime(Monster64,297650)
  205. SetChaLifeTime(Monster65,297700)
  206. SetChaLifeTime(Monster66,297750)
  207. SetChaLifeTime(Monster67,297800)
  208. SetChaLifeTime(Monster68,297850)
  209. SetChaLifeTime(Monster69,297900)
  210. SetChaLifeTime(Monster70,297950)
  211. SetChaLifeTime(Monster71,298000)
  212. SetChaLifeTime(Monster72,298050)
  213. SetChaLifeTime(Monster73,298100)
  214. SetChaLifeTime(Monster74,298150)
  215. SetChaLifeTime(Monster75,298200)
  216. SetChaLifeTime(Monster76,298250)
  217. SetChaLifeTime(Monster77,298300)
  218. SetChaLifeTime(Monster78,298350)
  219. SetChaLifeTime(Monster79,298400)
  220. SetChaLifeTime(Monster80,298450)
  221. SetChaLifeTime(Monster81,298500)
  222. SetChaLifeTime(Monster82,298550)
  223. SetChaLifeTime(Monster83,298600)
  224. SetChaLifeTime(Monster84,298650)
  225. SetChaLifeTime(Monster85,298700)
  226. SetChaLifeTime(Monster86,298750)
  227. SetChaLifeTime(Monster87,298800)
  228. SetChaLifeTime(Monster88,298850)
  229. SetChaLifeTime(Monster89,298900)
  230. SetChaLifeTime(Monster90,298950)
  231. SetChaLifeTime(Monster91,299000)
  232. SetChaLifeTime(Monster92,299050)
  233. SetChaLifeTime(Monster93,299100)
  234. end
  235. if Every_5_minute == 7 then -- 二转角色
  236. local Monster94 = CreateChaEx(870, 8103, 15758, 145, 60,map_copy)
  237. local Monster95 = CreateChaEx(871, 6366, 16072, 145, 60,map_copy)
  238. local Monster96 = CreateChaEx(877, 6158, 14021, 145, 60,map_copy)
  239. local Monster97 = CreateChaEx(878, 6462, 13205, 145, 60,map_copy)
  240. local Monster98 = CreateChaEx(874, 18456, 3689, 145, 60,map_copy)
  241. local Monster99 = CreateChaEx(881, 17992, 3613, 145, 60,map_copy)
  242. local Monster100 = CreateChaEx(871, 15235, 3295, 145, 60,map_copy)
  243. local Monster101 = CreateChaEx(874, 11944, 3601, 145, 60,map_copy)
  244. local Monster102 = CreateChaEx(870, 12378, 3349, 145, 60,map_copy)
  245. local Monster103 = CreateChaEx(871, 11528, 2721, 145, 60,map_copy)
  246. local Monster104 = CreateChaEx(881, 9531, 2727, 145, 60,map_copy)
  247. local Monster105 = CreateChaEx(874, 8534, 3308, 145, 60,map_copy)
  248. local Monster106 = CreateChaEx(877, 7543, 3164, 145, 60,map_copy)
  249. local Monster107 = CreateChaEx(878, 6487, 3343, 145, 60,map_copy)
  250. local Monster108 = CreateChaEx(871, 7192, 4128, 145, 60,map_copy)
  251. local Monster109 = CreateChaEx(870, 6677, 4895, 145, 60,map_copy)
  252. local Monster110 = CreateChaEx(877, 6567, 5679, 145, 60,map_copy)
  253. local Monster111 = CreateChaEx(881, 6701, 6500, 145, 60,map_copy)
  254. local Monster112 = CreateChaEx(881, 6369, 6949, 145, 60,map_copy)
  255. local Monster113 = CreateChaEx(877, 6994, 8064, 145, 60,map_copy)
  256. local Monster114 = CreateChaEx(878, 6505, 8494, 145, 60,map_copy)
  257. local Monster115 = CreateChaEx(874, 6536, 8923, 145, 60,map_copy)
  258. local Monster116 = CreateChaEx(870, 6288, 10738, 145, 60,map_copy)
  259. local Monster117 = CreateChaEx(871, 5901, 12142, 145, 60,map_copy)
  260. local Monster118 = CreateChaEx(881, 13579, 25098, 145, 60,map_copy)
  261. local Monster119 = CreateChaEx(878, 12103, 25146, 145, 60,map_copy)
  262. local Monster120 = CreateChaEx(871, 12122, 24854, 145, 60,map_copy)
  263. local Monster121 = CreateChaEx(870, 11116, 24702, 145, 60,map_copy)
  264. local Monster122 = CreateChaEx(871, 10579, 24343, 145, 60,map_copy)
  265. local Monster123 = CreateChaEx(881, 10968, 23507, 145, 60,map_copy)
  266. local Monster124 = CreateChaEx(874, 13141, 22546, 145, 60,map_copy)
  267. local Monster125 = CreateChaEx(877, 13778, 22539, 145, 60,map_copy)
  268. local Monster126 = CreateChaEx(878, 13259, 21845, 145, 60,map_copy)
  269. local Monster127 = CreateChaEx(874, 14899, 20929, 145, 60,map_copy)
  270. local Monster128 = CreateChaEx(881, 14973, 20419, 145, 60,map_copy)
  271. local Monster129 = CreateChaEx(870, 13247, 19932, 145, 60,map_copy)
  272. local Monster130 = CreateChaEx(871, 13892, 19399, 145, 60,map_copy)
  273. local Monster131 = CreateChaEx(881, 13283, 17519, 145, 60,map_copy)
  274. local Monster132 = CreateChaEx(874, 18412, 20105, 145, 60,map_copy)
  275. local Monster133 = CreateChaEx(871, 22194, 18012, 145, 60,map_copy)
  276. local Monster134 = CreateChaEx(870, 21710, 17182, 145, 60,map_copy)
  277. local Monster135 = CreateChaEx(874, 20408, 17788, 145, 60,map_copy)
  278. local Monster136 = CreateChaEx(878, 20461, 17339, 145, 60,map_copy)
  279. local Monster137 = CreateChaEx(881, 19457, 17817, 145, 60,map_copy)
  280. local Monster138 = CreateChaEx(881, 16343, 15573, 145, 60,map_copy)
  281. local Monster139 = CreateChaEx(870, 14078, 15726, 145, 60,map_copy)
  282. local Monster140 = CreateChaEx(871, 12363, 15855, 145, 60,map_copy)
  283. local Monster141 = CreateChaEx(871, 11589, 13429, 145, 60,map_copy)
  284. local Monster142 = CreateChaEx(874, 11113, 13869, 145, 60,map_copy)
  285. local Monster143 = CreateChaEx(881, 10902, 14335, 145, 60,map_copy)
  286. local Monster144 = CreateChaEx(878, 9309, 12935, 145, 60,map_copy)
  287. local Monster145 = CreateChaEx(881, 12534, 11209, 145, 60,map_copy)
  288. local Monster146 = CreateChaEx(874, 12515, 13202, 145, 60,map_copy)
  289. local Monster147 = CreateChaEx(878, 14479, 14079, 145, 60,map_copy)
  290. local Monster148 = CreateChaEx(874, 16426, 11297, 145, 60,map_copy)
  291. local Monster149 = CreateChaEx(877, 16757, 12339, 145, 60,map_copy)
  292. local Monster150 = CreateChaEx(878, 17115, 12436, 145, 60,map_copy)
  293. local Monster151 = CreateChaEx(881, 18473, 12565, 145, 60,map_copy)
  294. local Monster152 = CreateChaEx(881, 20540, 11384, 145, 60,map_copy)
  295. local Monster153 = CreateChaEx(878, 20235, 10866, 145, 60,map_copy)
  296. local Monster154 = CreateChaEx(874, 20390, 9764, 145, 60,map_copy)
  297. local Monster155 = CreateChaEx(871, 19487, 9642, 145, 60,map_copy)
  298. local Monster156 = CreateChaEx(881, 19063, 7981, 145, 60,map_copy)
  299. local Monster157 = CreateChaEx(874, 18836, 7827, 145, 60,map_copy)
  300. local Monster158 = CreateChaEx(878, 19026, 6331, 145, 60,map_copy)
  301. local Monster159 = CreateChaEx(871, 18459, 5518, 145, 60,map_copy)
  302. local Monster160 = CreateChaEx(870, 17781, 6160, 145, 60,map_copy)
  303. local Monster161 = CreateChaEx(871, 15146, 5255, 145, 60,map_copy)
  304. local Monster162 = CreateChaEx(878, 15722, 6195, 145, 60,map_copy)
  305. local Monster163 = CreateChaEx(881, 15088, 6729, 145, 60,map_copy)
  306. local Monster164 = CreateChaEx(874, 15116, 7447, 145, 60,map_copy)
  307. local Monster165 = CreateChaEx(878, 12657, 8012, 145, 60,map_copy)
  308. local Monster166 = CreateChaEx(874, 11770, 6209, 145, 60,map_copy)
  309. local Monster167 = CreateChaEx(870, 10394, 6937, 145, 60,map_copy)
  310. SetChaLifeTime(Monster94,296050)
  311. SetChaLifeTime(Monster95,296100)
  312. SetChaLifeTime(Monster96,296150)
  313. SetChaLifeTime(Monster97,296200)
  314. SetChaLifeTime(Monster98,296250)
  315. SetChaLifeTime(Monster99,296300)
  316. SetChaLifeTime(Monster100,296350)
  317. SetChaLifeTime(Monster101,296400)
  318. SetChaLifeTime(Monster102,296450)
  319. SetChaLifeTime(Monster103,296500)
  320. SetChaLifeTime(Monster104,296550)
  321. SetChaLifeTime(Monster105,296600)
  322. SetChaLifeTime(Monster106,296650)
  323. SetChaLifeTime(Monster107,296700)
  324. SetChaLifeTime(Monster108,296750)
  325. SetChaLifeTime(Monster109,296800)
  326. SetChaLifeTime(Monster110,296850)
  327. SetChaLifeTime(Monster111,296900)
  328. SetChaLifeTime(Monster112,296950)
  329. SetChaLifeTime(Monster113,297000)
  330. SetChaLifeTime(Monster114,297050)
  331. SetChaLifeTime(Monster115,297100)
  332. SetChaLifeTime(Monster116,297150)
  333. SetChaLifeTime(Monster117,297200)
  334. SetChaLifeTime(Monster118,297250)
  335. SetChaLifeTime(Monster119,297300)
  336. SetChaLifeTime(Monster120,297350)
  337. SetChaLifeTime(Monster121,297400)
  338. SetChaLifeTime(Monster122,297450)
  339. SetChaLifeTime(Monster123,297500)
  340. SetChaLifeTime(Monster124,297550)
  341. SetChaLifeTime(Monster125,297600)
  342. SetChaLifeTime(Monster126,297650)
  343. SetChaLifeTime(Monster127,297700)
  344. SetChaLifeTime(Monster128,297750)
  345. SetChaLifeTime(Monster129,297800)
  346. SetChaLifeTime(Monster130,297850)
  347. SetChaLifeTime(Monster131,297900)
  348. SetChaLifeTime(Monster132,297950)
  349. SetChaLifeTime(Monster133,298000)
  350. SetChaLifeTime(Monster134,298050)
  351. SetChaLifeTime(Monster135,298100)
  352. SetChaLifeTime(Monster136,298150)
  353. SetChaLifeTime(Monster137,298200)
  354. SetChaLifeTime(Monster138,298250)
  355. SetChaLifeTime(Monster139,298300)
  356. SetChaLifeTime(Monster140,298350)
  357. SetChaLifeTime(Monster141,298400)
  358. SetChaLifeTime(Monster142,298450)
  359. SetChaLifeTime(Monster143,298500)
  360. SetChaLifeTime(Monster144,298550)
  361. SetChaLifeTime(Monster145,298600)
  362. SetChaLifeTime(Monster146,298650)
  363. SetChaLifeTime(Monster147,298700)
  364. SetChaLifeTime(Monster148,298750)
  365. SetChaLifeTime(Monster149,298800)
  366. SetChaLifeTime(Monster150,298850)
  367. SetChaLifeTime(Monster151,298900)
  368. SetChaLifeTime(Monster152,298950)
  369. SetChaLifeTime(Monster153,299000)
  370. SetChaLifeTime(Monster154,299050)
  371. SetChaLifeTime(Monster155,299100)
  372. SetChaLifeTime(Monster156,299150)
  373. SetChaLifeTime(Monster157,299200)
  374. SetChaLifeTime(Monster158,299250)
  375. SetChaLifeTime(Monster159,299300)
  376. SetChaLifeTime(Monster160,299350)
  377. SetChaLifeTime(Monster161,299400)
  378. SetChaLifeTime(Monster162,299450)
  379. SetChaLifeTime(Monster163,299500)
  380. SetChaLifeTime(Monster164,299550)
  381. SetChaLifeTime(Monster165,299600)
  382. SetChaLifeTime(Monster166,299650)
  383. SetChaLifeTime(Monster167,299700)
  384. end
  385. if Every_5_minute == 8 then -- 黑龙角色
  386. local Monster168 =CreateChaEx(886, 12509, 4259, 145, 60,map_copy)
  387. local Monster169 =CreateChaEx(885, 5457, 4334, 145, 60,map_copy)
  388. local Monster170 =CreateChaEx(886, 5773, 6410, 145, 60,map_copy)
  389. local Monster171 =CreateChaEx(885, 6015, 7907, 145, 60,map_copy)
  390. local Monster172 =CreateChaEx(883, 5912, 9755, 145, 60,map_copy)
  391. local Monster173 =CreateChaEx(885, 5765, 11923, 145, 60,map_copy)
  392. local Monster174 =CreateChaEx(885, 5778, 16229, 100, 60,map_copy)
  393. local Monster175 =CreateChaEx(886, 12287, 23966, 235, 60,map_copy)
  394. local Monster176 =CreateChaEx(885, 12452, 16601, 10, 60,map_copy)
  395. local Monster177 =CreateChaEx(885, 8745, 16392, 70, 60,map_copy)
  396. local Monster178 =CreateChaEx(883, 10637, 17204, 340, 60,map_copy)
  397. local Monster179 =CreateChaEx(883, 13138, 18622, 145, 60,map_copy)
  398. local Monster180 =CreateChaEx(886, 13053, 20648, 145, 60,map_copy)
  399. local Monster181 =CreateChaEx(885, 11115, 22603, 145, 60,map_copy)
  400. local Monster182 =CreateChaEx(886, 9806, 23768, 145, 60,map_copy)
  401. local Monster183 =CreateChaEx(885, 10671, 24923, 355, 60,map_copy)
  402. local Monster184 =CreateChaEx(883, 12144, 25703, 340, 60,map_copy)
  403. local Monster185 =CreateChaEx(884, 13693, 25149, 325, 60,map_copy)
  404. local Monster186 =CreateChaEx(883, 14113, 24077, 220, 60,map_copy)
  405. local Monster187 =CreateChaEx(886, 14256, 22667, 235, 60,map_copy)
  406. local Monster188 =CreateChaEx(885, 13194, 22154, 160, 60,map_copy)
  407. local Monster189 =CreateChaEx(883, 13766, 20308, 145, 60,map_copy)
  408. local Monster190 =CreateChaEx(885, 14438, 21317, 115, 60,map_copy)
  409. local Monster191 =CreateChaEx(885, 15361, 20579, 220, 60,map_copy)
  410. local Monster192 =CreateChaEx(884, 13893, 19379, 250, 60,map_copy)
  411. local Monster193 =CreateChaEx(883, 12373, 19662, 145, 60,map_copy)
  412. local Monster194 =CreateChaEx(886, 14845, 17779, 235, 60,map_copy)
  413. local Monster195 =CreateChaEx(885, 12338, 17990, 145, 60,map_copy)
  414. local Monster196 =CreateChaEx(886, 13878, 17083, 145, 60,map_copy)
  415. local Monster197 =CreateChaEx(885, 17986, 16422, 145, 60,map_copy)
  416. local Monster198 =CreateChaEx(883, 18897, 18510, 220, 60,map_copy)
  417. local Monster199 =CreateChaEx(885, 18986, 20192, 235, 60,map_copy)
  418. local Monster200 =CreateChaEx(886, 17770, 21172, 145, 60,map_copy)
  419. local Monster201 =CreateChaEx(885, 17749, 20183, 145, 60,map_copy)
  420. local Monster202 =CreateChaEx(886, 17608, 17940, 145, 60,map_copy)
  421. local Monster203 =CreateChaEx(885, 17966, 16919, 145, 60,map_copy)
  422. local Monster204 =CreateChaEx(885, 15719, 16587, 355, 60,map_copy)
  423. local Monster205 =CreateChaEx(884, 13626, 15567, 145, 60,map_copy)
  424. local Monster206 =CreateChaEx(883, 12259, 15636, 145, 60,map_copy)
  425. local Monster207 =CreateChaEx(883, 10368, 15866, 145, 60,map_copy)
  426. local Monster208 =CreateChaEx(886, 10862, 14192, 145, 60,map_copy)
  427. local Monster209 =CreateChaEx(886, 12133, 14455, 145, 60,map_copy)
  428. local Monster210 =CreateChaEx(886, 11717, 11742, 145, 60,map_copy)
  429. local Monster211 =CreateChaEx(886, 14496, 13609, 145, 60,map_copy)
  430. local Monster212 =CreateChaEx(884, 15696, 15415, 145, 60,map_copy)
  431. local Monster213 =CreateChaEx(883, 17531, 15466, 175, 60,map_copy)
  432. local Monster214 =CreateChaEx(885, 19447, 19081, 25, 60,map_copy)
  433. local Monster215 =CreateChaEx(886, 21536, 18830, 85, 60,map_copy)
  434. local Monster216 =CreateChaEx(883, 22710, 19054, 340, 60,map_copy)
  435. local Monster217 =CreateChaEx(885, 24410, 19083, 295, 60,map_copy)
  436. local Monster218 =CreateChaEx(886, 24879, 17783, 265, 60,map_copy)
  437. local Monster219 =CreateChaEx(884, 24537, 16584, 145, 60,map_copy)
  438. local Monster220 =CreateChaEx(885, 23040, 16326, 145, 60,map_copy)
  439. local Monster221 =CreateChaEx(883, 21823, 16318, 145, 60,map_copy)
  440. local Monster222 =CreateChaEx(885, 21039, 17245, 205, 60,map_copy)
  441. local Monster223 =CreateChaEx(886, 19761, 16810, 220, 60,map_copy)
  442. local Monster224 =CreateChaEx(884, 19295, 17794, 130, 60,map_copy)
  443. local Monster225 =CreateChaEx(885, 19336, 16410, 265, 60,map_copy)
  444. local Monster226 =CreateChaEx(883, 19761, 15645, 235, 60,map_copy)
  445. local Monster227 =CreateChaEx(885, 20661, 12547, 145, 60,map_copy)
  446. local Monster228 =CreateChaEx(886, 20309, 14934, 265, 60,map_copy)
  447. local Monster229 =CreateChaEx(885, 20643, 13701, 175, 60,map_copy)
  448. local Monster230 =CreateChaEx(884, 19566, 13489, 145, 60,map_copy)
  449. local Monster231 =CreateChaEx(883, 19582, 12389, 145, 60,map_copy)
  450. local Monster232 =CreateChaEx(885, 17997, 12389, 145, 60,map_copy)
  451. local Monster233 =CreateChaEx(884, 16476, 12852, 145, 60,map_copy)
  452. local Monster234 =CreateChaEx(883, 14757, 12515, 145, 60,map_copy)
  453. local Monster235 =CreateChaEx(885, 13520, 11379, 145, 60,map_copy)
  454. local Monster236 =CreateChaEx(886, 12775, 11229, 145, 60,map_copy)
  455. local Monster237 =CreateChaEx(885, 13050, 9677, 235, 60,map_copy)
  456. local Monster238 =CreateChaEx(884, 10951, 10978, 145, 60,map_copy)
  457. local Monster239 =CreateChaEx(883, 10735, 9437, 145, 60,map_copy)
  458. local Monster240 =CreateChaEx(886, 12030, 13049, 145, 60,map_copy)
  459. local Monster241 =CreateChaEx(886, 11154, 13044, 145, 60,map_copy)
  460. local Monster242 =CreateChaEx(885, 9754, 13486, 145, 60,map_copy)
  461. local Monster243 =CreateChaEx(883, 8647, 13953, 145, 60,map_copy)
  462. local Monster244 =CreateChaEx(886, 8724, 12802, 145, 60,map_copy)
  463. local Monster245 =CreateChaEx(885, 9664, 12421, 145, 60,map_copy)
  464. local Monster246 =CreateChaEx(884, 9603, 11357, 145, 60,map_copy)
  465. local Monster247 =CreateChaEx(886, 9958, 10562, 145, 60,map_copy)
  466. local Monster248 =CreateChaEx(885, 8655, 10842, 145, 60,map_copy)
  467. local Monster249 =CreateChaEx(886, 8639, 9741, 145, 60,map_copy)
  468. local Monster250 =CreateChaEx(886, 8666, 5103, 145, 60,map_copy)
  469. local Monster251 =CreateChaEx(885, 8702, 6631, 145, 60,map_copy)
  470. local Monster252 =CreateChaEx(883, 8721, 8236, 145, 60,map_copy)
  471. local Monster253 =CreateChaEx(886, 10323, 9552, 145, 60,map_copy)
  472. local Monster254 =CreateChaEx(885, 9828, 8401, 145, 60,map_copy)
  473. local Monster255 =CreateChaEx(884, 9615, 7427, 145, 60,map_copy)
  474. local Monster256 =CreateChaEx(883, 11009, 8562, 145, 60,map_copy)
  475. local Monster257 =CreateChaEx(886, 12226, 8433, 145, 60,map_copy)
  476. local Monster258 =CreateChaEx(884, 15415, 7607, 145, 60,map_copy)
  477. local Monster259 =CreateChaEx(883, 14380, 8470, 145, 60,map_copy)
  478. local Monster260 =CreateChaEx(885, 14279, 10057, 145, 60,map_copy)
  479. local Monster261 =CreateChaEx(883, 14500, 11200, 145, 60,map_copy)
  480. local Monster262 =CreateChaEx(886, 15774, 12103, 145, 60,map_copy)
  481. local Monster263 =CreateChaEx(883, 15897, 9088, 145, 60,map_copy)
  482. local Monster264 =CreateChaEx(886, 15927, 9926, 145, 60,map_copy)
  483. local Monster265 =CreateChaEx(885, 15870, 11318, 145, 60,map_copy)
  484. local Monster266 =CreateChaEx(884, 16705, 11009, 145, 60,map_copy)
  485. local Monster267 =CreateChaEx(886, 16991, 10282, 145, 60,map_copy)
  486. local Monster268 =CreateChaEx(885, 16776, 9390, 100, 60,map_copy)
  487. local Monster269 =CreateChaEx(884, 16228, 8008, 145, 60,map_copy)
  488. local Monster270 =CreateChaEx(885, 17340, 5441, 145, 60,map_copy)
  489. local Monster271 =CreateChaEx(886, 16977, 6826, 250, 60,map_copy)
  490. local Monster272 =CreateChaEx(885, 17895, 7596, 145, 60,map_copy)
  491. local Monster273 =CreateChaEx(883, 18350, 9107, 145, 60,map_copy)
  492. local Monster274 =CreateChaEx(885, 17184, 12038, 145, 60,map_copy)
  493. local Monster275 =CreateChaEx(884, 17675, 13625, 280, 60,map_copy)
  494. local Monster276 =CreateChaEx(883, 17292, 14462, 355, 60,map_copy)
  495. local Monster277 =CreateChaEx(885, 18674, 13972, 250, 60,map_copy)
  496. local Monster278 =CreateChaEx(886, 18726, 13152, 235, 60,map_copy)
  497. local Monster279 =CreateChaEx(884, 19140, 11976, 235, 60,map_copy)
  498. local Monster280 =CreateChaEx(885, 19373, 10749, 205, 60,map_copy)
  499. local Monster281 =CreateChaEx(883, 19756, 9173, 250, 60,map_copy)
  500. local Monster282 =CreateChaEx(884, 20326, 10478, 250, 60,map_copy)
  501. local Monster283 =CreateChaEx(885, 21174, 11534, 280, 60,map_copy)
  502. local Monster284 =CreateChaEx(883, 21691, 10492, 220, 60,map_copy)
  503. local Monster285 =CreateChaEx(886, 8797, 15531, 145, 60,map_copy)
  504. local Monster286 =CreateChaEx(886, 20759, 8953, 235, 60,map_copy)
  505. local Monster287 =CreateChaEx(886, 19452, 7657, 220, 60,map_copy)
  506. local Monster288 =CreateChaEx(884, 19486, 6799, 220, 60,map_copy)
  507. local Monster289 =CreateChaEx(885, 20496, 7737, 145, 60,map_copy)
  508. local Monster290 =CreateChaEx(886, 20700, 6806, 145, 60,map_copy)
  509. local Monster291 =CreateChaEx(885, 20642, 5653, 220, 60,map_copy)
  510. local Monster292 =CreateChaEx(883, 19568, 5521, 220, 60,map_copy)
  511. local Monster293 =CreateChaEx(883, 18070, 5694, 145, 60,map_copy)
  512. local Monster294 =CreateChaEx(885, 15987, 6943, 145, 60,map_copy)
  513. local Monster295 =CreateChaEx(886, 14332, 7074, 145, 60,map_copy)
  514. local Monster296 =CreateChaEx(884, 13255, 6892, 145, 60,map_copy)
  515. local Monster297 =CreateChaEx(885, 11828, 7155, 145, 60,map_copy)
  516. local Monster298 =CreateChaEx(886, 10361, 6896, 175, 60,map_copy)
  517. local Monster299 =CreateChaEx(884, 9856, 6512, 145, 60,map_copy)
  518. local Monster300 =CreateChaEx(883, 10510, 5556, 145, 60,map_copy)
  519. local Monster301 =CreateChaEx(886, 11501, 6188, 145, 60,map_copy)
  520. local Monster302 =CreateChaEx(885, 12417, 5925, 175, 60,map_copy)
  521. local Monster303 =CreateChaEx(886, 14962, 6289, 145, 60,map_copy)
  522. local Monster304 =CreateChaEx(884, 14056, 6124, 145, 60,map_copy)
  523. local Monster305 =CreateChaEx(885, 15776, 5999, 190, 60,map_copy)
  524. local Monster306 =CreateChaEx(883, 14497, 4230, 115, 60,map_copy)
  525. local Monster307 =CreateChaEx(883, 17683, 4209, 250, 60,map_copy)
  526. local Monster308 =CreateChaEx(886, 19524, 4054, 220, 60,map_copy)
  527. local Monster309 =CreateChaEx(883, 19698, 3217, 160, 60,map_copy)
  528. local Monster310 =CreateChaEx(886, 19010, 3462, 145, 60,map_copy)
  529. local Monster311 =CreateChaEx(885, 17617, 3373, 145, 60,map_copy)
  530. local Monster312 =CreateChaEx(884, 16722, 2757, 145, 60,map_copy)
  531. local Monster313 =CreateChaEx(883, 15852, 3275, 145, 60,map_copy)
  532. local Monster314 =CreateChaEx(886, 15111, 3340, 145, 60,map_copy)
  533. local Monster315 =CreateChaEx(885, 14381, 2672, 145, 60,map_copy)
  534. local Monster316 =CreateChaEx(884, 13548, 3291, 145, 60,map_copy)
  535. local Monster317 =CreateChaEx(886, 12330, 2930, 145, 60,map_copy)
  536. local Monster318 =CreateChaEx(885, 11616, 3663, 145, 60,map_copy)
  537. local Monster319 =CreateChaEx(884, 10642, 2901, 145, 60,map_copy)
  538. local Monster320 =CreateChaEx(883, 10180, 4087, 145, 60,map_copy)
  539. local Monster321 =CreateChaEx(886, 9541, 3296, 145, 60,map_copy)
  540. local Monster322 =CreateChaEx(885, 9087, 3095, 145, 60,map_copy)
  541. local Monster323 =CreateChaEx(886, 8476, 3854, 145, 60,map_copy)
  542. local Monster324 =CreateChaEx(884, 7821, 3114, 145, 60,map_copy)
  543. local Monster325 =CreateChaEx(883, 6536, 4350, 145, 60,map_copy)
  544. local Monster326 =CreateChaEx(884, 7257, 5414, 115, 60,map_copy)
  545. local Monster327 =CreateChaEx(885, 7122, 7119, 145, 60,map_copy)
  546. local Monster328 =CreateChaEx(886, 7189, 8852, 145, 60,map_copy)
  547. local Monster329 =CreateChaEx(885, 7165, 11359, 145, 60,map_copy)
  548. local Monster330 =CreateChaEx(884, 7175, 13327, 100, 60,map_copy)
  549. local Monster331 =CreateChaEx(883, 7096, 15693, 70, 60,map_copy)
  550. local Monster332 =CreateChaEx(884, 6836, 3723, 145, 60,map_copy)
  551. local Monster333 =CreateChaEx(884, 21369, 9546, 205, 60,map_copy)
  552. local Monster334 =CreateChaEx(884, 21811, 3311, 205, 60,map_copy)
  553. SetChaLifeTime(Monster168,290050)
  554. SetChaLifeTime(Monster169,290100)
  555. SetChaLifeTime(Monster170,290150)
  556. SetChaLifeTime(Monster171,290200)
  557. SetChaLifeTime(Monster172,290250)
  558. SetChaLifeTime(Monster173,290300)
  559. SetChaLifeTime(Monster174,290350)
  560. SetChaLifeTime(Monster175,290400)
  561. SetChaLifeTime(Monster176,290450)
  562. SetChaLifeTime(Monster177,290500)
  563. SetChaLifeTime(Monster178,290550)
  564. SetChaLifeTime(Monster179,290600)
  565. SetChaLifeTime(Monster180,290650)
  566. SetChaLifeTime(Monster181,290700)
  567. SetChaLifeTime(Monster182,290750)
  568. SetChaLifeTime(Monster183,290800)
  569. SetChaLifeTime(Monster184,290850)
  570. SetChaLifeTime(Monster185,290900)
  571. SetChaLifeTime(Monster186,290950)
  572. SetChaLifeTime(Monster187,291000)
  573. SetChaLifeTime(Monster188,291050)
  574. SetChaLifeTime(Monster189,291100)
  575. SetChaLifeTime(Monster190,291150)
  576. SetChaLifeTime(Monster191,291200)
  577. SetChaLifeTime(Monster192,291250)
  578. SetChaLifeTime(Monster193,291300)
  579. SetChaLifeTime(Monster194,291350)
  580. SetChaLifeTime(Monster195,291400)
  581. SetChaLifeTime(Monster196,291450)
  582. SetChaLifeTime(Monster197,291500)
  583. SetChaLifeTime(Monster198,291550)
  584. SetChaLifeTime(Monster199,291600)
  585. SetChaLifeTime(Monster200,291650)
  586. SetChaLifeTime(Monster201,291700)
  587. SetChaLifeTime(Monster202,291750)
  588. SetChaLifeTime(Monster203,291800)
  589. SetChaLifeTime(Monster204,291850)
  590. SetChaLifeTime(Monster205,291900)
  591. SetChaLifeTime(Monster206,291950)
  592. SetChaLifeTime(Monster207,292000)
  593. SetChaLifeTime(Monster208,292050)
  594. SetChaLifeTime(Monster209,292100)
  595. SetChaLifeTime(Monster210,292150)
  596. SetChaLifeTime(Monster211,292200)
  597. SetChaLifeTime(Monster212,292250)
  598. SetChaLifeTime(Monster213,292300)
  599. SetChaLifeTime(Monster214,292350)
  600. SetChaLifeTime(Monster215,292400)
  601. SetChaLifeTime(Monster216,292450)
  602. SetChaLifeTime(Monster217,292500)
  603. SetChaLifeTime(Monster218,292550)
  604. SetChaLifeTime(Monster219,292600)
  605. SetChaLifeTime(Monster220,292650)
  606. SetChaLifeTime(Monster221,292700)
  607. SetChaLifeTime(Monster222,292750)
  608. SetChaLifeTime(Monster223,292800)
  609. SetChaLifeTime(Monster224,292850)
  610. SetChaLifeTime(Monster225,292900)
  611. SetChaLifeTime(Monster226,292950)
  612. SetChaLifeTime(Monster227,293000)
  613. SetChaLifeTime(Monster228,293050)
  614. SetChaLifeTime(Monster229,293100)
  615. SetChaLifeTime(Monster230,293150)
  616. SetChaLifeTime(Monster231,293200)
  617. SetChaLifeTime(Monster232,293250)
  618. SetChaLifeTime(Monster233,293300)
  619. SetChaLifeTime(Monster234,293350)
  620. SetChaLifeTime(Monster235,293400)
  621. SetChaLifeTime(Monster236,293450)
  622. SetChaLifeTime(Monster237,293500)
  623. SetChaLifeTime(Monster238,293550)
  624. SetChaLifeTime(Monster239,293600)
  625. SetChaLifeTime(Monster240,293650)
  626. SetChaLifeTime(Monster241,293700)
  627. SetChaLifeTime(Monster242,293750)
  628. SetChaLifeTime(Monster243,293800)
  629. SetChaLifeTime(Monster244,293850)
  630. SetChaLifeTime(Monster245,293900)
  631. SetChaLifeTime(Monster246,293950)
  632. SetChaLifeTime(Monster247,294000)
  633. SetChaLifeTime(Monster248,294050)
  634. SetChaLifeTime(Monster249,294100)
  635. SetChaLifeTime(Monster250,294150)
  636. SetChaLifeTime(Monster251,294200)
  637. SetChaLifeTime(Monster252,294250)
  638. SetChaLifeTime(Monster253,294300)
  639. SetChaLifeTime(Monster254,294350)
  640. SetChaLifeTime(Monster255,294400)
  641. SetChaLifeTime(Monster256,294450)
  642. SetChaLifeTime(Monster257,294500)
  643. SetChaLifeTime(Monster258,294550)
  644. SetChaLifeTime(Monster259,294600)
  645. SetChaLifeTime(Monster260,294650)
  646. SetChaLifeTime(Monster261,294700)
  647. SetChaLifeTime(Monster262,294750)
  648. SetChaLifeTime(Monster263,294800)
  649. SetChaLifeTime(Monster264,294850)
  650. SetChaLifeTime(Monster265,294900)
  651. SetChaLifeTime(Monster266,294950)
  652. SetChaLifeTime(Monster267,295000)
  653. SetChaLifeTime(Monster268,295050)
  654. SetChaLifeTime(Monster269,295100)
  655. SetChaLifeTime(Monster270,295150)
  656. SetChaLifeTime(Monster271,295200)
  657. SetChaLifeTime(Monster272,295250)
  658. SetChaLifeTime(Monster273,295300)
  659. SetChaLifeTime(Monster274,295350)
  660. SetChaLifeTime(Monster275,295400)
  661. SetChaLifeTime(Monster276,295450)
  662. SetChaLifeTime(Monster277,295500)
  663. SetChaLifeTime(Monster278,295550)
  664. SetChaLifeTime(Monster279,295600)
  665. SetChaLifeTime(Monster280,295650)
  666. SetChaLifeTime(Monster281,295700)
  667. SetChaLifeTime(Monster282,295750)
  668. SetChaLifeTime(Monster283,295800)
  669. SetChaLifeTime(Monster284,295850)
  670. SetChaLifeTime(Monster285,295900)
  671. SetChaLifeTime(Monster286,295950)
  672. SetChaLifeTime(Monster287,296000)
  673. SetChaLifeTime(Monster288,296050)
  674. SetChaLifeTime(Monster289,296100)
  675. SetChaLifeTime(Monster290,296150)
  676. SetChaLifeTime(Monster291,296200)
  677. SetChaLifeTime(Monster292,296250)
  678. SetChaLifeTime(Monster293,296300)
  679. SetChaLifeTime(Monster294,296350)
  680. SetChaLifeTime(Monster295,296400)
  681. SetChaLifeTime(Monster296,296450)
  682. SetChaLifeTime(Monster297,296500)
  683. SetChaLifeTime(Monster298,296550)
  684. SetChaLifeTime(Monster299,296600)
  685. SetChaLifeTime(Monster300,296650)
  686. SetChaLifeTime(Monster301,296700)
  687. SetChaLifeTime(Monster302,296750)
  688. SetChaLifeTime(Monster303,296800)
  689. SetChaLifeTime(Monster304,296850)
  690. SetChaLifeTime(Monster305,296900)
  691. SetChaLifeTime(Monster306,296950)
  692. SetChaLifeTime(Monster307,297000)
  693. SetChaLifeTime(Monster308,297050)
  694. SetChaLifeTime(Monster309,297100)
  695. SetChaLifeTime(Monster310,297150)
  696. SetChaLifeTime(Monster311,297200)
  697. SetChaLifeTime(Monster312,297250)
  698. SetChaLifeTime(Monster313,297300)
  699. SetChaLifeTime(Monster314,297350)
  700. SetChaLifeTime(Monster315,297400)
  701. SetChaLifeTime(Monster316,297450)
  702. SetChaLifeTime(Monster317,297500)
  703. SetChaLifeTime(Monster318,297550)
  704. SetChaLifeTime(Monster319,297600)
  705. SetChaLifeTime(Monster320,297650)
  706. SetChaLifeTime(Monster321,297700)
  707. SetChaLifeTime(Monster322,297750)
  708. SetChaLifeTime(Monster323,297800)
  709. SetChaLifeTime(Monster324,297850)
  710. SetChaLifeTime(Monster325,297900)
  711. SetChaLifeTime(Monster326,297950)
  712. SetChaLifeTime(Monster327,298000)
  713. SetChaLifeTime(Monster328,298050)
  714. SetChaLifeTime(Monster329,298100)
  715. SetChaLifeTime(Monster330,298150)
  716. SetChaLifeTime(Monster331,298200)
  717. SetChaLifeTime(Monster332,298250)
  718. SetChaLifeTime(Monster333,298300)
  719. SetChaLifeTime(Monster334,298350)
  720. end
  721. end
  722. --每5秒执行一次的
  723. function map_run_garner2( map )
  724. end
  725. --地图关闭时执行
  726. function map_copy_before_close_garner2( map_copy )
  727. How_Many_Active = GetMapActivePlayer(map_copy)
  728. if How_Many_Active > 0 then
  729. DealAllActivePlayerInMap(map_copy,"GiveSpecItem")
  730. end
  731. How_Many_Active = 0
  732. Money_all = 10000000
  733. Every_5_minute = 0
  734. end
  735. --地图关闭时执行
  736. function map_copy_close_garner2( map_copy )
  737. ClearAllSubMapCha(map_copy)
  738. end
  739. --
  740. --地图开关判断——————————————————————————————————————————
  741. function can_open_entry_garner2( map ) 
  742. -- local time = GetTickCount ( ) 
  743. local Now_Time = GetNowTime()
  744. if Now_Time == 0 or Now_Time == 3 or Now_Time == 6 or Now_Time == 9 or Now_Time == 12 or Now_Time ==15 or Now_Time == 18 or Now_Time == 21 then
  745. return 1
  746. else
  747. return 0
  748. end
  749. end 
  750. function GiveSpecItem( role )
  751. if How_Many_Active == 0 then
  752. return
  753. end
  754. local Money_Garner2 = Money_all/How_Many_Active
  755. -- SystemNotice(role,How_Many_Active)
  756. if How_Many_Active > 5 then
  757. AddMoney ( role , 0 , Money_Garner2 )
  758. -- local message = "今天的乱斗共存活了"..How_Many_Active .. "位玩家,他们每人将获得"..Money_Garner2 .."的金钱"
  759. -- SystemNotice(role,How_Many_Active)
  760. return
  761. end
  762. if How_Many_Active <  6 and How_Many_Active > 1 then
  763. local Item_CanGet = GetChaFreeBagGridNum ( role )
  764. if Item_CanGet <= 0 then
  765. GiveItemX ( role , 0 , 1031  , 1 , 4 )
  766. else
  767. GiveItem ( role , 0 , 1031  , 1 , 4 )
  768. end
  769.  
  770. AddMoney ( role , 0 , Money_Garner2 )
  771. --SystemNotice(role,How_Many_Active)
  772. --local message = "今天的乱斗中共存活了"..How_Many_Active .."位玩家,他们每人将获得"..Money_Garner2 .."的金钱和1个乱斗之星徽章"
  773. --Notice ( message )
  774. return
  775. end
  776. if How_Many_Active == 1 then
  777. local Item_CanGet = GetChaFreeBagGridNum ( role )
  778. if Item_CanGet <= 0 then
  779. GiveItemX ( role , 0 , 1032  , 1 , 4 )
  780. else
  781. GiveItem ( role , 0 , 1032  , 1 , 4 )
  782. end
  783. AddMoney ( role , 0 , Money_Garner2 )
  784. local cha_name = GetChaDefaultName ( role )
  785. local message = "今天的乱斗中存活的只有"..cha_name.."他将获得 ".. Money_Garner2 .."的金钱和1个乱斗之王徽章"
  786. -- SystemNotice(role,How_Many_Active)
  787. SystemNotice(role,message)
  788. return
  789. end
  790. end