Files
2026-06-01 12:46:52 +02:00

117 lines
4.4 KiB
Lua

function on_join_Anmar( layer )
local cnt_1 = get_alive_instance_respawn_group_monster_count( 170000, layer, 1 )
local cnt_2 = get_alive_instance_respawn_group_monster_count( 170000, layer, 2 )
local cnt_3 = get_alive_instance_respawn_group_monster_count( 170000, layer, 3 )
local cnt_4 = get_alive_instance_respawn_group_monster_count( 170000, layer, 4 )
local cnt_5 = get_alive_instance_respawn_group_monster_count( 170000, layer, 5 )
-- ?? ?? 1 ???
if( cnt_1 > 0 ) then
send_mission_title( '@9140300' )
broadcast_mission_reward( 1, '@90610864',170000,layer )
send_mission_objective( 0, 15, '@1224' )
send_mission_objective_progress( 0, 15 - cnt_1 )
--private_notice("ÙåÑÊ ÇáæÍæÔ Ýì ãäØÞÉ ÇáÛÑÈíÉ - ÛÑÝÉ ÇáÃÝÚí")
broadcast_notice( 1, "@9140308", 170000, layer )
-- ?? ?? 2 ???
elseif( cnt_2 > 0 ) then
send_mission_title( '@60015541' )
broadcast_mission_reward( 1, '@90610864',170000,layer )
send_mission_objective( 0, 15, '@1224' )
send_mission_objective_progress( 0, 15 - cnt_2 )
broadcast_notice( 1, "@9140307", 170000, layer )
-- ?? ?? 3 ???
elseif( cnt_3 > 0 ) then
send_mission_title( '@60015541' )
broadcast_mission_reward( 1, '@90610864',170000,layer )
send_mission_objective( 0, 15, '@1224' )
send_mission_objective_progress( 0, 15 - cnt_3 )
broadcast_notice( 1, "@9140306", 170000, layer )
-- ?? ?? 4 ???
elseif( cnt_4 > 0 ) then
send_mission_title( '@60015541' )
broadcast_mission_reward( 15, '@90610864',170000,layer )
send_mission_objective( 0, 1, '@1224' )
send_mission_objective_progress( 0, 1 - cnt_4 )
broadcast_notice( 1, "@9140305", 170000, layer )
elseif( cnt_5 > 0 ) then
send_mission_title( '@60015541' )
broadcast_mission_reward( 1, '@90610864',170000,layer )
send_mission_objective( 0, 1, '@1224' )
send_mission_objective_progress( 0, 1 - cnt_5 )
broadcast_notice( 1, "@9140305", 170000, layer )
end
end
function Anmar_respawn_dungeon( monster_group, layer )
local cnt = get_alive_instance_respawn_group_monster_count( 170000, layer, monster_group )
-- ??? ??
if monster_group == 1 then
broadcast_mission_objective_progress( 1, 0, 15 - cnt, 170000, layer )
elseif monster_group == 2 then
broadcast_mission_objective_progress( 1, 0, 15 - cnt, 170000, layer )
elseif monster_group == 3 then
broadcast_mission_objective_progress( 1, 0, 15 - cnt, 170000, layer )
elseif monster_group == 4 then
broadcast_mission_objective_progress( 1, 0, 15- cnt, 170000, layer )
elseif monster_group == 5 then
broadcast_mission_objective_progress( 1, 0, 1- cnt, 170000, layer )
end
-- ?? ??
if cnt == 0 then
if monster_group == 1 then -- ?? ??? 8???
broadcast_notice( 1, "@9140312", 170000, layer )
broadcast_mission_title( 1, '@9140301', 170000, layer )
broadcast_mission_objective( 1, 0, 15, '@1224', 170000, layer )
--add_field_prop( 150001, 0, 75685, 13739, layer, 0, 0, 0, 1.5, 0.3, 0.3, 0.3 ) --??? ?? ?? ??
-- 1? ?? ??
add_instance_dungeon_monster( 77001, 170000, layer)
-- 2? ?? ??
elseif monster_group == 2 then -- ?? ??? 8???
broadcast_notice( 1, "@9140311", 170000, layer )
broadcast_mission_title( 1, '@9140302', 170000, layer )
broadcast_mission_objective( 1, 0, 15, '@1224', 170000, layer )
--add_field_prop( 150002, 0, 75679, 12718, layer, 0, 0, 0, 1.5, 0.3, 0.3, 0.3 )
-- 2? ?? ??
add_instance_dungeon_monster( 77002, 170000, layer)
-- 3? ?? ??
elseif monster_group == 3 then -- ?? ??? 8???
broadcast_notice( 1, "@9140309", 170000, layer )
broadcast_mission_title( 1, '@9140303', 170000, layer )
broadcast_mission_objective( 1, 0, 15, '@1224', 170000, layer )
--add_field_prop( 150003, 0, 75694, 11734, layer, 0, 0, 0, 1.5, 0.3, 0.3, 0.3 )
-- 3? ?? ??
add_instance_dungeon_monster( 77003, 170000, layer)
-- 4? ?? ??
elseif monster_group == 4 then -- ?? ??? 8???
broadcast_notice( 1, "@9140310", 170000, layer )
broadcast_mission_title( 1, '@9140304', 170000, layer )
broadcast_mission_objective( 1, 0, 1, '@1224', 170000, layer )
--add_field_prop( 150005, 0, 83176, 210932, layer, 0, 0, 0, 13, 0.3, 0.3, 0.3 )
-- 3? ?? ??9140300
add_instance_dungeon_monster( 77004, 170000, layer)
end
end
end
function exit_dungeon_Ocean( dungeon_id )
-- dungeon2
if dungeon_id == 170000 then
-- TO DO
warp( 152753+ math.random(0,60) , 76976 + math.random(0,60) )
end
end