Acest quest anunta (in momentul in care este activat) la
*30 minute,
*15 minute,
*1 minut ,
*40 secunde, ca serverul
va intra in mentananta .
El se instaleaza la NPC 20094,puteti schimba NPC-ul in oricare altul
din functia :
when 20094.chat
Instalare :
Urcam questul in FTP :
CD /usr/game/quest
Apoi in putty :
CD /usr/game/quest
./qc shutdown.quest
Cod: Selectaţi tot
quest shutdown begin
state start begin
when 20094.chat."Oprire server" with pc . is_gm ( ) == true begin
say_title ( "Metin2DR" )
say_title ( "Shutdown:" )
say ( "Vrei sa opresti serverul?" )
local siono = select ( "Da","Nu" )
if siono == 2 then
return
elseif siono == 1 then
say_title ( "Shutdown:" )
say ( "Proces oprire server in curs" )
local ciao = tostring(input())
timer ( "shutdown" , 900 )
notice_all ( "Serverul se va opri in 30 minute" )
notice_all ( "" )
notice_all ( "" )
end
end
when shutdown.timer begin
notice_all ( "Serverul se va opri in 15 minute!" )
notice_all ( "" )
notice_all ( "" )
timer ( "shutdown2" ,899 )
end
when shutdown2.timer begin
notice_all ( "Serverul se va opri in 1 minut!" )
notice_all ( "" )
notice_all ( "" )
timer ( "shutdown3" , 20 )
end
when shutdown3.timer begin
notice_all ( "Serverul se va opri in 40 secunde!" )
notice_all ( "Recomandam tuturor playerilor sa iasa de pe server" )
notice_all ( "Nu ne asumam responsabilitatea pentru eventualele pierderi" )
timer ( "shutdown4", 31 )
end
when shutdown4.timer begin
notice_all ( "Reboot!" )
game . set_event_flag ( "test" , 1 )
timer ( "shutdown5" , 1 )
end
when shutdown5.timer begin
command ( "shutdown" )
game . set_event_flag ( "test" , 0 )
end
end
endVa recomand sa folositi acest quest de cate ori doriti sa restartati serverul
deoarece evitati multe buguri/pierderi importante de date,iteme,exp s.a.m.d
Evitati intotdeauna restartul direct din consola (putty,virtualpc etc)

