Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest mentenanta begin
- state start begin
- when login with game.get_event_flag("mentenanta") == 1 begin
- timer("mentenanta", 1)
- end
- when login with game.get_event_flag("mentenanta") == 0 begin
- timer("mentenanta_check", 10)
- end
- when mentenanta_check.timer begin
- if game.get_event_flag("mentenanta") == 1 then
- command("quit")
- else
- return
- end
- end
- when mentenanta.timer begin
- say("Este mentenanta,[ENTER]trebuie sa introduci parola,[ENTER]altfel nu poti intra pe server:")
- local pw = input ( )
- if pw == "----------aici scrii parola ta ca să intri pe server----------" then
- say("Codul este bun!")
- say("Poti intra!")
- else
- say("Parola este incorecta!")
- say("Te voi da afara!")
- say("[DELAY value; 1000]. . . . .[/DELAY]")
- command("quit")
- end
- end
- when 20095.chat."GM: Mentenanta" with pc.is_gm() begin
- say_title("Mentenanta")
- say("Introdu parola pentru a putea [ENTER]activa sau dezactiva [ENTER]mentenanta")
- local pass_m = input()
- if pass_m == "---------aici scrii parola ta ca să intri în npc----------" then
- say("Optiuni mentenanta")
- if game.get_event_flag("mentenanta") == 0 then
- local meniu_m1 = select ("Porneste mentenanta", "Iesire")
- if meniu_m1 == 2 then
- return
- elseif meniu_m1 == 1 then
- game.set_event_flag("mentenanta", 1)
- notice_all("[MENTENANTA] Serverul a intrat in mentenanta revenim curand!")
- timer("mentenanta_check", 5)
- end
- elseif game.get_event_flag("mentenanta") == 1 then
- local meniu_m2 = select ("Opreste mentenanta", "Iesire")
- if meniu_m2 == 2 then
- return
- elseif meniu_m2 == 1 then
- game.set_event_flag("mentenanta", 0)
- notice_all("[MENTENANTA A FOST OPRITA]")
- end
- end
- else
- say_title("Mentenanta")
- say("Parola este incorecta")
- end
- end --when
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement