Jump to content

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

35 minutes ago, Nick24 said:

Hello,

I have a bug on the OX event when I want to give the prize/award to the players , it's reading the item I want to give and says that all the players will receive it but none of them actually receive the item.

Can anyone please help?

Thank you

paste quest oxevent

Link to comment
https://metin2.dev/topic/32041-ox-event-bug/#findComment-162382
Share on other sites

quest oxevent_manager begin
    state start begin
        when login with pc.get_map_index() == 113 begin
            addimage(20, 12, "ox.tga")
            say("")
            say("")
            say("")
            say("")
            say_title("Competitia OX")
            say("")
            say("Aici se aduna cele mai stralucite minti din cele")
            say("trei regate pentru concursul de inteligenta.")
            say("În timpul acestui test, mai multe întrebari cu")
            say("privire la orice subiect va fi afisate.")
            say("Deplasati-va la O, daca credeti ca raspunsul,")
            say("este adevarat iar daca este fals la X.")
            say("Doar cei mai buni vor fi premiati!")
            say("")
        end
    
        when letter with pc.get_map_index() == 113 begin    
            send_letter("Paraseste competitia OX")        
        end
        
        when button or info begin        
            say_title("Paraseste competitia OX")
            say("Esti sigur ca vrei sa parasesti competitia?")    
            say("")
            local s=select("Da","Nu")
            
                if s==2 then            
                send_letter("Paraseste competitia 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, învatatul:")
            say("")
            say("Hey, tu de acolo! Da, da tu - vino pâna aici!") 
            say("Hai sa iti arat ceva interesant.")
            say("Competitia OX. Eu te pot duce acolo.")
            say("Am auzit ca poti castiga premii interesante!")
            say("")        
                wait()        
            if pc.get_level() < 15 then        
                say_title("Uriel, învatatul:")
                say("")
                say("Îmi pare rau, dar nu ai nivelul necesar pentru")
                say("a participa.")
                say("")
                say_reward("Nivelul minim pentru participare: 15")
                say("")
                return
            end            
            if game.get_event_flag("oxevent_status") == 0 then            
                say_title("Uriel, învatatul:")
                say("")
                say("Momentan nu am auzit ca se desfasoara 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, învatatul:")
                say("")
                say("Doresti sa participi la competitie")
                say("sau doar sa te uiti?")
                say("")        
                
                local s = select( "Particip" , "Spectator", "Înapoi" )
                
                if s == 1 then                
                    say_title("Uriel, învatatul:")
                    say("")
                    say("Imediat te voi duce la competitie.")
                    say("Succes.")    
                    say("")
                    horse.unride()
                    horse.unsummon()
                wait()
                pc.warp(896500, 24600)
                
                    elseif s == 2 then                
                        say_title("Uriel, învatatul:")
                        say("")
                        say("Vrei sa fii doar spectator? Ok, alegerea ta.")
                        say("Imediat vei fi teleportat.")
                        say("")
                        horse.unride()
                        horse.unsummon()
                    wait()
                    pc.warp(896300, 28900)
                end
                
            elseif game.get_event_flag("oxevent_status") == 2 then            
                say_title("Uriel, învatatul:")
                say("")
                say("Îmi pare rau, dar competitia a început deja ...")
                say("Dar, daca vrei, mai poti participa ca spectator.")
                say("")                
                local s = select( "Particip" , "Înapoi")
                
                    if s == 1 then                
                        say_title("Uriel, învatatul:")
                        say("")
                        say("Imediat vei fi teleportat.")
                        say("")
                    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_title("Panou competitie OX")
                say("")
                say("Începe OX?")
                say("")
                
            local s = select( "Da" , "Nu")
                if s==2 then return end
            local v = oxevent.open()
                if v == 0 then
                    say_title("Panou competitie OX")
                    say("")
                    say("Nu am putut încarca întrebarile.")
                    say("")
                    return                    
                elseif v == 1 then                
                    say_title( "Panou competitie OX" )
                    say("")
                    say("Competitia OX a început.")
                    say("")                    
                    notice_all("Competitia OX a început! Pentru a intra la concurs, mergeti la Uriel.")
                    notice_all("Succes tuturor!")                    
                else
                    say("Error1")
                    return
                end
                
            elseif stat == 1 then        
                say_title( "Panou competitie OX" )
                say("")
                say("Portile sunt înca deschise.")
                say("Jucatori intrati: "..oxevent.get_attender())
                say("")
                
                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("Panou competitie OX")
                say("")            
                say("Ce doresti sa faci?")
                say("")    
                local s = select("Adreseaza întrebare","Ofera un premiu participantilor","Închide competitia","Anuleaza competitia","Înapoi")
            
                if s == 1 then
                    local v = oxevent.quiz(1, 30)
                    if v == 0 then                
                    say_title("Panou competitie OX")
                    say("")
                    say("Eroare adresare întrebare.")    
                    say("")                    
                    return                            
                        else                    
                    say_title("Panou competitie OX")
                    say("")
                    say("Întrebare adresata cu succes.")    
                    say("")                    
                    return                    
                end                                        
                elseif s == 2 then                
                    say_title("Panou competitie OX")
                    say("")
                    say("Parola:")
                    say("")
                    local sname = input()
                    if sname == "m2" then 
            
                    say_title("Panou competitie OX")
                    say("")
                    say("Adauga obiect:")
                    say("")
                    
                    local item_vnum = input()
                    
                    say_title("Panou competitie OX")
                    say("")
                    say("Adauga numar articole:")
                    say("")
                    
                    local item_count = input()
                    oxevent.give_item(item_vnum, item_count)
                    
                    say_title("Panou competitie OX" )
                    say("")
                    say("Participantii au primit "..item_name(item_vnum))
                    say("")                    
                    
                    notice_all("Participantii competitei OX au primit "..item_count.."x"..item_name(item_vnum))
                    end                
                elseif s == 3 then                                    
                    oxevent.end_event()                    
                    notice_all("Competitia OX a luat sfârsit.")                
                    setskin(0)                    
                elseif s == 4 then                
                    say_title("Panou competitie OX")
                    say("")
                    say("Esti sigur ca vrei sa opresti competitia?")    
                    say("")                    
                    local s = select("Da", "Nu")
                    
                    if s == 1 then                
                        oxevent.end_event_force()
                    end
                elseif s == 5 then
                    return
                end
                
            elseif stat == 3 then            
                    say_title("Panou competitie OX")
                    say("")
                    say("Momentan este o întrebare adresata.")    
                    say("")
                else
                    say_title("Panou competitie OX")
                    say("")
                    say("Eroare.")
                    say("")            
                return
            end
        end            

    end
end


    

Link to comment
https://metin2.dev/topic/32041-ox-event-bug/#findComment-162388
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.