You changed itemflag on all items, making them only equipable by pets...
It has something to do with authentication, check .opt passes and sql pass
Read last part of the post
Code:
Visit Miracle Salad MD5
Create the password for your Admin Account
Example:
Spoiler
The MD5 hash [result of md5_key+plain-text-password] goes in the 'password' field of the dbo.Accounts table in the Auth Database
Create the account entry in dbo.Accounts and login!
Now i solved that problem but i can't join devildom dungeon. Old man ruz talking with me get out of my lake what i need to do
i think u can try to edit function NPC_DevildomDungeon() in ETC_dungeon_prop.lua
How i can make that friedn my ETC_dungeon_prop.lua file is here
PHP Code:
--- Lua 스크립트 암호화
function get_module_name()
return "ETC_dungeon_prop"
end
-- 제어장치 및 코어 점령시 호출될 함수.
-- 내부적으로 서버에서 제공하는 소유권 변경 함수 및 주변 몹 리젠 함수( respawn_near_mob( range ) )가 사용됨.
function casting_tactical_position( dungeon_id, position_id )
-- 호출된 지점의 (제어장치 혹은 던전 코어) 소유권을 변경시키는 부분
change_tactical_position_owner( dungeon_id, position_id )
-- 변경된 지점 주변의 가디언을 리젠
respawn_guardian_object( dungeon_id, position_id )
end
-- 던전 출구 클릭시 필드로 텔레포트 시켜 주는 일반 함수.
function exit_dungeon( dungeon_id )
-- 잃어버린 던전1
if dungeon_id == 130000 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 155817 + math.random(0,60) , 103724 + math.random(0,60) )
-- 잃어버린 던전2
elseif dungeon_id == 130600 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 152309 + math.random(0,60) , 102886 + math.random(0,60) )
-- 수정 계곡1
elseif dungeon_id == 130300 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 103210 + math.random(0,60) , 100366 + math.random(0,60) )
-- 수정 계곡2
elseif dungeon_id == 130500 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 99757 + math.random(0,60) , 103236 + math.random(0,60) )
-- 메마른 달빛의 유적1
elseif dungeon_id == 130400 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 132995 + math.random(0,60) , 87096 + math.random(0,60) )
-- 메마른 달빛의 유적2
elseif dungeon_id == 130700 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 130842 + math.random(0,60) , 79586 + math.random(0,60) )
-- 팔미르 제 1 유적
elseif dungeon_id == 130800 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 132680 + math.random(0,60) , 128030 + math.random(0,60) )
-- 팔미르 제 2 유적
elseif dungeon_id == 130900 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 137441 + math.random(0,60) , 128115 + math.random(0,60) )
-- 잃어버린 비밀의 섬(백룡의 쉼터)
elseif dungeon_id == 121000 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 91942 + math.random(0,60) , 117103 + math.random(0,60) )
-- 잃어버린 비밀의 섬(흑룡의 그늘)
elseif dungeon_id == 122000 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 85752 + math.random(0,60) , 118062 + math.random(0,60) )
-- 잃어버린 비밀의 섬(사룡의 심장)
elseif dungeon_id == 123000 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 91998 + math.random(0,60) , 124400 + math.random(0,60) )
-- 엘 카시아 워프 프랍 (엘 카시아 -> 마르두카 폭포 필드)
elseif dungeon_id == 120700 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 146015 + math.random(0,61) , 135591+ math.random(0,10) )
-- 숨겨진 팔미르 던전 워프 프랍 (숨겨진 팔미르 입구 -> 팔미르 제 1 실 입구 필드)
elseif dungeon_id == 120292 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 132680 + math.random(0,60) , 128030 + math.random(0,60) )
-- 숨겨진 수정 계곡 던전 워프 프랍 (숨겨진 수정 계곡 입구 -> 수정 계곡 입구 필드)
elseif dungeon_id == 70192 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 103234+ math.random(0,60) , 100310 + math.random(0,60) )
-- 고대인의 유적 던전 워프 프랍 (고대인의 유적 -> 사이라그 폐허 필드)
elseif dungeon_id == 121100 then
-- TO DO : 던전 입구 쪽의 텔레포트 좌표 넣어야 함
warp( 108674+ math.random(0,60) , 76570 + math.random(0,60) )
end
end
function common_warp_gate( x, y )
warp( x + math.random(0,10) , y + math.random(0,10), gv("layer") )
end
function warp_gate( prop_id )
-- 나비스 라미아 갑판
if prop_id == 130881 then
if find_item ( 1000077 ) == 1 then -- 고리수정
warp( 190072 + math.random(0,10) , 34171+ math.random(0,10), gv("layer") ) -- 텔레포트 좌표
else
cprint( "@1233" ) -- '워프게이트 사용을 위한 허가를 받지 못했습니다.'
end
end
-- 나비스 라미아 주방
if prop_id == 130883 then
-- 퀘스트 상태 체크 get_quest_progress(ID)
-- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 255 : 이미종료
local quest_progress3 = get_quest_progress(1247) -- 유령선 나비스라미아: 진행 3
-- 퀘스트 도중 다시 처음부터 시작 할때 진행 불가
if quest_progress3 == 2 or quest_progress3 == 255 then
warp( 190018 + math.random(0,10) , 37865+ math.random(0,10), gv("layer") ) -- 텔레포트 좌표
else
cprint( "@1233" )
end
end
-- 큐브릭 던전 입구 프랍, 던전 입장
if prop_id == 60101 then
if get_value( 'party_id' ) == 0 or get_value( 'level' ) < 150 then
--레벨 150이상, 파티를 결성해야 입장 가능 (1인이상, 사실상 의미 인원은 의미 없음)
cprint( "@9831" )
return
else
-- 같은 파티원만 입장할 수 있습니다.
cprint( "@9830" )
-- 던전 입장
dlg_special( 'confirm_window', 'warp_to_instance_dungeon(30000)', '@9825\v#@dungeon_name@#\v@80030000' )
end
elseif prop_id == 60110 then
-- 입구8
warp_to_cubric_branch_room( 1 )
-- 10번방 입장(최종보스)
elseif prop_id == 60111 then
local sub_boss1_alive = get_alive_instance_respawn_group_monster_count( 30000, gv('layer'), 1 )
local sub_boss2_alive = get_alive_instance_respawn_group_monster_count( 30000, gv('layer'), 2 )
if sub_boss1_alive == 0 and sub_boss2_alive == 0 then
if get_quest_progress(3606) == 1 then -- <(version:7.4)>[큐브릭]탈출 시도 #2
set_quest_status( 3606, 1, 1 )
cprint( "@90605055" ) -- <(version:7.4)><#6DD66D>바닥이 진동합니다.
else
warp(99018 , 30995, gv('layer') ) -- 입구9-1
end
-- 중간보스(아카샤그린) 제거후 나타나는 포탈
elseif prop_id == 60155 then
dlg_special( 'confirm_window', 'warp_to_cubric_branch_room( 1 )', '@9829' ) -- 9번방으로 입장
-- 중간보스(아카샤사이안) 제거후 나타나는 포탈
elseif prop_id == 60156 then
dlg_special( 'confirm_window', 'warp_to_cubric_branch_room( 2 )', '@9829' ) -- 9번방으로 입장
--==========================================에픽 9.1 붉은 거미 서커스단 포털
elseif prop_id == 60192 then -- 붉은거미 서커스
local level = get_value( 'level' )
if level >= 150 then
dlg_special( 'confirm_window', 'warp(35692 , 120963 )', '@9852' ) -- 붉은거미 서커스 지역으로 입장하시겠습니까?
elseif level < 150 then
cprint( "@9254" ) -- 150레벨 이하는 입장할 수 없습니다.
end
end
end
function parallelworld_exit()
if get_quest_progress(4009) == 1 then -- [일일]틈새조사 : 타임어택
dlg_special( 'confirm_window', 'exit_indun( 0 )', '@9911' )
else
dlg_special( 'confirm_window', 'exit_indun( 0 )', '@9906' )
end
end
function quest_start_4009()
delete_item( get_item_handle( 2016026 ), 1 )
warp_to_instance_dungeon(70000)
end
function on_create_parallelworld_instance( dungeon_id, layer )
local state_code = get_local_info() -- 국가코드
local current_time = get_os_date( "%Y-%m-%d %H:%M:%S" ) -- 현재 시간
-- check 가 1이 되야 이벤트 리스폰. 수정체 소환 이벤트
local check = 0
-- 북미 이벤트 (2월 1일 ~ 9월 29일) :
if ( state_code == 4 or state_code == 8 or state_code == 128 or state_code == 16384 or state_code == 32768 or state_code == 65536 )
and '2017-09-12 08:00:00' <= current_time and current_time < '2017-10-24 08:00:00' then
check = 1
elseif state_code == 256 and '2016-02-29 08:00:00' <= current_time and current_time < '2016-03-21 08:00:00' then
check = 1
end
-- 카운트 처리
if left_monster_count == 0 then
if respawn_group == 60001 then
local text = sconv( "@9910", "#@boss_no@#", tostring( 1 ) )
broadcast_notice( 1, text, 60000, layer )
-- 숨겨진 사룡의 심장 ID 70080101
dlg_special( 'confirm_window', 'warp_to_secret_dungeon(80101)', '@728\v#@dungeon_name@#\v@70080101' )
elseif prop_id == 110191 then
-- 숨겨진 엘카시아 ID 70110101
dlg_special( 'confirm_window', 'warp_to_secret_dungeon(110101)', '@728\v#@dungeon_name@#\v@70110101' )
elseif prop_id == 70191 then
-- 숨겨진 수정계곡 ID 70070101
dlg_special( 'confirm_window', 'warp_to_secret_dungeon(70101)', '@728\v#@dungeon_name@#\v@70070101' )
else
end
end
--------------------------------------------------------------------------------------------------------------------------
function exit_instance_dungeon( prop_id )
--------------------------------------------------------------------------------------------------------------------------
function exit_indun_confirm()
dlg_special( 'confirm_window', 'exit_indun( 0 )', '@9920' )
end
function exit_indun( dungeon_id )
local hx
local hy
if (gv('hx') == nil or gv('hx') == "") and (gv('hy') == nil or gv('hy') == "") then -- 해외
hx = get_flag( 'hx' )
hy = get_flag( 'hy' )
else -- 국내
hx = gv( 'hx' )
hy = gv( 'hy' )
end
warp( hx, hy, 0 )
end
---------------------------------------------------------------------------------------
-- 큐브릭
---------------------------------------------------------------------------------------
-- 용도: 큐브릭 인스턴스 던전이 생성될 때마다 호출되는 함수
-- 역할: 큐브릭 던전의 진행상황 정보 초기값 세팅
function on_create_cubric_instance( layer )
-- 큐브릭 인스턴스 던전 ID: 30000
set_instance_dungeon_flag( 30000, layer, 'QuestInProgressCount', 0 ) -- 인던 진행 퀘스트 체크 대상인 3607 퀘스트를 진행 중인 유저 수 체크용
set_instance_dungeon_flag( 30000, layer, 'AdditionalBossRespawned', 0 ) -- 인던 진행 퀘스트로 인해 추가 보스몹들의 리젠 여부 체크용(중첩 리젠 방지용)
set_instance_dungeon_flag( 30000, layer, 'ExitPropRespawned', 0 ) -- 인던 최종 출구 프랍 리젠 여부 체크용(중첩 리젠 방지용)
set_instance_dungeon_flag( 30000, layer, 'MissionRevealed', 0 ) -- 아크샤 두 마리 잡으라는 미션을 유저들에게 보여줬는지 체크용(0:활성화 전, 1:활성화 중, 2:미션 완료)
end
-- 용도: 큐브릭 인스턴스 던전에 유저가 참여할 때마다 호출되는 함수
-- 역할: 방금 참여한 유저가 체크 대상인 퀘스트를 보유하고 있었을 경우 던전 내부 체크용 변수 세팅
function on_join_cubric( layer )
-- 방금 진입한 유저가 3607 퀘스트를 진행 중이라면 던전 상태 변수에 반영
-- * 이전에 퀘 받아놓고 완료 조건 못 채우고 나갔던 유저면 반영하지만
-- 완료 조건이 달성되어 있는 유저라면 퀘스트를 진행하고 있는 상태라고 볼 수 없으므로 반영하지 않음
-- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 100 : 실패 / 255 : 이미종료
if get_quest_progress( 3607 ) == 1 then
-- 미션 목표 진행 상태
update_cubric_mission( false, layer )
end
end
-- 용도: 큐브릭 인스턴스 던전에서 유저가 이탈할 때마다 호출되는 함수
-- 역할: 방금 이탈한 유저가 체크 대상인 퀘스트를 보유하고 있었을 경우 던전 내부 체크용 변수 세팅
function on_leave_cubric( layer )
-- 방금 이탈한 유저가 3607 퀘스트를 진행 중이라면 던전 상태 변수에 반영
-- * 퀘 받아놓고 완료 조건 못 채우고 나가는 유저면 반영하지만
-- 완료 조건이 달성되어 있는 유저라면 퀘스트를 진행 중인 상태라고 볼 수 없으므로 반영하지 않음
-- (예. 퀘 받고 몹 죽여서 보상 받으면 되지만 보상만 안 받고 나간 경우)
-- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 100 : 실패 / 255 : 이미종료
if get_quest_progress( 3607 ) == 1 then
-- 미션 UI가 활성화 된 이후였으면 미션 UI 닫아주기
if get_instance_dungeon_flag( 30000, layer, 'MissionRevealed' ) == 1 then
send_mission_title( '' )
end
end
-- 용도: 몬스터 죽을 때마다 호출되는 함수
-- 역할: 죽은 몬스터의 리스폰 그룹에 남은 몬스터 수를 체크하여 모두 죽었을 프랍을 열어 주거나 아무 것도 하지 않거나 함
function cubric_check_respawn_group_clear( respawn_group, x, y, layer )
if respawn_group == 1 or respawn_group == 2 then -- 부 보스 그룹으로 리젠된 몬스터가 죽은 경우
add_field_prop( 60156, 0, x, y, layer, 0 )
update_cubric_mission( true, layer )
elseif respawn_group == 3 then
-- 보스는 한 마리밖에 리젠 안 되기 때문에 모두 죽었는지 체크할 필요 없음
-- 큐브릭 던전 진행 퀘스트가 진행 중일 경우에는 밖으로 출구 프랍을 생성하지 않고,
-- 퀘스트가 진행 중인 유저가 하나도 없다면 그냥 밖으로 나갈 수 있도록 포탈 열어 줌
-- 진행 중인지 판별하는 퀘스트는 [ID:3607 <(version:7.4)>[큐브릭]악마 큐브]를 사용(QuestResource.script_start_text, script_end_text, script_drop_text를 이용하여 세팅함)
if get_instance_dungeon_flag( 30000, layer, 'QuestInProgressCount' ) == 0 then
add_field_prop( 60102, 0, 99954, 31302, layer, 0 ) -- 출구 프랍 99954, 31302 로 옮겨주면 좋겠다. 기존 좌표 99954, 31539
set_instance_dungeon_flag( 30000, layer, 'ExitPropRespawned', 1 )
add_field_prop( 9001, 0, 100180, 31767, layer, -3, 0, 0, 0, 1, 1, 1 ) --보스 생성 프랍
broadcast_notice( 1, "@90610144", 30000, layer ) -- 프랍 클릭하면 보스 나온다는 메세지?
end
end
end
-- 용도: 아크샤 잡고 생성된 포탈 클릭 시 호출되는 함수
-- 역할: 중앙의 갈림길 방으로 플레이어를 워프시키면서 아크샤를 두 마리 잡아야 한다는 미션 UI를 활성화시켜 줌
function warp_to_cubric_branch_room( side )
-- 용도: 미션 UI를 업데이트 해야 하는 몇몇 경우에 호출(부보스 사망, 유저 입장 등)
-- 역할: 미션 UI를 업데이트해야 하는 이벤트 발생 시 방 안의 모든 유저 또는 현재 스크립트 실행 주체 유저에게 미션 내용 알려주기
function update_cubric_mission( broadcast, layer )
-- 미션이 진행 중이지 않다면 딱히 알려줄 것도 없음
if get_instance_dungeon_flag( 30000, layer, 'MissionRevealed' ) ~= 1 then
return
end
if broadcast == true then
broadcast_mission_objective_progress( 1, 0, 1 - get_alive_instance_respawn_group_monster_count( 30000, layer, 1 ), 30000, layer )
broadcast_mission_objective_progress( 1, 1, 1 - get_alive_instance_respawn_group_monster_count( 30000, layer, 2 ), 30000, layer)
broadcast_mission_objective_progress( 1, 2, 0, 30000, layer )
else
send_mission_objective_progress( 0, 1 - get_alive_instance_respawn_group_monster_count( 30000, layer, 1 ) )
send_mission_objective_progress( 1, 1 - get_alive_instance_respawn_group_monster_count( 30000, layer, 2 ) )
send_mission_objective_progress( 2, 0 )
end
end
function Call_BossMob( monster_handle )
local monster_id = get_monster_id( monster_handle )
local layer = ghv( monster_handle, 'layer' )
local quest_progress3644 = get_quest_progress(3644) -- [일일]던전 토벌: 메두사 사냥
local quest_progress3645 = get_quest_progress(3645) -- [일일]던전 토벌: 블랙 위도우 사냥
local quest_progress3646 = get_quest_progress(3646) -- [일일]던전 토벌: 본 드래곤 사냥
local quest_progress3647 = get_quest_progress(3647) -- [일일]던전 토벌: 미크로랍토르 사냥
-- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 100 : 실패 / 255 : 이미종료
local X_pos = gv('x')
local Y_pos = gv('y')
--==========================================================================1단계
if monster_id == 20190005 then -- 바질리스크<1단계>
if get_quest_status( 3647 , 3 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 3 ) + 1
set_quest_status( 3647, 3, A_day_A_quest )
end
end ]]
end
--==========================================================================2단계
if monster_id == 20190032 then -- 바질리스크<2단계>
if get_quest_status( 3647 , 3 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 3 ) + 1
set_quest_status( 3647, 3, A_day_A_quest )
end
end ]]
end
--==========================================================================3단계
if monster_id == 20190059 then -- 바질리스크<3단계>
if get_quest_status( 3647 , 3 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 3 ) + 1
set_quest_status( 3647, 3, A_day_A_quest )
end
end ]]
end
--==========================================================================4단계
if monster_id == 20190086 then -- 바질리스크<4단계>
if get_quest_status( 3647 , 3 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 3 ) + 1
set_quest_status( 3647, 3, A_day_A_quest )
end
end ]]
end
end
function Call_Main_Chest( monster_handle )
local monster_id = get_monster_id( monster_handle )
local layer = ghv( monster_handle, 'layer' )
local quest_progress3644 = get_quest_progress(3644) -- [일일]던전 토벌: 메두사 사냥
local quest_progress3645 = get_quest_progress(3645) -- [일일]던전 토벌: 블랙 위도우 사냥
local quest_progress3646 = get_quest_progress(3646) -- [일일]던전 토벌: 본 드래곤 사냥
local quest_progress3647 = get_quest_progress(3647) -- [일일]던전 토벌: 미크로랍토르 사냥
-- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 100 : 실패 / 255 : 이미종료
local X_pos = gv('x')
local Y_pos = gv('y')
if monster_id == 20190001 or monster_id == 20190006 --메던 지하기지 1단계
or monster_id == 20190028 or monster_id == 20190033 --메던 지하기지 2단계
or monster_id == 20190055 or monster_id == 20190060 --메던 지하기지 3단계
or monster_id == 20190082 or monster_id == 20190087 then --메던 지하기지 4단계
local monster_count = get_instance_dungeon_flag( 40000, layer, 'check_open_prop')
if monster_count == 2 then
set_instance_dungeon_flag( 40000, layer, 'check_open_prop', 1)
elseif monster_count == 1 then
add_field_prop ( 60170, 60000, 38719, 22938, layer )
set_instance_dungeon_flag( 40000, layer, 'check_open_prop', 0)
if get_instance_dungeon_type_id( 40000, layer ) == 3 then
add_field_prop( 9002, 0, 38881, 22826, layer, -3, 0, 0, 0, 1, 1, 1 ) --보스 생성 프랍
broadcast_notice( 1, "@90610144", 40000, layer ) -- 프랍 클릭하면 보스 나온다는 메세지?
end
end
if monster_id == 20190001 or monster_id == 20190028 or monster_id == 20190055 or monster_id == 20190082 then
do_each_player_in_instance_dungeon( 40000, layer, "set_quest_status( 3644, 1, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3644 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 1 ) + 1
set_quest_status( 3644, 1, A_day_A_quest )
end ]]
--[[ elseif quest_progress3644 == 1 and monster_id == 20190028 then
if get_quest_status( 3644 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 1 ) + 1
set_quest_status( 3644, 1, A_day_A_quest )
end
elseif quest_progress3644 == 1 and monster_id == 20190055 then
if get_quest_status( 3644 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 1 ) + 1
set_quest_status( 3644, 1, A_day_A_quest )
end
elseif quest_progress3644 == 1 and monster_id == 20190082 then
if get_quest_status( 3644 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 1 ) + 1
set_quest_status( 3644, 1, A_day_A_quest )
end ]]
elseif monster_id == 20190006 or monster_id == 20190033 or monster_id == 20190060 or monster_id == 20190087 then
do_each_player_in_instance_dungeon( 40000, layer, "set_quest_status( 3644, 2, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3644 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 2 ) + 1
set_quest_status( 3644, 2, A_day_A_quest )
end
elseif quest_progress3644 == 1 and monster_id == 20190033 then
if get_quest_status( 3644 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 2 ) + 1
set_quest_status( 3644, 2, A_day_A_quest )
end
elseif quest_progress3644 == 1 and monster_id == 20190060 then
if get_quest_status( 3644 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 2 ) + 1
set_quest_status( 3644, 2, A_day_A_quest )
end
elseif quest_progress3644 == 1 and monster_id == 20190087 then
if get_quest_status( 3644 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3644 , 2 ) + 1
set_quest_status( 3644, 2, A_day_A_quest )
end ]]
end
elseif monster_id == 20190025 or monster_id == 20190008 --탄광 지하기지 1단계
or monster_id == 20190052 or monster_id == 20190035 --탄광 지하기지 2단계
or monster_id == 20190079 or monster_id == 20190062 --탄광 지하기지 3단계
or monster_id == 21190106 or monster_id == 20190089 then --탄광 지하기지 4단계
local monster_count = get_instance_dungeon_flag( 41001, layer, 'check_open_prop')
if monster_count == 2 then
set_instance_dungeon_flag( 41001, layer, 'check_open_prop', 1)
elseif monster_count == 1 then
add_field_prop ( 60171, 60000, 40379, 9573, layer )
set_instance_dungeon_flag( 41001, layer, 'check_open_prop', 0)
if get_instance_dungeon_type_id( 41001, layer ) == 3 then
add_field_prop( 9003, 0, 40487, 9490, layer, -3, 0, 0, 0, 1, 1, 1 ) --보스 생성 프랍
broadcast_notice( 1, "@90610144", 40001, layer ) -- 프랍 클릭하면 보스 나온다는 메세지?
end
end
if monster_id == 20190025 or monster_id == 20190052 or monster_id == 20190079 or monster_id == 21190106 then
do_each_player_in_instance_dungeon( 41001, layer, "set_quest_status( 3645, 1, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3645 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 1 ) + 1
set_quest_status( 3645, 1, A_day_A_quest )
end
elseif quest_progress3645 == 1 and monster_id == 20190052 then
if get_quest_status( 3645 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 1 ) + 1
set_quest_status( 3645, 1, A_day_A_quest )
end
elseif quest_progress3645 == 1 and monster_id == 20190079 then
if get_quest_status( 3645 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 1 ) + 1
set_quest_status( 3645, 1, A_day_A_quest )
end
elseif quest_progress3645 == 1 and monster_id == 21190106 then
if get_quest_status( 3645 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 1 ) + 1
set_quest_status( 3645, 1, A_day_A_quest )
end ]]
elseif monster_id == 20190008 or monster_id == 20190035 or monster_id == 20190062 or monster_id == 20190089 then
do_each_player_in_instance_dungeon( 41001, layer, "set_quest_status( 3645, 2, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3645 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 2 ) + 1
set_quest_status( 3645, 2, A_day_A_quest )
end
elseif quest_progress3645 == 1 and monster_id == 20190035 then
if get_quest_status( 3645 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 2 ) + 1
set_quest_status( 3645, 2, A_day_A_quest )
end
elseif quest_progress3645 == 1 and monster_id == 20190062 then
if get_quest_status( 3645 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 2 ) + 1
set_quest_status( 3645, 2, A_day_A_quest )
end
elseif quest_progress3645 == 1 and monster_id == 20190089 then
if get_quest_status( 3645 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3645 , 2 ) + 1
set_quest_status( 3645, 2, A_day_A_quest )
end ]]
end
elseif monster_id == 20190026 or monster_id == 20190012
or monster_id == 20190053 or monster_id == 20190039
or monster_id == 20190080 or monster_id == 20190066
or monster_id == 21190107 or monster_id == 20190093 then
local monster_count = get_instance_dungeon_flag( 42001, layer, 'check_open_prop')
if monster_count == 2 then
set_instance_dungeon_flag( 42001, layer, 'check_open_prop', 1)
elseif monster_count == 1 then
add_field_prop ( 60172, 60000, 61784, 31019, layer )
set_instance_dungeon_flag( 42001, layer, 'check_open_prop', 0)
if get_instance_dungeon_type_id( 42001, layer ) == 3 then
add_field_prop( 9004, 0, 61621, 30896, layer, -3, 0, 0, 0, 1, 1, 1 ) --보스 생성 프랍
broadcast_notice( 1, "@90610144", 42001, layer ) -- 프랍 클릭하면 보스 나온다는 메세지?
end
end
if monster_id == 20190026 or monster_id == 20190053 or monster_id == 20190080 or monster_id == 21190107 then
do_each_player_in_instance_dungeon( 42001, layer, "set_quest_status( 3646, 1, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3646 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 1 ) + 1
set_quest_status( 3646, 1, A_day_A_quest )
end
elseif quest_progress3646 == 1 and monster_id == 20190053 then
if get_quest_status( 3646 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 1 ) + 1
set_quest_status( 3646, 1, A_day_A_quest )
end
elseif quest_progress3646 == 1 and monster_id == 20190080 then
if get_quest_status( 3646 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 1 ) + 1
set_quest_status( 3646, 1, A_day_A_quest )
end
elseif quest_progress3646 == 1 and monster_id == 21190107 then
if get_quest_status( 3646 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 1 ) + 1
set_quest_status( 3646, 1, A_day_A_quest )
end ]]
elseif monster_id == 20190012 or monster_id == 20190039 or monster_id == 20190066 or monster_id == 20190093 then
do_each_player_in_instance_dungeon( 42001, layer, "set_quest_status( 3646, 2, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3646 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 2 ) + 1
set_quest_status( 3646, 2, A_day_A_quest )
end
elseif quest_progress3646 == 1 and monster_id == 20190039 then
if get_quest_status( 3646 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 2 ) + 1
set_quest_status( 3646, 2, A_day_A_quest )
end
elseif quest_progress3646 == 1 and monster_id == 20190066 then
if get_quest_status( 3646 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 2 ) + 1
set_quest_status( 3646, 2, A_day_A_quest )
end
elseif quest_progress3646 == 1 and monster_id == 20190093 then
if get_quest_status( 3646 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3646 , 2 ) + 1
set_quest_status( 3646, 2, A_day_A_quest )
end ]]
end
elseif monster_id == 20190027 or monster_id == 20190010
or monster_id == 20190054 or monster_id == 20190037
or monster_id == 20190081 or monster_id == 20190064
or monster_id == 21190108 or monster_id == 20190091 then
local monster_count = get_instance_dungeon_flag( 43001, layer, 'check_open_prop')
if monster_count == 2 then
set_instance_dungeon_flag( 43001, layer, 'check_open_prop', 1)
elseif monster_count == 1 then
add_field_prop ( 60173, 60000, 53659, 4147, layer )
set_instance_dungeon_flag( 43001, layer, 'check_open_prop', 0)
if get_instance_dungeon_type_id( 43001, layer ) == 3 then
add_field_prop( 9005, 0, 53512, 4356, layer, -3, 0, 0, 0, 1, 1, 1 ) --보스 생성 프랍
broadcast_notice( 1, "@90610144", 43001, layer ) -- 프랍 클릭하면 보스 나온다는 메세지?
end
end
if monster_id == 20190027 or monster_id == 20190054 or monster_id == 20190081 or monster_id == 21190108 then
do_each_player_in_instance_dungeon( 43001, layer, "set_quest_status( 3647, 1, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3647 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 1 ) + 1
set_quest_status( 3647, 1, A_day_A_quest )
end
elseif quest_progress3647 == 1 and monster_id == 20190054 then
if get_quest_status( 3647 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 1 ) + 1
set_quest_status( 3647, 1, A_day_A_quest )
end
elseif quest_progress3647 == 1 and monster_id == 20190081 then
if get_quest_status( 3647 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 1 ) + 1
set_quest_status( 3647, 1, A_day_A_quest )
end
elseif quest_progress3647 == 1 and monster_id == 21190108 then
if get_quest_status( 3647 , 1 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 1 ) + 1
set_quest_status( 3647, 1, A_day_A_quest )
end ]]
elseif monster_id == 20190010 or monster_id == 20190037 or monster_id == 20190064 or monster_id == 20190091 then
do_each_player_in_instance_dungeon( 43001, layer, "set_quest_status( 3647, 2, 1 )", X_pos, Y_pos )
--[[ if get_quest_status( 3647 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 2 ) + 1
set_quest_status( 3647, 2, A_day_A_quest )
end
elseif quest_progress3647 == 1 and monster_id == 20190037 then
if get_quest_status( 3647 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 2 ) + 1
set_quest_status( 3647, 2, A_day_A_quest )
end
elseif quest_progress3647 == 1 and monster_id == 20190064 then
if get_quest_status( 3647 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 2 ) + 1
set_quest_status( 3647, 2, A_day_A_quest )
end
elseif quest_progress3647 == 1 and monster_id == 20190091 then
if get_quest_status( 3647 , 2 ) == 0 then
local A_day_A_quest = get_quest_status( 3647 , 2 ) + 1
set_quest_status( 3647, 2, A_day_A_quest )
end ]]
end
end
end
function Open_Chest( prop_id )
local count = find_item( 601100310 )
if prop_id == 60157 or prop_id == 60159 or prop_id == 60161 or prop_id == 60162 or prop_id == 60163 then
if count >= 1 then
-- 만족하면 열쇠 수거하고
delete_item( get_item_handle( 601100310 ), 1 )
end
end
end
function Open_main_Chest( prop_id )
local index_num_1 = math.random ( 0, 2 )
if prop_id == 60176 then -- 메두사의 투구가 나오는 프랍
function Call_Script_Witch_Death( monster_handle )
local monster_id = get_monster_id( monster_handle )
local quest_progress3648 = get_quest_progress(3648) -- [반복]지하 기지 소탕
-- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 100 : 실패 / 255 : 이미종료
if monster_id == 20190002 or monster_id == 20190029 or monster_id == 20190056 or monster_id == 20190083 then
if quest_progress3648 == 1 then
if get_quest_status( 3648 , 1 ) < 50 then
local A_day_A_quest = get_quest_status( 3648 , 1 ) + 1
set_quest_status( 3648, 1, A_day_A_quest )
end
end
elseif monster_id == 20190003 or monster_id == 20190030 or monster_id == 20190057 or monster_id == 20190084 then
if quest_progress3648 == 1 then
if get_quest_status( 3648 , 2 ) < 50 then
local A_day_A_quest = get_quest_status( 3648 , 2 ) + 1
set_quest_status( 3648, 2, A_day_A_quest )
end
end
elseif monster_id == 20190004 or monster_id == 20190031 or monster_id == 20190058 or monster_id == 20190085 then
if quest_progress3648 == 1 then
if get_quest_status( 3648 , 3 ) < 50 then
local A_day_A_quest = get_quest_status( 3648 , 3 ) + 1
set_quest_status( 3648, 3, A_day_A_quest )
end
end
end
end
-- *add_instance_dungeon_monster( 몬스터리젠ID, 인던ID, 레이어번호): 해당 레이어 인던에 해당 몬스터 리젠 ID의 몬스터 그룹 생성*
-- 서커스 던전 내에 특정 몬스터 그룹이 전멸 했을 때 다음 던전 진행을 처리하기 위해 사용되는 스크립트
function circus_check_respawn_group_clear( monster_group, layer )
-- monster_group 번호의 숫자를 세서 전멸이면 다음 던전 진행 처리를 한다.
local cnt = get_alive_instance_respawn_group_monster_count( 50000, layer, monster_group )
-- 카운트 처리
if monster_group == 1 then
broadcast_mission_objective_progress( 1, 0, 10 - cnt, 50000, layer )
elseif monster_group == 2 then
broadcast_mission_objective_progress( 1, 0, 13 - cnt, 50000, layer )
elseif monster_group == 3 then
broadcast_mission_objective_progress( 1, 0, 13 - cnt, 50000, layer )
elseif monster_group == 4 then
broadcast_mission_objective_progress( 1, 0, 23 - cnt, 50000, layer )
elseif monster_group == 5 then
broadcast_mission_objective_progress( 1, 0, 19 - cnt, 50000, layer )
end
-- 전멸 처리
if cnt == 0 then
if monster_group == 1 then -- 전멸 그룹이 1번이면
add_field_prop( 60186, 0, 38958, 137159, layer, 0, 0, 0, 1.5, 0.3, 0.3, 0.3 ) --작은방 입구 프랍 생성
if get_instance_dungeon_type_id( 50000, layer ) == 3 then
add_field_prop( 9006, 0, 39556, 137014, layer, -3, 0, 0, 0, 1, 1, 1 ) --보스 생성 프랍
broadcast_notice( 1, "@90610144", 50000, layer ) -- 프랍 클릭하면 보스 나온다는 메세지?
end
broadcast_mission_title( 1, '', 50000, layer )
-- private_notice("@90606232") -- 안내 메시지 출력
broadcast_notice( 1, "@90606232", 50000, layer )
end
end
end
function on_join_circus( layer )
local cnt_1 = get_alive_instance_respawn_group_monster_count( 50000, layer, 1 )
local cnt_2 = get_alive_instance_respawn_group_monster_count( 50000, layer, 2 )
local cnt_3 = get_alive_instance_respawn_group_monster_count( 50000, layer, 3 )
local cnt_4 = get_alive_instance_respawn_group_monster_count( 50000, layer, 4 )
local cnt_5 = get_alive_instance_respawn_group_monster_count( 50000, layer, 5 )
local state_code = get_local_info()
--add_instance_dungeon_monster( 50049, 50000, gv('layer'))
if state_code == 1 or 16 then
add_npc( X_pos, Y_pos, Mob_id, 1, 0, gv('layer') )
else
add_npc( X_pos, Y_pos, Mob_id+7, 1, 0, gv('layer') )
end
end
------------------------------------------------------------------------------------------------------------
function NPC_DevildomDungeon()
local npc_name = "@"..get_npc_type().."|@"..get_npc_name()
dlg_title(npc_name)
dlg_text( "@90610399" )
local stage = get_instance_dungeon_flag( 80000, gv('layer'), 'stage' )
if stage >= 11 then
dlg_menu( "@90610400", "warp( 22626, 54881, gv('layer'))" )
end
if stage >= 21 then
dlg_menu( "@90610401", "warp( 19129, 58384, gv('layer') )" )
end
if stage >= 31 then
dlg_menu( "@90610855", "warp( 25028, 61184, gv('layer') )" )
end
if stage >= 41 then
dlg_menu( "@90610856", "warp( 28028, 56184, gv('layer') )" )
end
if stage >= 51 then
dlg_menu( "@90610857", "warp( 25028, 51184, gv('layer') )" )
end
local prop = 10300
local dur = 0
local height = 280
local cnt = table.getn(pgate)/3 -1
for i = stage, cnt do
local posx = pgate[1+(i-1)*3+0]
local posy = pgate[1+(i-1)*3+1]
local dir = pgate[1+(i-1)*3+2]
add_field_prop(prop+i,dur,posx,posy,layer,height,0,0,dir)
end
if stage == 1 then
set_instance_dungeon_flag( 80000, layer, 'monster_count', 0 )
elseif stage == 11 then
set_instance_dungeon_flag( 80000, layer, 'monster_count', 101 )
elseif stage == 21 then
set_instance_dungeon_flag( 80000, layer, 'monster_count', 202 )
elseif stage == 31 then
set_instance_dungeon_flag( 80000, layer, 'monster_count', 303 )
elseif stage == 41 then
set_instance_dungeon_flag( 80000, layer, 'monster_count', 355 )
elseif stage == 51 then
set_instance_dungeon_flag( 80000, layer, 'monster_count', 407 )
end
end
function MMT_open_door(stage)
local layer = gv('layer')
MMT_action(layer,stage+1)
set_instance_dungeon_flag( 80000, layer, 'stage', stage+1 )
end
--- stage:2 는 2번방 몬스터 생성
function MMT_action(layer,stage)
local state_code = get_local_info()
if layer == -1 then
layer = gv('layer')
end
local type, monster
if math.mod(stage, 5) ~= 0 and math.mod(stage, 5) ~= 1 then -- 중보, 보스, 시작방 빼고
type = math.random(1, 8)
if stage <= 30 then
monster = math.random(22000185, 22000191) + math.floor( stage / 10 )*11
else
local Marray =
{ 0, 22000315, 22000318, 22000321, 0, 0, 22000324, 22000327, 22000330, 0, -- 31층
0, 22000333, 22000336, 22000339, 0, 0, 22000342, 22000345, 22000348, 0, -- 41층
0, 22000351, 22000354, 22000357, 0, 0, 22000360, 22000363, 22000366, 0, -- 51층
}
local regen_monster = Marray[stage-30]
monster = math.random(regen_monster, regen_monster+2) -- 31층 이상 일반몹...
end
MMT_regen(layer,stage, type, monster)
elseif math.mod(stage+5, 10) == 0 then -- 중보
if stage <= 30 then
type = math.random(21, 22)
else
if state_code == 8192 then
type = 23
else
type = math.random( 47, 48 )
end
end
MMT_regen(layer,stage, type, 0)
elseif math.mod(stage, 10) == 0 and stage ~= 60 then --보스 // 마지막 방은 포함 안되도록
if stage <= 30 then
type = math.random(31, 32)
else
if state_code == 8192 then
type = 23
else
type = math.random( 47, 48 )
end
end
MMT_regen(layer,stage, type, 0)
elseif stage == 60 then
type = math.random(41, 45)
if state_code == 4 or state_code == 8 or state_code == 128 or state_code == 16384 or state_code == 32768 or state_code == 65536 then
local awBelt = find_item( 3100048 )
if awBelt >= 1 then
MMT_regen(layer,stage, 46, 0)
set_instance_dungeon_flag( 80000, layer, 'final_count' ,459 )
else
MMT_regen(layer,stage, type, 0)
set_instance_dungeon_flag( 80000, layer, 'final_count' ,457 )
end
else
MMT_regen(layer,stage, type, 0)
set_instance_dungeon_flag( 80000, layer, 'final_count' ,457 )
end
elseif math.mod(stage, 5) == 1 then
--cprint("쉬어가셈")
end
end
function MMT_regen(layer, stage, generate_type, monster_id)
local parray =
{ 19128,51384,2, 19128,52084,2, 19128,52784,2, 19128,53484,2, 19128,54184,2,
19828,54184,1, 20528,54184,1, 21228,54184,1, 21928,54184,1, 22628,54184,1,
local ppattern21 = { 0,8,22000194, -10,0,22000192} -- 중보, 푸른
local ppattern22 = { 0,8,22000194, 10,0,22000193} -- 중보, 붉은
local ppattern23 = { 0,0,22000370, 0,2,22000369} -- 31층 이상 중보, 쫄보
local ppattern31 = { 0,0,22000195, 0,12,22000193, -10,0,22000192} -- 보스, 붉은, 푸른
local ppattern32 = { 0,0,22000195, 0,12,22000192, 10,0,22000193} -- 보스, 푸른, 붉
local ppattern41 = { 0,0,22000384, -2,0,22000379, 2,0,22000380, 0,-2,22000381} -- 보스, 보스쫄 3마리
local ppattern42 = { 0,0,22000384, -2,0,22000380, 2,0,22000381, 0,-2,22000382} -- 보스, 보스쫄 3마리
local ppattern43 = { 0,0,22000384, -2,0,22000381, 2,0,22000382, 0,-2,22000383} -- 보스, 보스쫄 3마리
local ppattern44 = { 0,0,22000384, -2,0,22000379, 2,0,22000382, 0,-2,22000383} -- 보스, 보스쫄 3마리
local ppattern45 = { 0,0,22000384, -2,0,22000379, 2,0,22000380, 0,-2,22000383} -- 보스, 보스쫄 3마리
local ppattern46 = { 0,0,22000384, -2,0,22000379, 2,0,22000380, 0,-2,22000381, -2,-2,22000382, 2,2,22000383} -- If user has another world belt. Will spawn all monsters. (Webzen)
local ppattern47 = { 0,0,22000370, 0,2,22000369 } -- Room 31 onwards (Webzen)
local ppattern48 = { 0,0,22000370, 0,2,22000403 } -- Room 31 onwards with Yushiva (Webzen)
local xv, yv
if stage <= 25 then
xv = 10
yv = 10
else
xv = 10
yv = 10
end
--cprint("패턴"..generate_type)
if generate_type==1 then
MMT_add_npc( base_x,base_y,monster_id,ppattern1,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==2 then
MMT_add_npc( base_x,base_y,monster_id,ppattern2,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==3 then
MMT_add_npc( base_x,base_y,monster_id,ppattern3,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==4 then
MMT_add_npc( base_x,base_y,monster_id,ppattern4,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==5 then
MMT_add_npc( base_x,base_y,monster_id,ppattern5,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==6 then
MMT_add_npc( base_x,base_y,monster_id,ppattern6,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==7 then
MMT_add_npc( base_x,base_y,monster_id,ppattern7,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==8 then
MMT_add_npc( base_x,base_y,monster_id,ppattern8,xv,yv,tdir,count,dur,layer,stage)
elseif generate_type==21 then
MMT_add_npc_boss( base_x,base_y,ppattern21,xv,yv,tdir,dur,layer,stage)
elseif generate_type==22 then
MMT_add_npc_boss( base_x,base_y,ppattern22,xv,yv,tdir,dur,layer,stage)
elseif generate_type==23 then
MMT_add_npc_boss( base_x,base_y,ppattern23,xv,yv,tdir,dur,layer,stage)
elseif generate_type==31 then
MMT_add_npc_boss( base_x,base_y,ppattern31,xv,yv,tdir,dur,layer,stage)
elseif generate_type==32 then
MMT_add_npc_boss( base_x,base_y,ppattern32,xv,yv,tdir,dur,layer,stage)
elseif generate_type==41 then
MMT_add_npc_boss( base_x,base_y,ppattern41,xv,yv,tdir,dur,layer,stage)
elseif generate_type==42 then
MMT_add_npc_boss( base_x,base_y,ppattern42,xv,yv,tdir,dur,layer,stage)
elseif generate_type==43 then
MMT_add_npc_boss( base_x,base_y,ppattern44,xv,yv,tdir,dur,layer,stage)
elseif generate_type==44 then
MMT_add_npc_boss( base_x,base_y,ppattern44,xv,yv,tdir,dur,layer,stage)
elseif generate_type==45 then
MMT_add_npc_boss( base_x,base_y,ppattern45,xv,yv,tdir,dur,layer,stage)
elseif generate_type==46 then
MMT_add_npc_boss( base_x,base_y,ppattern46,xv,yv,tdir,dur,layer,stage)
elseif generate_type==47 then -- Webzen only
MMT_add_npc_boss( base_x,base_y,ppattern47,xv,yv,tdir,dur,layer,stage)
elseif generate_type==48 then -- Webzen only
MMT_add_npc_boss( base_x,base_y,ppattern48,xv,yv,tdir,dur,layer,stage)
end
end
function MMT_broadcast_mission( layer,total )
broadcast_mission_title( 1, '@1224', 80000,layer )
broadcast_mission_reward( 1, '@90610864',80000,layer )
broadcast_mission_objective( 1, 0, total, '@1224',80000,layer) -- 미션 목표도 항상 '모든 몬스터를 섬멸하라'에 최대 몬스터 수는 6(4층인 경우만 1이 됨)
set_instance_dungeon_flag( 80000, layer, 'total' ,total )
set_instance_dungeon_flag( 80000, layer, 'current' ,0 )
end
function MMT_add_npc( base_x,base_y,monster_id,ppattern,xv,yv,tdir,count,dur,layer,stage)
local total = 0
local cnt = table.getn(ppattern)/2
for i = 1, cnt do
local idx
idx = (i-1)*2+1
local xx = (ppattern[idx]*xv)
idx = (i-1)*2+2
local yy = (ppattern[idx]*yv)
local temp_xx = xx
local temp_yy = yy
if tdir == 0 then -- ahead west
temp_xx = -xx
temp_yy = -yy
elseif tdir == 1 then -- ahead west
temp_xx = yy
temp_yy = -xx
elseif tdir == 2 then -- ahead south
temp_xx = xx
temp_yy = yy
elseif tdir == 3 then -- ahead eash
temp_xx = -yy
temp_yy = xx
end
local regen_monster = Marray[stage-30]
monster = math.random(regen_monster, regen_monster+2) -- 31층 이상 일반몹...
end
xx = base_x + temp_xx
yy = base_y + temp_yy
add_npc( xx,yy,monster,count,dur,layer)
total = total + count
--cprint(xx.." "..yy.." "..monster_id.." "..count.." "..dur.." "..layer)
end
MMT_broadcast_mission(layer,total)
end
function MMT_add_npc_boss( base_x,base_y,ppattern,xv,yv,tdir,dur,layer,stage)
local total = 0
local cnt = table.getn(ppattern)/3
for i = 1, cnt do
local idx
idx = (i-1)*3+1
local xx = (ppattern[idx]*xv)
idx = (i-1)*3+2
local yy = (ppattern[idx]*yv)
local temp_xx = xx
local temp_yy = yy
if tdir == 0 then -- ahead west
temp_xx = -xx
temp_yy = -yy
elseif tdir == 1 then -- ahead west
temp_xx = yy
temp_yy = -xx
elseif tdir == 2 then -- ahead south
temp_xx = xx
temp_yy = yy
elseif tdir == 3 then -- ahead eash
temp_xx = -yy
temp_yy = xx
end
local monster_id
if stage <= 30 then
monster_id = ppattern[(i-1)*3+3] + (math.floor( (stage / 10)-0.5 ))*11
elseif stage == 60 then
monster_id = ppattern[(i-1)*3+3]
else
monster_id = ppattern[(i-1)*3+3] + ((stage-35)/5)*2 -- 31층 이상 중보 보스...
end
xx = base_x + temp_xx
yy = base_y + temp_yy
add_npc( xx,yy,monster_id,1,dur,layer)
total = total + 1
end
MMT_broadcast_mission(layer,total)
end
------------------------------------------------------------------------------------------------------------
function MMT_on_leave( layer ) -- 이탈시호출
------------------------------------------------------------------------------------------------------------
send_mission_title( '' )
end
------------------------------------------------------------------------------------------------------------
function MMT_on_join( layer ) -- 각 방마다 호출
------------------------------------------------------------------------------------------------------------
local total = get_instance_dungeon_flag( 80000, layer, 'total' )
local current = get_instance_dungeon_flag( 80000, layer, 'current' )
if total ~= nil and total ~= "" then
send_mission_title( '@1224' ) -- 미션 제목은 항상 '모든 몬스터를 섬멸하라'
send_mission_reward( '@90610864')
send_mission_objective( 0, total, '@1224' ) -- 미션 목표도 항상 '모든 몬스터를 섬멸하라'에 최대 몬스터 수는 6(4층인 경우만 1이 됨)
send_mission_objective_progress( 0, current )
end
end
function devildom_count(quest1, parm1, quest2, parm2)
local layer = get_value('layer')
if quest1~=nil then
--cprint( 'quest1:' .. quest1 .. " parm1:".. parm1)
do_each_player_in_instance_dungeon( 80000,layer, 'set_quest_status(' .. quest1 ..','.. parm1 ..',1)', gv('x'), gv('y') )
end
if quest2~=nil then
--cprint( 'quest2:' .. quest2 .. " parm2:".. parm2)
do_each_player_in_instance_dungeon( 80000,layer, 'set_quest_status(' .. quest2 ..','.. parm2 ..',1)', gv('x'), gv('y') )
end
local current = get_instance_dungeon_flag( 80000, layer, 'current' )
current = current + 1;
set_instance_dungeon_flag( 80000, layer , 'current', current )
broadcast_mission_objective_progress( 1, 0, current, 80000,layer )
if get_instance_dungeon_flag( 80000, layer, 'final_count' ) == monster_count then
add_field_prop( 10361, 0, 26748, 54183, gv('layer'), 250, 0, 0, 1.58, 1, 1, 1 )
end
end
function Call_Script_tula_Death()
devildom_count( 4035, 1, 4036, 1 )
end
function Call_Script_Barga_Death()
devildom_count( 4037, 1, 4038, 1 )
end
function Call_Script_Kainen_Death()
devildom_count( 4039, 1, 4040, 1 )
end
function Call_Script_DevilWood_Death()
devildom_count( 4041, 1, 4045, 1 )
end
function Call_Script_Slaughterer_Death()
devildom_count( 4041, 2, 4045, 2 )
end
function Call_Script_StoneGargoyle_Death()
devildom_count( 4042, 1, 4046, 1 )
end
function Call_Script_MagmaGolem_Death()
devildom_count( 4042, 2, 4046, 2)
end
function Call_Script_CrazyHagen_Death()
devildom_count( 4043, 1, 4044, 1 )
end
function Call_Script_DevilReviac_Death()
devildom_count( 4043, 2, 4044, 2 )
end
------------------------------------------------------------------------------------------------------------
function NPC_bulcanus_joinitem_sell()
--------------------------------------------------------------------------------------------------------------------------
dlg_title( "@90605268" )
dlg_text( "@90605790" )
local progress = get_quest_progress(3367)
if progress == 255 then
dlg_menu( "@9811", 'NPC_bulcanus_get_ticket()' ) -- 사자의 혼을 받는다
end
dlg_menu( "@90010002", '' )
dlg_show()
end
--------------------------------------------------------------------------------------------------------------------------
function NPC_bulcanus_get_ticket()
--------------------------------------------------------------------------------------------------------------------------
local current_time = get_os_date( "%Y-%m-%d" )
local t_flag = get_flag( "vulcanus_date" )
dlg_title( "@90605268" )
if t_flag == nill or t_flag < current_time then
set_flag( "vulcanus_date" , current_time )
insert_item( 2013889, 1 )
dlg_text( "@90610860" ) -- 여기 있어요!<br>수량이 부족한 관계로 1일1개 밖에는 드릴수 없어요.
else
dlg_text( "@90610861" ) -- 오늘은 이미 받으셨어요.<br>수량이 부족한 관계로 1일 1개 밖에는 드릴수 없어요.
end
dlg_menu( "@90010002", '' )
dlg_show()
end
--------------------------------------------------------------------------------------------------------------------------
function NPC_bulcanus_best_record()
--------------------------------------------------------------------------------------------------------------------------
local best_vul_record = get_global_variable( "best_vul_record" )
local best_vul_record_name = get_global_variable("best_vul_record_name")
dlg_title( "@90605268" )
if best_vul_record == nil or best_vul_record == "" then
dlg_text( "@90605863" )
else
local country_time = get_os_date("%H",0)
local print_best_vul_record = best_vul_record +(24 -country_time) * 3600
dlg_text( sconv("@90605862", "#@user_name@#", get_global_variable( "best_vul_record_name" ), "#@vul_record@#", get_os_date("%X",print_best_vul_record)) )
end
dlg_menu( "@90010002", '' )
dlg_show()
end
------------------------------------------------------------------------------------------------------------
function vulcanus_get_room_pos( floor, room ) -- 각층 각방 x y 좌표
--------------------------------------------------------------------------------------------------------------------------
local pdata={ 197393,28580, 198814,28457, 200543,28458, 202065,28458,
197047,25954, 198661,25929, 200362,25962, 202169,26121,
197303,23750, 198586,23765, 200390,23677, 202114,23701,
206474,27625, 0,0, 0,0, 0,0,
}
local x = pdata[ floor*8-7+room*2 ]
local y = pdata[ floor*8-7+room*2+1]
return x,y
end
local lvl = get_instance_dungeon_type_id( 20000, layer )
local idx = lvl*4+floor
local exp = pdata[ idx ]
local jp = exp / 8
local gold = 31200 * ( 1+ lvl/3)
if floor==2 then
gold = gold + 2100
elseif floor==3 then
gold = gold + 4200
elseif floor==4 then
gold = (gold + 4200 )*2
end
return exp, jp, gold
end
--------------------------------------------------------------------------------------------------------------------------
function get_vulcanus_room_number(floor) -- 아직 클리어하지 않은 방을 찾는다.
--------------------------------------------------------------------------------------------------------------------------
local layer = get_value('layer')
local room = 0
if floor < 4 then
local room_list = {}
local room_count = 0
local flag = 'Vul' .. tostring( floor )
local fv = get_instance_dungeon_flag( 20000, layer, flag )
if fv == 15 then
return
end
if fv==nil or fv=="" then
fv = 0
end
if fv==0 or fv==2 or fv==4 or fv==8 or fv==6 or fv==10 or fv==12 or fv==14 then
room_list[ room_count + 1 ] = 0
room_count = room_count + 1
end
if fv==0 or fv==1 or fv==4 or fv==8 or fv==5 or fv==9 or fv==12 or fv==13 then
room_list[ room_count + 1 ] = 1
room_count = room_count + 1
end
if fv==0 or fv==1 or fv==2 or fv==8 or fv==3 or fv==9 or fv==10 or fv==11 then
room_list[ room_count + 1 ] = 2
room_count = room_count + 1
end
if fv==0 or fv==1 or fv==2 or fv==4 or fv==3 or fv==5 or fv==6 or fv==7 then
room_list[ room_count + 1 ] = 3
room_count = room_count + 1
end
local select = math.random( 1, room_count )
room = room_list[select]
end
return room
end
--------------------------------------------------------------------------------------------------------------------------
function enter_vulcanus() -- 필드에 있는 불카누스 프랍 클릭시
--------------------------------------------------------------------------------------------------------------------------
local quest_progress_3367 = get_quest_progress(3367) -- 반환값 -1 : 아무것도 아님 / 0 : 수락가 / 1 : 수행중 / 2 : 종료가능 / 100 : 실패 / 255 : 이미종료
if quest_progress_3367 == 1 then
set_quest_status( 3367, 1, 1 )
cprint( "@90604746" ) -- <(version:8.1)><#6DD66D>새로운 게이트를 발견하였습니다.
return
end
local lv = get_value( 'level' )
if lv<30 then
cprint( "@9251" ) --<#ff0000>불카누스 던전은 최소 레벨 30 이상부터 입장 가능합니다.
end
local base_type = math.floor(lv/10)-4
if base_type < 0 then
base_type = 0
end
if base_type > 16 then -- 일단 13까지 밖에 없기 때문에 10(easy),11(normal),12(hard),13(veryhard)
base_type = 16
end
--------------------------------------------------------------------------------------------------------------------------
function enter_vulcanus_confirm(sub_type) -- vulcanus_enter_confirm() 으로 변경
--------------------------------------------------------------------------------------------------------------------------
local party_id = get_value('party_id')
if party_id ~= 0 then
cprint( "@9247" ) --파티 상태에서는 입장 불가함
return
end
local item_count = find_item( 2013889 )
if item_count < 1 then
cprint( "@9810" )
return
end
warp_to_instance_dungeon(20000,sub_type)
delete_item( get_item_handle(2013889),1)
--vulcanus_warp_confirm(1)
open_title(1)
end
--------------------------------------------------------------------------------------------------------------------------
function enter_other_indun( dungeon_id, cur_floor, next_floor, cur_item_count, next_item_count )
vulcanus_warp (cur_floor)
end
--------------------------------------------------------------------------------------------------------------------------
function vulcanus_warp (floor) -- 불카누스 던전 내부 프랍 클릭,
--------------------------------------------------------------------------------------------------------------------------
local flag = 'Vul' .. tostring(floor )
local floor_flag = get_instance_dungeon_flag( 20000 , gv( 'layer' ), flag )
local cur = floor
local nxt = floor +1
local nxt_flr = floor+1
local menu2 = '@9800\v#@next_floor@#\v' .. nxt
if floor_flag == 15 then
dlg_special_menu( '@170126024', 'Warp',menu2, 'vulcanus_warp_confirm(' .. nxt .. ')' )
else
local menu1 = '@9799\v#@current_floor@#\v' .. cur
dlg_special_menu( '@170126024', 'Warp', menu1, 'vulcanus_warp_confirm(' .. cur .. ')', menu2, 'vulcanus_warp_confirm(' .. nxt .. ')' )
end
end
--------------------------------------------------------------------------------------------------------------------------
function vulcanus_warp_confirm(floor,layer)
--------------------------------------------------------------------------------------------------------------------------
if layer == nil then
layer = get_value('layer')
end
local room = get_vulcanus_room_number(floor)
local x,y = vulcanus_get_room_pos( floor, room )
warp( x, y, layer )
if floor == 4 then
send_mission_objective( 0, 1, '@1226' ) -- 불카누스를 처치하라
cprint( '@90604914' ) --<(version:7.3)><#6DD66D>나는.. 불카누스다. 나의 의지를 깨운 너는....너는 누구.... 인가. 열쇠를 소지한 자.. 인가?
cprint( '@90604915' ) --<(version:7.3)><#6DD66D>그렇다면, 내가 숨겨 논 기록을...... 되찾은 자로군. 시간이 없으니...... 너의 지식을 보겠다.
local monster = 22000414
local progress1 = get_quest_progress(4047)
local progress2 = get_quest_progress(4048)
local progress3 = get_quest_progress(4049)
local progress4 = get_quest_progress(4050)
local lvl = get_instance_dungeon_type_id( 20000, layer )
if (progress1 == 1 or progress2 == 1 or progress3 == 1 or progress4 == 1) and lvl >= 14 then
local qcv = get_flag('q_cbk')
if qcv == nil or qcv == "" then
qcv = 0
end
local rnd = math.random(1, 10-qcv)
if rnd == 1 then
add_npc( 205940, 26915, monster, 1, 0, layer )
qcv = 0
elseif qcv < 7 then
qcv = qcv + 1
end
set_flag('q_cbk',qcv)
end
else
send_mission_objective( 0, 6, '@1224' ) -- 미션 목표도 항상 '모든 몬스터를 섬멸하라'에 최대 몬스터 수는 6(4층인 경우만 1이 됨)
end
send_mission_objective_progress( 0, 0 )
end
Pretty much if you use the right client with the server file version most everything does work.
There are a few issues where people want things to be different. Like no questing to enter Devildom, no questing for master class. (Even retail does not work like that so the private server files not really broken.)
Sometimes people run into issues trying to find the right client for their country. Most of the time having the correct sframe is enough but when you start switching around trying to use an Arabic or US sframe with other country clients then you introduce other issues.
There are some things that dont work, mostly minor details, and there are some other things that don't even work on retail but for most of those things some great developers in this section have fixed and one in particular Ink Devil has been instrumental in gathering those fixes together in a thread. (Also Ink Devil is responsible for many of those fixes)
These are listed in the collection thread along with a lot of other very useful tools so it is also a great thread to get started...
To list every custom thing out in a video would probably be a 24 hour video marathon
It's retarded but I'm getting the Auth db init error: Login failed for user 'sa'.
Any thoughts on what to check other than the password on opt, the port on sql server configuration?
Does the port 9881 should be open on the local machine?
Thanks
edit1: When I remove the password for user sa I manage to connect, any way to set the password and still be able to login?
Thanks
I proceeded with starting the game without sa password for now.
I managed to start all app, by order.
But when I execute the client's bat I get this message:
Empty string: 828
Any idea what it could be?
-----------
edit: I managed to connect, but I'm stuck at server list page, I'm unable to enter the server.
Thanks in advance
edit2:
attaching error message:
I got an error while trying to initialized Rappelz Auth Server, error is AUTH DB INIT ERROR: LOGIN FAILED FOR USER 'SA'.
Can someone help me fix this.
it's simple just read ...
AUTH DB INIT ERROR: LOGIN FAILED FOR USER 'SA'.
This is marked the error is a bad password.
Add the correct password to your db & sa will work xD
it's simple just read ...
AUTH DB INIT ERROR: LOGIN FAILED FOR USER 'SA'.
This is marked the error is a bad password.
Add the correct password to your db & sa will work xD
Is it the Sql server loging password or the has password I set in the auth database.
It would come from the auth.opt
I advise you to take the gladu's one
It's better than the basic one provided.
I like it better than the PrincessAuroraServer.exe
It would come from the auth.opt
I advise you to take the gladu's one
It's better than the basic one provided.
I like it better than the PrincessAuroraServer.exe
I changed the password in the auth file and still doesnt work.
What is the gladu one.
This is my first time attempting to create my own, so im very rusty, i follow the youtube link but use only the 9.5 files.
VIDEO l VMWare l Erstellen/Create a vSro Server l Create 2 Server Shard 11/15/2024 - SRO Guides & Templates - 82 Replies Hallo ElitePvPer Community
Seit ich das letzte Mal über Discord / epvp xx Anfragen erhalten habe
Wie baut man einen SRO Server und oder funktioniert es auf VMWare (Ja, es funktioniert)
oder wie man mehrere Shards (Server) in der Liste anzeigt
oder mehrere Server können über 1 Client laufen !!
Da es momentan zu viele Anfragen gibt, habe ich gedacht, dass ich 1 oder mehr Videos machen werde: D
Hello ElitePvPer Community
Since I got the last time via Discord / epvp xx requests
How Build...