Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game\share\locale\romania\quest\object nu este --> 20358 flori fara nume
- Quest :
- quest competitia_ox begin
- state start begin
- when letter with pc.get_map_index() == 113 begin
- send_letter("Pãrãseste evenimentul OX")
- end
- when login with pc.get_map_index() == 113 begin
- addimage ( - 85 , - 90 , "ox.tga" )
- say_red ( "[ENTER][ENTER]" )
- say_red ( "Salut, "..pc.get_name ()..".")
- say_red ( "Dacã vrei ca, competitia sã se desfãsoare" )
- say_red ( "într-un mediu plãcut, trebuie sã ai un")
- say_red ( "comportament adecvat fatã de echipã," )
- say_red ( "cât si de restul jucãtorilor. Nu arunca obiecte" )
- say_red ( "pe jos pentru cã risti sã fi deconectat." )
- say_red ( "" )
- say_alert ( "Succes la competitie!" )
- say_red ( "" )
- end
- when button or info begin
- say_title ( "Pãrãseste evenimentul OX" )
- say ( "Esti sigur cã vrei sã pãrãsesti evenimentul?[ENTER]" )
- local s=select( "Da" , "Nu" )
- if s==2 then
- send_letter( "Pãrãseste evenimentul OX" )
- return
- end
- local empire = pc.get_empire()
- if empire== 1 then
- pc.warp(473900, 954600)
- elseif empire == 2 then
- pc.warp(63200, 166700)
- elseif empire == 3 then
- pc.warp(959600, 269700)
- end
- end
- when 20011.chat."Competitia OX" begin
- say_title("Uriel, învãtatul:")
- say ( "Hey, tu de acolo! Da, da tu - vino pânã aici!" )
- say ( "Hai sã iti arãt ceva interesant." )
- say ( "Competitia OX. Eu te pot duce acolo." )
- say ( "Am auzit cã poti castiga premii interesante!" )
- say ( "" )
- wait()
- if pc.get_level() <= 109 then
- say_title("Uriel, învãtatul:")
- say ( "Îmi pare rãu, dar nu ai nivelul necesar pentru" )
- say ( "a participa.[ENTER]" )
- say_orange ( "Nivelul minim pentru participare: 110" )
- say ( "" )
- return
- end
- if game.get_event_flag("oxevent_status") == 0 then
- say_title("Uriel, învãtatul:")
- say ( "Momentan nu am auzit cã se desfãsoarã nici" )
- say ( "o competitie. Te voi anunta eu când aflu ceva." )
- say ( "" )
- elseif game.get_event_flag("oxevent_status") == 1 then
- say_title( "Uriel, învãtatul:" )
- say ( "Doresti sã participi la competitie" )
- say ( "sau doar sã te uiti?[ENTER]" )
- local s = select( "Particip" , "Spectator", "Înapoi" )
- if s == 1 then
- say_title("Uriel, învãtatul:")
- say ( "Imediat te voi duce la competitie." )
- say ( "Succes.[ENTER]" )
- horse.unride()
- horse.unsummon()
- wait()
- pc.warp(896500, 24600)
- elseif s == 2 then
- say_title("Uriel, învãtatul:")
- say ( "Vrei sa fii doar spectator? Ok, alegerea ta." )
- say ( "Imediat vei fi teleportat.[ENTER]" )
- horse.unride()
- horse.unsummon()
- wait()
- pc.warp(896300, 28900)
- end
- elseif game.get_event_flag("oxevent_status") == 2 then
- say_title("Uriel, învãtatul:")
- say ( "Îmi pare rãu, dar competitia a început deja ..." )
- say ( "Dar, dacã vrei, mai poti participa ca spectator.[ENTER]" )
- say ( "" )
- local s = select( "Particip" , "Înapoi")
- if s == 1 then
- say_title("Uriel, învãtatul:")
- say ( "Imediat vei fi teleportat.[ENTER]" )
- horse.unride()
- horse.unsummon()
- wait()
- pc.warp(896300, 28900)
- end
- end
- end
- when 20358.chat."GM: Panou competitie OX" with pc.is_gm() begin
- local stat = oxevent.get_status()
- if stat == 0 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Începe OX?[ENTER]" )
- local s = select( "Da" , "Nu")
- if s==2 then return end
- local v = oxevent.open()
- if v == 0 then
- say_gm_title ( "Panou competitie OX" )
- say_gm ( "Nu am putut încãrca întrebãrile.[ENTER]" )
- return
- elseif v == 1 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Competitia OX a început.[ENTER]" )
- server_timer("automatic1", 10*60, 113)
- notice_all ( "Competitia OX a început! Pentru a intra la concurs fugiti repede la Uriel. " )
- notice_all ( "El vã va duce la competitie. Succes tuturor." )
- else
- say("Error1")
- return
- end
- elseif stat == 1 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Portile sunt încã deschise." )
- say_gm ( "Jucãtori intrati: "..oxevent.get_attender()..".[ENTER]" )
- local s = select ( "Închide portile", "Înapoi" )
- if s == 1 then
- notice_all ( "Portile competitiei OX au fost închise. Mult noroc participantilor." )
- oxevent.close()
- end
- elseif stat == 2 then
- say_title("Concursul OX")
- local s = select ( "Adreseazã întrebare", "Oferã un premiu participantilor", "Oferã un premiu castigatorului", "Închide competitia", "Anuleazã competitia", "Înapoi")
- if s == 1 then
- local v = oxevent.quiz(1, 30)
- if v == 0 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Eroare adresare întrebare.[ENTER]" )
- return
- else
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Întrebare adresatã cu succes.[ENTER]" )
- return
- end
- elseif s == 2 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Parolã:[ENTER]" )
- local sname = input()
- if sname == "Metin2Fly-Zone" then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Adaugã obiect:[ENTER]" )
- local item_vnum = input()
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Adaugã numãr articole:[ENTER]" )
- local item_count = input()
- oxevent.give_item(item_vnum, item_count)
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Participantii au primit "..item_name(item_vnum)..".[ENTER]")
- notice_all ( "Participantii competitei OX au primit "..item_count.."x"..item_name(item_vnum))
- end
- elseif s == 3 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Parolã:[ENTER]" )
- local sname = input()
- if sname == "Metin2Fly-Zone" then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Adaugã obiect:[ENTER]" )
- local item_vnum = input()
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Adaugã numãr articole:[ENTER]" )
- local item_count = input()
- oxevent.give_item(item_vnum, item_count)
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Câstigãtorul competitiei a primit "..item_name(item_vnum)..".[ENTER]")
- notice_all ( "WOW Câstigãtorul competitiei a primit "..item_count.."x "..item_name(item_vnum))
- end
- elseif s == 4 then
- oxevent.end_event()
- notice_all ( "Competitia OX a luat sfârsit." )
- setskin(0)
- elseif s == 5 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Esti sigur cã vrei sã opresti competitia?[ENTER]" )
- local s = select("Da", "Nu")
- if s == 1 then
- oxevent.end_event_force()
- end
- elseif s == 6 then
- return
- end
- elseif stat == 3 then
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Momentan este o întrebare adresatã.[ENTER]" )
- else
- say_gm_title( "Panou competitie OX" )
- say_gm ( "Eroare.[ENTER]" )
- return
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement