function f06_OnPlayerEnter(MapID, InstanceID,RoleID) local bhave = role.IsRoleHaveBuff(MapID, InstanceID, RoleID, 99996) if bhave == true then unit.CancelBuff(MapID, InstanceID, RoleID, 9999601) end local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100092) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) local Hardness = 0 local bLegendary = role.GetRoleScriptData(RoleID, 1, RoleDataType["LegendaryDungeonFlag"]) if bLegendary == 1 then local rolelevel = role.GetRoleLevel(MapID, InstanceID, RoleID) if rolelevel > 104 then Hardness = 3 else Hardness = 2 end else Hardness = 1 end if Hardness > 1 then if map.GetMapScriptData(MapID,InstanceID,1,18) == 0 then role.RemoveFromRole(MapID, InstanceID, RoleID, 6601257, 1, 400) else role.RoleGotoNewMap(MapID, InstanceID, RoleID, 3424075048, 2361, 11351, 2454) end end local monsterhave = map.GetMapScriptData(MapID,InstanceID,1,13) if monsterhave==0 then local BluePixi = {3040100, 3040500, 3040530} local SilverPixi = {3040101, 3040501, 3040531} local DeamonSnake = {3040102, 3040502, 3040532} local Gorgona = {3040103, 3040503, 3040533} local PlantEater4 = {3040104, 3040504, 3040534} local PlantEater5 = {3040105, 3040505, 3040535} local PlantEater6 = {3040106, 3040506, 3040536} local PlantEater7 = {3040107, 3040507, 3040537} local HellImmortal2 = {3040112, 3040512, 3040542} local HellImmortal3 = {3040113, 3040513, 3040543} local LowerWorldEmissar4 = {3040114, 3040514, 3040544} local LowerWorldEmissar5 = {3040115, 3040515, 3040545} local HeavenSoul7 = {3040117, 3040517, 3040547} local HeavenSoul8 = {3040118, 3040518, 3040548} map.SetMapScriptData(MapID, InstanceID, 1, 39, Hardness) map.OpenCloseDoor(MapID, InstanceID, 441, nil) map.MapCreateCreature(MapID, InstanceID, Gorgona[Hardness], 257, 12631, 243) -- map.MapCreateColCreature(MapID, InstanceID, BluePixi[Hardness], 9808/50, 12901, 2334/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 10013/50, 12901, 2744/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater4[Hardness], 10294/50, 12901, 3295/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater5[Hardness], 10279/50, 12901, 2245/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater6[Hardness], 9984/50, 12102, 7228/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater7[Hardness], 9082/50, 12102, 8042/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 9131/50, 12102, 7239/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 9692/50, 12102, 7789/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 5686/50, 12802, 8922/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 4553/50, 12802, 8921/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater7[Hardness], 5086/50, 12802, 8098/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater6[Hardness], 5505/50, 12802, 7542/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater5[Hardness], 5999/50, 12802, 8288/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater4[Hardness], 4574/50, 12802, 7578/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 13204/50, 12632, 11804/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 13186/50, 12632, 12486/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater5[Hardness], 12030/50, 12632, 11600/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater5[Hardness], 10319/50, 12632, 13248/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater4[Hardness], 11925/50, 12632, 13252/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater4[Hardness], 9536/50, 12632, 11598/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater7[Hardness], 9668/50, 12632, 13256/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater7[Hardness], 11258/50, 12632, 11597/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater6[Hardness], 10308/50, 12632, 11615/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater6[Hardness], 11020/50, 12632, 13262/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater6[Hardness], 8939/50, 12632, 13226/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 12030/50, 12632, 12567/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 10795/50, 12632, 12632/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 9745/50, 12632, 12661/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, BluePixi[Hardness], 11393/50, 12632, 11919/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, BluePixi[Hardness], 10267/50, 12632, 12017/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, BluePixi[Hardness], 9217/50, 12632, 12025/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, BluePixi[Hardness], 5550/50, 13352, 11822/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, BluePixi[Hardness], 4568/50, 13352, 12558/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 4704/50, 13352, 11745/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, SilverPixi[Hardness], 5388/50, 13352, 12647/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 8811/50, 12102, 7392/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 8812/50, 12102, 8565/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 5977/50, 13352, 12756/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, DeamonSnake[Hardness], 6028/50, 13352, 11605/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 4254/50, 15038, 18829/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 7613/50, 15024, 18771/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 4599/50, 15038, 19082/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 7425/50, 15024, 19056/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 5952/50, 15024, 19027/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 7819/50, 15024, 21749/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 5661/50, 15038, 19147/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 7562/50, 15024, 22020/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 5137/50, 15038, 18996/50, 1, "1a") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 4343/50, 15038, 19953/50, 1, "1b") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 8000/50, 15024, 18941/50, 1, "1a") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 6869/50, 15024, 19838/50, 1, "1b") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 13893/50, 15028, 22583/50, 1, "2a") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 13930/50, 15028, 19674/50, 1, "2a") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 13276/50, 15028, 20382/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 13225/50, 15028, 21769/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 16370/50, 15044, 19411/50, 1, "3a") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 16831/50, 15055, 19390/50, 1, "3a") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 18908/50, 15058, 18475/50, 1, "3b") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 20451/50, 15058, 18442/50, 1, "3c") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 20444/50, 15058, 18013/50, 1, "3c") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 18916/50, 15058, 17940/50, 1, "3b") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 17679/50, 15058, 20384/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 17405/50, 15058, 20653/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 19810/50, 15058, 18641/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 19693/50, 15058, 16603/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 20586/50, 15058, 19107/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 19246/50, 15058, 16217/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 20140/50, 15058, 16218/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 21090/50, 16057, 4011/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 17964/50, 16057, 4632/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 20040/50, 16057, 5988/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 19008/50, 16057, 5959/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 19514/50, 16057, 5793/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 21130/50, 16057, 4624/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 17951/50, 16057, 4053/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 15349/50, 15001, 18486/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 14457/50, 15028, 19821/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 12581/50, 15028, 18719/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 12898/50, 15028, 18975/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 12550/50, 15028, 22854/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 12836/50, 15028, 23042/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 14734/50, 15028, 20131/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 15578/50, 15000, 18636/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 9564/50, 14884, 18850/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 11338/50, 14884, 18863/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 11330/50, 14922, 22932/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 9540/50, 14920, 22932/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 11318/50, 14939, 21442/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 9561/50, 14939, 21408/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 9565/50, 14939, 20323/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 11303/50, 14939, 20360/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar5[Hardness], 7565/50, 15024, 20345/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal3[Hardness], 7293/50, 15024, 20624/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, LowerWorldEmissar4[Hardness], 14510/50, 15028, 22063/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HellImmortal2[Hardness], 14257/50, 15028, 21785/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul7[Hardness], 20097/50, 15098, 9704/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, HeavenSoul8[Hardness], 18878/50, 15098, 9681/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater4[Hardness], 5256/50, 13352, 11127/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater5[Hardness], 4907/50, 13352, 11158/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater4[Hardness], 6126/50, 12802, 7920/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater5[Hardness], 4496/50, 12502, 8325/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater7[Hardness], 4896/50, 13352, 13089/50, 1, "") map.MapCreateColCreature(MapID, InstanceID, PlantEater7[Hardness], 4351/50, 13352, 12946/50, 1, "") -- map.SetMapScriptData(MapID,InstanceID,1,13,1) end unit.AddBuff(MapID,InstanceID,RoleID,5930901,RoleID) if experienceTeams ~= nil then local TeamID = role.IsRoleHaveTeam(MapID, InstanceID, RoleID) for k in pairs(experienceTeams) do if experienceTeams[k].teamid == TeamID then local lev = math.floor(role.GetRoleLevel(MapID, InstanceID, RoleID)/10) if lev == 4 then unit.AddBuff(MapID, InstanceID, RoleID, 6109704, RoleID) elseif lev == 5 then unit.AddBuff(MapID, InstanceID, RoleID, 6109707, RoleID) elseif lev == 6 then unit.AddBuff(MapID, InstanceID, RoleID, 6109710, RoleID) elseif lev == 7 then unit.AddBuff(MapID, InstanceID, RoleID, 6109712, RoleID) end unit.AddBuff(MapID, InstanceID, RoleID, 6109601, RoleID) break end end end end aux.RegisterMapEvent("f06", 2, "f06_OnPlayerEnter") function fuckjapan_01(MapID, InstanceID,objNum) local j=map.GetMapScriptData(MapID,InstanceID,1,0) local i=objNum if j==1 then if i<10 and i>0 then local triggleID = map.GetMapScriptData(MapID,InstanceID,1,i) local status = map.GetMapScriptData(MapID,InstanceID,1,10) local state = math.floor(status/math.pow(2,i-1))%2 if state==1 then unit.CancelBuff(MapID, InstanceID, triggleID, 5055801) map.SetMapScriptData(MapID,InstanceID,1,10,(status-math.pow(2,i-1))) else unit.AddBuff(MapID,InstanceID,triggleID,5055801,triggleID) map.SetMapScriptData(MapID,InstanceID,1,10,(status+math.pow(2,i-1))) end end end end function f06_OnEnterTrigger(MapID, InstanceID, RoleID, ObjID) local triggle={} triggle[1]=map.GetMapScriptData(MapID,InstanceID,1,1) triggle[2]=map.GetMapScriptData(MapID,InstanceID,1,2) triggle[3]=map.GetMapScriptData(MapID,InstanceID,1,3) triggle[4]=map.GetMapScriptData(MapID,InstanceID,1,4) triggle[5]=map.GetMapScriptData(MapID,InstanceID,1,5) triggle[6]=map.GetMapScriptData(MapID,InstanceID,1,6) triggle[7]=map.GetMapScriptData(MapID,InstanceID,1,7) triggle[8]=map.GetMapScriptData(MapID,InstanceID,1,8) triggle[9]=map.GetMapScriptData(MapID,InstanceID,1,9) local EvilMagicPixi = {3040120, 3040520, 3040550} local Hardness = map.GetMapScriptData(MapID, InstanceID, 1, 39) local trush = EvilMagicPixi[Hardness] local nummonster = map.GetMapScriptData(MapID,InstanceID,1,11) local j=map.GetMapScriptData(MapID,InstanceID,1,0) local bgot=map.GetMapScriptData(MapID,InstanceID,1,12) if ObjID==517 and bgot == 0 then fuckjapan_01(MapID, InstanceID,1) fuckjapan_01(MapID, InstanceID,2) fuckjapan_01(MapID, InstanceID,4) if j==1 then if nummonster<30 then map.MapCreateCreature(MapID, InstanceID, trush, 381, 15076, 235) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==518 and bgot == 0 then fuckjapan_01(MapID, InstanceID,1) fuckjapan_01(MapID, InstanceID,2) fuckjapan_01(MapID, InstanceID,3) fuckjapan_01(MapID, InstanceID,5) if j==1 then if nummonster<30 then map.MapCreateCreature(MapID, InstanceID, trush, 393, 15076, 235) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==519 and bgot == 0 then fuckjapan_01(MapID, InstanceID,3) fuckjapan_01(MapID, InstanceID,2) fuckjapan_01(MapID, InstanceID,6) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 405, 15076, 235) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==520 and bgot == 0 then fuckjapan_01(MapID, InstanceID,4) fuckjapan_01(MapID, InstanceID,1) fuckjapan_01(MapID, InstanceID,7) fuckjapan_01(MapID, InstanceID,5) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 381, 15076, 247) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==521 and bgot == 0 then fuckjapan_01(MapID, InstanceID,6) fuckjapan_01(MapID, InstanceID,8) fuckjapan_01(MapID, InstanceID,2) fuckjapan_01(MapID, InstanceID,4) fuckjapan_01(MapID, InstanceID,5) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 393, 15076, 247) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==522 and bgot == 0 then fuckjapan_01(MapID, InstanceID,3) fuckjapan_01(MapID, InstanceID,5) fuckjapan_01(MapID, InstanceID,6) fuckjapan_01(MapID, InstanceID,9) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 405, 15076, 247) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==523 and bgot == 0 then fuckjapan_01(MapID, InstanceID,4) fuckjapan_01(MapID, InstanceID,7) fuckjapan_01(MapID, InstanceID,8) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 381, 15076, 259) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==524 and bgot == 0 then fuckjapan_01(MapID, InstanceID,5) fuckjapan_01(MapID, InstanceID,7) fuckjapan_01(MapID, InstanceID,8) fuckjapan_01(MapID, InstanceID,9) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 393, 15076, 259) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end if ObjID==525 and bgot == 0 then fuckjapan_01(MapID, InstanceID,6) fuckjapan_01(MapID, InstanceID,8) fuckjapan_01(MapID, InstanceID,9) if j==1 then if nummonster <30 then map.MapCreateCreature(MapID, InstanceID, trush, 405, 15076, 259) nummonster=nummonster+1 map.SetMapScriptData(MapID,InstanceID,1,11,nummonster) end local objtarget = map.GetMapScriptData(MapID,InstanceID,1,10) if objtarget == 0 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 100097) msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID, -1) map.OpenCloseDoor(MapID, InstanceID, 441, 1) map.SetMapScriptData(MapID,InstanceID,1,12,1) end end end end aux.RegisterMapEvent("f06", 6, "f06_OnEnterTrigger") function c9010573_OnTalk(MapID, InstanceID, TargetID, TargetTypeID, RoleID, TalkIndex) if TalkIndex == -1 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 950906) msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 21, 4) msg.AddMsgEvent(MsgID, 1, 950746) -- обычный режим msg.AddMsgEvent(MsgID, 21, 5) msg.AddMsgEvent(MsgID, 1, 950747) -- легендарный msg.AddMsgEvent(MsgID, 21, 9) msg.AddMsgEvent(MsgID, 1, 100002) msg.DispatchRoleMsgEvent(RoleID, MsgID) elseif TalkIndex == 4 then -- сообщение для обычного режима local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 950907) msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 21, 6) --войти в обычный режим msg.AddMsgEvent(MsgID, 1, 950745) msg.AddMsgEvent(MsgID, 21, 9) msg.AddMsgEvent(MsgID, 1, 100002) msg.DispatchRoleMsgEvent(RoleID, MsgID) elseif TalkIndex == 5 then -- сообщение для легендарного режима local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 950908) msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 21, 7) -- войти в легендарный режим msg.AddMsgEvent(MsgID, 1, 950745) msg.AddMsgEvent(MsgID, 21, 9) msg.AddMsgEvent(MsgID, 1, 100002) msg.DispatchRoleMsgEvent(RoleID, MsgID) elseif TalkIndex == 6 then -- проверка в обычном режиме local level = role.GetRoleLevel(MapID, InstanceID, RoleID) local levelLowerLimit = 80 local levelUpperLimit = 120 if level > levelUpperLimit or level < levelLowerLimit then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 950909) msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 9, levelLowerLimit) msg.AddMsgEvent(MsgID, 9, levelUpperLimit) msg.AddMsgEvent(MsgID, 21, 9) msg.AddMsgEvent(MsgID, 1, 100002) msg.DispatchRoleMsgEvent(RoleID, MsgID) else role.SetRoleScriptData(RoleID, 1, RoleDataType["LegendaryDungeonFlag"], 0) role.RoleGotoNewMap(MapID, InstanceID, RoleID, 1266370638, 248, 12901, 54) end elseif TalkIndex == 7 then -- проверка в легендарном режиме local level = role.GetRoleLevel(MapID, InstanceID, RoleID) local levelLowerLimit = 95 local levelUpperLimit = 120 if level > levelUpperLimit or level < levelLowerLimit then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 950909) msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 9, levelLowerLimit) msg.AddMsgEvent(MsgID, 9, levelUpperLimit) msg.AddMsgEvent(MsgID, 21, 9) msg.AddMsgEvent(MsgID, 1, 100002) msg.DispatchRoleMsgEvent(RoleID, MsgID) elseif role.GetRoleItemNum(RoleID, 6601257) < 1 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 950910) msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 21, 9) msg.AddMsgEvent(MsgID, 1, 100002) msg.DispatchRoleMsgEvent(RoleID, MsgID) else role.SetRoleScriptData(RoleID, 1, RoleDataType["LegendaryDungeonFlag"], 1) role.RoleGotoNewMap(MapID, InstanceID, RoleID, 1266370638, 248, 12901, 54) end end end aux.RegisterCreatureEvent(9010573, 7, "c9010573_OnTalk")