--地图位置已使用:3 --地图位置4被yl用了 --地图位置已使用:5 --地图位置已使用:6 function c4020124_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第一波透明怪死亡 local MsgID = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID,101,650300) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) local x = {19523/50, 17091/50, 19907/50, 23677/50, 22004/50, 24387/50, 27076/50, 29786/50, 30213/50, 30259/50, 29981/50, 15161/50, 19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 14039/50, 14933/50, 16597/50, 16366/50} local y = {2800, 2644, 2644, 2659, 2632, 2588, 2604, 2488, 2447, 2487, 2503, 2647, 2609, 2661, 2661, 2551, 2546, 2598, 2454, 2761, 2700, 2606, 2790} local z = {13072/50, 15895/50, 15866/50, 16578/50, 18234/50, 17561/50, 13401/50, 14229/50, 14348/50, 19694/50, 16998/50, 17044/50, 23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 18037/50, 16675/50, 20353/50, 22275/50} for i = 0, 9 do local a = math.random(23) map.MapCreateCreature(MapID, InstanceID, 6040300, x[a], y[a], z[a]) --刷青铜宝箱 end local MsgID1 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID1,101,207191) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020124, 13, "c4020124_OnDie") function c4020125_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二波透明怪死亡 local MsgID = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID,101,650301) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) end aux.RegisterCreatureEvent(4020125, 13, "c4020125_OnDie") function c4020126_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第三波透明怪死亡 local MsgID = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID,101,650302) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) local x = {19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 28689/50, 13315/50} local y = {2609, 2661, 2661, 2551, 2546, 2598, 2454, 2706, 2629, 2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150} local z = {23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 45921/50, 32712/50} for i = 0, 5 do local a = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040301, x[a], y[a], z[a]) --刷黑铁宝箱 end local MsgID1 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID1, 101, 207192) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020126, 13, "c4020126_OnDie") function c4020127_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第四波透明怪死亡 local MsgID = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID,101,650303) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) local x = {19523/50, 17091/50, 19907/50, 23677/50, 22004/50, 24387/50, 27076/50, 29786/50, 30213/50, 30259/50, 29981/50, 15161/50, 19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 14039/50, 14933/50, 16597/50, 16366/50} local y = {2800, 2644, 2644, 2659, 2632, 2588, 2604, 2488, 2447, 2487, 2503, 2647, 2609, 2661, 2661, 2551, 2546, 2598, 2454, 2761, 2700, 2606, 2790} local z = {13072/50, 15895/50, 15866/50, 16578/50, 18234/50, 17561/50, 13401/50, 14229/50, 14348/50, 19694/50, 16998/50, 17044/50, 23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 18037/50, 16675/50, 20353/50, 22275/50} for i = 0, 9 do local a = math.random(23) map.MapCreateCreature(MapID, InstanceID, 6040300, x[a], y[a], z[a]) --刷青铜宝箱 end local MsgID1 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID1, 101, 207191) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020127, 13, "c4020127_OnDie") function c4020128_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第五波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650304) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) map.MapCreateCreature(MapID, InstanceID, 4020094, 21565/50, 2734, 40828/50) --召唤金元素 local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207159) --强大的金元素出现了 msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) local x1 = {27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 17570/50, 17515/50, 19846/50, 21429/50, 23612/50, 25189/50, 28422/50, 11564/50, 13315/50} local y1 = {2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150, 2793, 2856, 2760, 2661, 2661, 2629, 2500, 3112, 3151} local z1 = {35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 48423/50, 52404/50, 51565/50, 52680/50, 53149/50, 52849/50, 52654/50, 28007/50, 32712/50} for i = 0, 2 do local a1 = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040302, x1[a1], y1[a1], z1[a1]) --刷白银宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207193) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020128, 13, "c4020128_OnDie") function c4020129_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第六波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650305) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020129, 13, "c4020129_OnDie") function c4020130_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第七波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650306) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020130, 13, "c4020130_OnDie") function c4020131_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第八波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650307) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x = {19523/50, 17091/50, 19907/50, 23677/50, 22004/50, 24387/50, 27076/50, 29786/50, 30213/50, 30259/50, 29981/50, 15161/50, 19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 14039/50, 14933/50, 16597/50, 16366/50} local y = {2800, 2644, 2644, 2659, 2632, 2588, 2604, 2488, 2447, 2487, 2503, 2647, 2609, 2661, 2661, 2551, 2546, 2598, 2454, 2761, 2700, 2606, 2790} local z = {13072/50, 15895/50, 15866/50, 16578/50, 18234/50, 17561/50, 13401/50, 14229/50, 14348/50, 19694/50, 16998/50, 17044/50, 23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 18037/50, 16675/50, 20353/50, 22275/50} for i = 0, 9 do local a = math.random(23) map.MapCreateCreature(MapID, InstanceID, 6040300, x[a], y[a], z[a]) --刷青铜宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207191) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020131, 13, "c4020131_OnDie") function c4020132_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第九波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650308) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x = {19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 28689/50, 13315/50} local y = {2609, 2661, 2661, 2551, 2546, 2598, 2454, 2706, 2629, 2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150} local z = {23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 45921/50, 32712/50} for i = 0, 5 do local a = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040301, x[a], y[a], z[a]) --刷黑铁宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207192) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020132, 13, "c4020132_OnDie") function c4020133_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650309) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) map.MapCreateCreature(MapID, InstanceID, 4020095, 15606/50, 2791, 43065/50) --召唤木元素 map.MapCreateCreature(MapID, InstanceID, 6040161, 32045/50, 2840, 49352/50) --召唤弗雷斯将军 map.SetMapScriptData(MapID,InstanceID,1,5,1) for i = 0, 19 do local deg = math.random(360) local disc = math.random(1,10) map.MapCreateCreature(MapID, InstanceID, 4020091, math.floor(32165/50+ math.sin(deg) * disc), 2871, math.floor(51214/50 + math.cos(deg) * disc)) --召唤劫掠者 end for i = 0, 9 do local deg = math.random(360) local disc = math.random(1,10) map.MapCreateCreature(MapID, InstanceID, 4020091, math.floor(32096/50+ math.sin(deg) * disc), 2871, math.floor(49748/50 + math.cos(deg) * disc)) --召唤劫掠者 end for i = 0, 1 do local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207161+ i) --强大的木元素出现了 --我们英勇的弗雷斯将军不慎被敌兵俘虏了,请速去把他救出来。 msg.DispatchMapMsgEvent(MsgID, MapID,InstanceID) end end aux.RegisterCreatureEvent(4020133, 13, "c4020133_OnDie") function c4020134_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十一波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650310) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020134, 13, "c4020134_OnDie") function c4020135_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十二波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650311) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020135, 13, "c4020135_OnDie") function c4020136_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十三波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650312) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x1 = {19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 28689/50, 13315/50} local y1 = {2609, 2661, 2661, 2551, 2546, 2598, 2454, 2706, 2629, 2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150} local z1 = {23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 45921/50, 32712/50} for i = 0, 5 do local a1 = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040301, x1[a1], y1[a1], z1[a1]) --刷黑铁宝箱 end local x2 = {27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 17570/50, 17515/50, 19846/50, 21429/50, 23612/50, 25189/50, 28422/50, 11564/50, 13315/50} local y2 = {2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150, 2793, 2856, 2760, 2661, 2661, 2629, 2500, 3112, 3151} local z2 = {35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 48423/50, 52404/50, 51565/50, 52680/50, 53149/50, 52849/50, 52654/50, 28007/50, 32712/50} for i = 0, 2 do local a2 = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040302, x2[a2], y2[a2], z2[a2]) --刷白银宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207193) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020136, 13, "c4020136_OnDie") function c4020137_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十四波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650313) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020137, 13, "c4020137_OnDie") function c4020138_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十五波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650314) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x = {11441/50, 18011/50, 30227/50, 16676/50, 30621/50} local y = {3048, 2730, 2485, 2693, 2397} local z = {30520/50, 45558/50, 43543/50, 28294/50, 27870/50} local a = math.random(5) map.MapCreateCreature(MapID, InstanceID, 4020096, 29674/50, 2479, 49046/50) --召唤水元素 map.MapCreateCreature(MapID, InstanceID, 6040150, x[a], y[a], z[a]) --召唤神秘商人 for i = 0, 1 do local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207164+ i) --强大的水元素出现了 --神秘商人出现了,带来了一批好东西* msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) end end aux.RegisterCreatureEvent(4020138, 13, "c4020138_OnDie") function c4020139_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十六波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650315) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020139, 13, "c4020139_OnDie") function c4020140_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十七波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650316) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020140, 13, "c4020140_OnDie") function c4020141_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十八波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650317) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) map.MapCreateCreature(MapID, InstanceID, 6040162, 816, 2840, 705) --召唤舰长 map.SetMapScriptData(MapID,InstanceID,1,6,1) for i = 0, 19 do local deg = math.random(360) local disc = math.random(1,10) map.MapCreateCreature(MapID, InstanceID, 4020092, math.floor(41411/50 + math.sin(deg) * disc), 2871, math.floor(37175/50 + math.cos(deg) * disc)) --召唤海盗 end for i = 0, 9 do local deg = math.random(360) local disc = math.random(1,10) map.MapCreateCreature(MapID, InstanceID, 4020092, math.floor(40995/50 + math.sin(deg) * disc), 2871, math.floor(35875/50 + math.cos(deg) * disc)) --召唤海盗 end map.MapCreateCreature(MapID, InstanceID, 4020093, 838, 2839, 745) --召唤海盗头子 map.MapCreateCreature(MapID, InstanceID, 4020093, 822, 2839, 750) --召唤海盗头子 map.MapCreateCreature(MapID, InstanceID, 4020093, 822, 2840, 700) --召唤海盗头子 local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207166) --有海盗占领了我方舰艇,速去解救 msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) local x = {19910/50, 17053/50, 17547/50, 26466/50, 29107/50, 26306/50, 30077/50, 27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 28689/50, 13315/50} local y = {2609, 2661, 2661, 2551, 2546, 2598, 2454, 2706, 2629, 2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150} local z = {23336/50, 28285/50, 22764/50, 20820/50, 22520/50, 25390/50, 27930/50, 35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 45921/50, 32712/50} for i = 0, 5 do local a = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040301, x[a], y[a], z[a]) --刷黑铁宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207192) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020141, 13, "c4020141_OnDie") function c4020142_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第十九波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650318) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020142, 13, "c4020142_OnDie") function c4020143_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650319) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x = {11441/50, 18011/50, 30227/50, 16676/50, 30621/50} local y = {3048, 2730, 2485, 2693, 2397} local z = {30520/50, 45558/50, 43543/50, 28294/50, 27870/50} local a = math.random(5) map.MapCreateCreature(MapID, InstanceID, 4020097, 17219/50, 2719, 40487/50) --召唤火元素 map.MapCreateCreature(MapID, InstanceID, 6040161, 32045/50, 2840, 49352/50) --召唤弗雷斯将军 map.MapCreateCreature(MapID, InstanceID, 6040150, x[a], y[a], z[a]) --召唤神秘商人 map.SetMapScriptData(MapID,InstanceID,1,5,1) for i = 0, 9 do local deg = math.random(360) local disc = math.random(1,10) map.MapCreateCreature(MapID, InstanceID, 4020112, math.floor(32096/50+ math.sin(deg) * disc), 2871, math.floor(49748/50 + math.cos(deg) * disc)) --召唤嗜血的劫掠者 end for i = 0, 19 do local deg = math.random(360) local disc = math.random(1,10) map.MapCreateCreature(MapID, InstanceID, 4020112, math.floor(32165/50+ math.sin(deg) * disc), 2871, math.floor(51214/50 + math.cos(deg) * disc)) --召唤嗜血的劫掠者 end for i = 0, 2 do local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207167+ i) --强大的火元素出现了 --我们英勇的弗雷斯将军不慎被敌兵俘虏了,请速去把他救出来。 --神秘商人出现了,带来了一批好东西* msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) end end aux.RegisterCreatureEvent(4020143, 13, "c4020143_OnDie") function c4020144_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十一波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650320) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x1 = {27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 17570/50, 17515/50, 19846/50, 21429/50, 23612/50, 25189/50, 28422/50, 11564/50, 13315/50} local y1 = {2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150, 2793, 2856, 2760, 2661, 2661, 2629, 2500, 3112, 3151} local z1 = {35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 48423/50, 52404/50, 51565/50, 52680/50, 53149/50, 52849/50, 52654/50, 28007/50, 32712/50} for i = 0, 5 do local a1 = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040302, x1[a1], y1[a1], z1[a1]) --刷白银宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207193) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020144, 13, "c4020144_OnDie") function c4020145_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十二波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650321) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020145, 13, "c4020145_OnDie") function c4020146_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十三波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650322) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) map.MapCreateCreature(MapID, InstanceID, 4020104, 23097/50, 2737, 48934/50) --召唤奥斯瑞克 local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207170) --敌方首领出现在战场上指挥战斗,速去刺杀他 msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020146, 13, "c4020146_OnDie") function c4020147_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十四波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650323) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x1 = {27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 17570/50, 17515/50, 19846/50, 21429/50, 23612/50, 25189/50, 28422/50, 11564/50, 13315/50} local y1 = {2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150, 2793, 2856, 2760, 2661, 2661, 2629, 2500, 3112, 3151} local z1 = {35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 48423/50, 52404/50, 51565/50, 52680/50, 53149/50, 52849/50, 52654/50, 28007/50, 32712/50} for i = 0, 2 do local a1 = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040302, x1[a1], y1[a1], z1[a1]) --刷白银宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207193) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020147, 13, "c4020147_OnDie") function c4020148_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十五波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650324) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x = {11441/50, 18011/50, 30227/50, 16676/50, 30621/50} local y = {3048, 2730, 2485, 2693, 2397} local z = {30520/50, 45558/50, 43543/50, 28294/50, 27870/50} local a = math.random(5) map.MapCreateCreature(MapID, InstanceID, 6040163, 13779/50, 2857, 28986/50) --召唤法阵大师 local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207171) --法阵大师出现了,可以去找他召唤强力怪物 msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) map.MapCreateCreature(MapID, InstanceID, 6040150, x[a], y[a], z[a]) --召唤神秘商人 map.MapCreateCreature(MapID, InstanceID, 4020098, 26745/50, 2700, 41460/50) --召唤土元素 for i = 0, 1 do local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 207174+ i) --强大的土元素出现了 --神秘商人出现了,带来了一批好东西* msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) end end aux.RegisterCreatureEvent(4020148, 13, "c4020148_OnDie") function c4020149_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十六波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650325) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020149, 13, "c4020149_OnDie") function c4020150_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十七波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650326) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020150, 13, "c4020150_OnDie") function c4020151_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十八波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650327) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) local x1 = {27016/50, 28539/50, 26434/50, 22570/50, 15543/50, 18428/50, 18266/50, 17157/50, 18579/50, 17091/50, 17570/50, 17515/50, 19846/50, 21429/50, 23612/50, 25189/50, 28422/50, 11564/50, 13315/50} local y1 = {2700, 2736, 2719, 2699, 2548, 2690, 2760, 2735, 2581, 3150, 2793, 2856, 2760, 2661, 2661, 2629, 2500, 3112, 3151} local z1 = {35935/50, 39907/50, 43681/50, 40736/50, 40482/50, 39786/50, 33970/50, 36104/50, 43336/50, 44789/50, 48423/50, 52404/50, 51565/50, 52680/50, 53149/50, 52849/50, 52654/50, 28007/50, 32712/50} for i = 0, 2 do local a1 = math.random(19) map.MapCreateCreature(MapID, InstanceID, 6040302, x1[a1], y1[a1], z1[a1]) --刷白银宝箱 end local MsgID2 = msg.BeginMsgEvent() --宝箱通知 msg.AddMsgEvent(MsgID2, 101, 207193) msg.DispatchMapMsgEvent(MsgID2, MapID, InstanceID) end aux.RegisterCreatureEvent(4020151, 13, "c4020151_OnDie") function c4020152_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第二十九波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650328) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020152, 13, "c4020152_OnDie") function c4020153_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --第三十波透明怪死亡 local MsgID1 = msg.BeginMsgEvent() --波数通知 msg.AddMsgEvent(MsgID1,101,650329) msg.DispatchMapMsgEvent(MsgID1, MapID, InstanceID) end aux.RegisterCreatureEvent(4020153, 13, "c4020153_OnDie") function c4020091_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if role.IsRoleHaveQuest(MapID, InstanceID, RoleID, 52001) == false then role.AddQuest(RoleID, 52001) --接受第10波的营救俘虏任务 end end aux.RegisterCreatureEvent(4020091, 4, "c4020091_OnDie") function c4020092_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if role.IsRoleHaveQuest(MapID, InstanceID, RoleID, 52002) == false then role.AddQuest(RoleID, 52002) --接受水上遭遇任务 end end aux.RegisterCreatureEvent(4020092, 4, "c4020092_OnDie") function c4020093_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if role.IsRoleHaveQuest(MapID, InstanceID, RoleID, 52002) == false then role.AddQuest(RoleID, 52002) ----接受水上遭遇任务 end end aux.RegisterCreatureEvent(4020093, 4, "c4020093_OnDie") function c4020112_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if role.IsRoleHaveQuest(MapID, InstanceID, RoleID, 52003) == false then role.AddQuest(RoleID, 52003) --接受第20波的营救俘虏任务 end end aux.RegisterCreatureEvent(4020112, 4, "c4020112_OnDie") function c4020098_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) --土元素死亡 map.MapCreateCreature(MapID, InstanceID, 6040303, 26746/50, 2700, 41461/50) --召唤黄金宝箱 end aux.RegisterCreatureEvent(4020098, 4, "c4020098_OnDie") function c4020097_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) --火元素死亡 map.MapCreateCreature(MapID, InstanceID, 6040303, 17219/50, 2719, 40487/50) --召唤黄金宝箱 end aux.RegisterCreatureEvent(4020097, 4, "c4020097_OnDie") function c4020096_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) --水元素死亡 map.MapCreateCreature(MapID, InstanceID, 6040303, 29674/50, 2479, 49046/50) --召唤黄金宝箱 end aux.RegisterCreatureEvent(4020096, 4, "c4020096_OnDie") function c4020095_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) --木元素死亡 map.MapCreateCreature(MapID, InstanceID, 6040303, 15606/50, 2791, 43065/50) --召唤黄金宝箱 end aux.RegisterCreatureEvent(4020095, 4, "c4020095_OnDie") function c4020094_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) --金元素死亡 map.MapCreateCreature(MapID, InstanceID, 6040303, 21565/50, 2734, 40828/50) --召唤黄金宝箱 end aux.RegisterCreatureEvent(4020094, 4, "c4020094_OnDie") function c6040161_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --弗雷斯将军消失 map.SetMapScriptData(MapID,InstanceID,1,5,0) end aux.RegisterCreatureEvent(6040161, 13, "c6040161_OnDie") function c6040162_OnDie(MapID, InstanceID, TargetID, TargetTypeID) --血泣消失 map.SetMapScriptData(MapID,InstanceID,1,6,0) end aux.RegisterCreatureEvent(6040162, 13, "c6040162_OnDie")