QUEST ShutDown System Server !
Quest-ul :
quest rebootsystem begin
state start begin
when letter with pc.is_gm and pc.get_name() == "[GA]Equinox" begin
send_letter("Shutdown System")
end
when info or button with pc.is_gm and pc.get_name() == "[GA]Equinox" begin
say_title("Mentenanþã:")
say_verde("Vrei sã aplici o Mentenanþã ?")
say_verde("Atunci alege timpul când sã opresc,")
say_verde("server-ul dar tot odatã voi anunþa ºi jucãtorii.")
local s = select("30 Minute", "15 Minute", "Acum!", "Închide")
if s == 1 then
timer("shutdown30min", 1)
end
if s == 2 then
timer("shutdown15min", 1)
end
if s == 3 then
command("shutdown")
end
if s == 4 then
send_letter("Mentenanþã")
end
end
when shutdown30min.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 30 de minute!")
timer("shutdown15min", 60*15)
end
when shutdown15min.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 15 minute!")
timer("shutdown1", 60*5)
end
when shutdown1.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 10 minute!")
notice_all("Daþi Log Out pentru a preveni pierderea itemelor!")
timer("shutdown2", 60*5)
end
when shutdown2.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 5 minute!")
notice_all("Daþi Log Out pentru a preveni pierderea itemelor!")
timer("shutdown3", 60*3)
end
when shutdown3.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 2 minute!")
notice_all("Daþi Log Out pentru a preveni pierderea itemelor!")
timer("shutdown4", 60)
end
when shutdown4.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 1 minut!")
notice_all("Daþi Log Out pentru a preveni pierderea itemelor!")
timer("shutdown5", 30)
end
when shutdown5.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 30 de secunde!")
notice_all("Daþi Log Out pentru a preveni pierderea itemelor!")
timer("shutdown6", 15)
end
when shutdown6.timer begin
notice_all("Atenþie !!!")
notice_all("Mentenanþã: Server-ul va fi oprit în 15 secunde!")
timer("shutdown7", 5)
end
when shutdown7.timer begin
command("shutdown")
end
end
end
Tutorial Instalare
Salvati continutul quest-ului intr-un fisier text numit de exemplu shutdown_system.quest
Va conectati la filezilla / winscp si intrati in /usr/home/game/share/locale/germany/quest (nu la toate serverele este folderul germany)
Il puneti acolo (extensia trebuie neaparat sa fie .quest) si ii da-ti permisiuni 777.
Te loghezi in FreeBSD / putty si scrii in felul urmator: cd /usr/home/game/share/locale/germany/quest apoi ./qc shutdown_system.quest
Intrati pe server si scrieti /reload q.
Testati quest-ul.
Rezultatul instalari quest-ului:



