Problema quest Halloween

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
AlexTzutzu
Nivel 10

Nivel 10
Mesaje: 2345
Membru din: 12 Feb 2014, 13:59
Server: Am RENUNTAT
Regat: Jinno
Aprecieri: 18  
Mulţumiri: 91  
 Contact:
Medalii

Salut,dupa cum am mentionat si in titlu am o problema cu un quest mai exact questul de halloween(este adaptat de mine din questul cufere_clar_de_luna)am modificat quest l-am rulat in consola a mers fara problema am dat reboot la server si tot degeaba ,questul nu imi apare la NPC-ul respectiv(9004) ce as putea sa fac ?
Uitati questul poate am gresit eu undeva:

Cod: Selectaţi tot

    quest halloween begin
        state start begin
            when login begin
                if game.get_event_flag("mondlicht_event") == 1 then
                    notice("Eventul Halloween a început!")
					notice("Şansa dovleacului Halloween este " ..game.get_event_flag("mond_drop_chance").. "%")
                end
            end
            when kill begin
                local m_ind = pc.get_map_index()
                if npc.is_pc() then
                else
                    if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
                        if game.get_event_flag("mondlicht_event") == 1 then
                            local chance = number(1, 100)
                            local chance_max = game.get_event_flag("mond_drop_chance")
                            if chance <= chance_max then
                                pc.give_item2(50095)
                                --game.drop_item(50095)
                            else
                            end
                        else
                        end
                    elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
                        if game.get_event_flag("mondlicht_event") == 1 then
                            local chance = number(1, 100)
                            local chance_max = game.get_event_flag("mond_drop_chance")
                            if chance <= chance_max then
                                pc.give_item2(50095)
                                --game.drop_item(50095)
                            else
                            end
                        else
                        end
                    elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
                        if game.get_event_flag("mondlicht_event") == 1 then
                            local chance = number(1, 100)
                            local chance_max = game.get_event_flag("mond_drop_chance")
                            if chance <= chance_max then
                                pc.give_item2(50095)
                                --game.drop_item(50095)
                            else
                            end
                        else
                        end
                    elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
                        if game.get_event_flag("mondlicht_event") == 1 then
                            local chance = number(1, 100)
                            local chance_max = game.get_event_flag("mond_drop_chance")
                            if chance <= chance_max then
                                pc.give_item2(50095)
                                --game.drop_item(50095)
                            else
                            end
                        else
                        end
                    elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
                        if game.get_event_flag("mondlicht_event") == 1 then
                            local chance = number(1, 100)
                            local chance_max = game.get_event_flag("mond_drop_chance")
                            if chance <= chance_max then
                                pc.give_item2(50095)
                                --game.drop_item(50095)
                            else
                            end
                        else
                        end
                    elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 250 then
                        if game.get_event_flag("mondlicht_event") == 1 then
                            local chance = number(1, 100)
                            local chance_max = game.get_event_flag("mond_drop_chance")
                            if chance <= chance_max then
                                pc.give_item2(50095)
                                --game.drop_item(50095)
                            else
                            end
                        else
                        end
                    end
                end
            end
            when 9004.chat."<GM>Event Halloween" with pc.is_gm() begin
                if game.get_event_flag("mondlicht_event") == 1 then
                    say_title("Administrare Eveniment:")
                    say_verde("Salut")
                    say_verde("Eventul Halloween : ~ Activ ")
                    say("")
                    say_rosu("Închizi Evenimentul?")
                    local s=select("Da", "Nu")
                    if s==1 then
                        say_title("Administrare Eveniment:")
                        say("")
                        say_rosu("Evenimentul a luat sfârsit .")
                        say_rosu("~ Pe data viitoare !")
                        game.set_event_flag("mondlicht_event", 0)
                        char_log(0, "Eventul Halloween a fost oprit de " ..pc.get_name())
                        notice_all("Eventul Halloween s-a terminat!")
                    elseif s==2 then
                        say_title("Administrare Eveniment:")
                        say("")
                        say_verde("~ Pe curând !")
                    end
                else
                    say_title("Administrare Eveniment:")
                    say("")
                    say_rosu("Eventul Halloween : ~ Închis ")
                    say("")
                    say_verde("Start Eveniment?")
                    local s=select("Da", "Nu")
                    if s==1 then
                        say_title("Administrare Eveniment:")
                        say("")
                        say_verde("Evenimentul ~ A Început ! .")
                        say_verde("~ Succes la strâns mai multi dovleci !")
                        game.set_event_flag("mondlicht_event", 1)
                        char_log(0, "Eventul Halloween a fost pornit de " ..pc.get_name())
                        notice_all("Eventul Halloween a început!")
						notice_all("Mult noroc şi distracţie placută!")
                    elseif s==2 then
                        say_title("Administrare Eveniment:")
                        say("")
                        say_verde("~ Pe curând !")
                    end
                end
            end
            when 9004.chat."<GM>Şansa drop Halloween" with pc.is_gm() begin
                if pc.get_name() == "[GF]Susanoo" or pc.get_name() == "[GF]Susanoo" or pc.get_name() == "[GF]Susanoo" then
                    say_title("Administrare Eveniment:")
                    say_galben("Salut Susanoo")
                    say_verde("Cât de mare ar trebui sa fie şansa de drop?")
                    say("")
                    say_verde("Între 1-100")
                    say("")
                    local new_chance = tonumber(input())
                    if new_chance < 0 or new_chance > 100 then
                        say_title("Administrare Eveniment:")
                        say("")
                        say_rosu("Introducere incorectă ~")
                    else
                        char_log(0, "Şansa drop Halloween a fost setata de " ..pc.get_name().. " la " ..new_chance.. "%")
                        game.set_event_flag("mond_drop_chance", new_chance)
                        say_title("Administrare Eveniment:")
                        say("")
                        say_verde("Şansa de drop este setată la " ..new_chance.. " %."")
                        say_verde("~ Pe curând !")
                    end
                else
                    say_title("Administrare Eveniment:")
                    say("")
                    say_rosu("Nu ai dreptul pentru a executa evenimentul .")
                end
            end
        end
    end 
Imagine


The quieter you become,the more you are able to hear.
Afișează semnătura
Avatar utilizator
DaRealPain
Fost Helper

Fost Helper
Mesaje: 1044
Membru din: 05 Oct 2014, 01:38
Server: Shiro2
Regat: Shinsoo
Aprecieri: 106  
Mulţumiri: 252  
Medalii

Salutare ^_^

Nu iti pot spune ce are Questul acum pentru ca sunt pe telefon si nu Bad bine dar 1 Tip
Schimba event flag-ul din mondlicht_event in halloween_event sau o sa ai Probleme cand activezi Halloweenul si Clar de Luna in acelasi timp ^-^


[ Mesaj scris via Android ] Imagine
Afișează semnătura
Avatar utilizator
AlexTzutzu
Nivel 10

Nivel 10
Mesaje: 2345
Membru din: 12 Feb 2014, 13:59
Server: Am RENUNTAT
Regat: Jinno
Aprecieri: 18  
Mulţumiri: 91  
 Contact:
Medalii

Am facut cum mi-ai zis tu am schimbat din tot questul tot "mondlicht_event" in "halloween_event" am dat reboot si degeaba .Astept alte sugestii
Imagine


The quieter you become,the more you are able to hear.
Afișează semnătura
Avatar utilizator
M.Seby
Utilizator interzis !

Utilizator interzis !
Mesaje: 2685
Membru din: 10 Sep 2013, 15:00
Server: Not Found
Regat: Jinno
Aprecieri: 0
Mulţumiri: 16  
 Contact:
Medalii

Mutat in Arhiva!
Topic inactiv de 3 zile!
Imagine
Afișează semnătura
Închis
Răspunsuri
4
Vizualizări
308
Răspunsuri
7
Vizualizări
1323
Răspunsuri
2
Vizualizări
223
Răspunsuri
6
Vizualizări
1634

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 86 vizitatori