Discussione [CORREZIONE QUEST]

Stato
Discussione chiusa ad ulteriori risposte.

LambdaLore

Utente Electrum
13 Novembre 2009
109
21
17
111
Ultima modifica:
ragazzi, potete cortesemente correggere questa quest? vi ringrazio in anticipo :)
Codice:
quest dragontemple begin 
    state start begin 
         
        when logout with pc.get_map_index() >= (82*10000) begin 
            pc.setqf("punishment", 1) 
        end 
         
        when login with pc.get_map_index() >= (82*10000) and pc.getqf("punishment") == 1 begin 
            pc.setqf("punishment", 0) 
            warp_to_village() 
        end 
         
        when 30121.chat."Voglio uccidere il drago" with pc.get_map_index() == 73 and game.get_event_flag("dragontemple_open") == 1 begin 
            pc.setqf("punishment", 0) 
            if game.get_event_flag("dragontemple_used") == 1 then 
                if game.get_event_flag("dragontemple_block") == 1 then 
                    say_title(mob_name(30121)) 
                    say("") 
                    say("La stanza è chiusa a chiave. Prova più tardi") 
                    return 
                end 
                 
                say_title(mob_name(30121)) 
                say("") 
                say("Spiacente la stanza è riservata.") 
                say("Serve una password per l'accesso") 
                say("Si prega di inserirla.") 
                local password = input() 
                if game.get_event_flag("dragontemple_password") == tonumber(password) then 
                    say_title(""..mob_name(30121).."") 
                    say("") 
                    say("Password esatta.") 
                    say("Ti porterò nella camera") 
                    wait() 
                    say_title(""..mob_name(30121).."") 
                    say("") 
                    say("Se vuoi ti posso portare,") 
                    say("Nella sala del drago.") 
                    say("Dammi solo 3x") 
                    say("") 
                    say_item_vnum(30179) 
                     
                    local s = select("Si li ho", "Chiudi") 
                    if s == 1 then 
                        if pc.count_item(30179) >= 3 then 
                            pc.remove_item(30179,3) 
                            pc.warp( 843600, 1066900 , (82*10000)) 
                            --DragonLair.startRaid(82) 
                        else 
                            say("Hai solo "..pc.count_item(30179).." delle tre richieste") 
                            say("") 
                            say_item_vnum(30179) 
                        end 
                    else 
                        return 
                    end 
                else 
                    say_title(""..mob_name(30121).."") 
                    say("") 
                    say("La Password non corrisponde") 
                    return 
                end 
            elseif pc.has_guild() and game.get_event_flag("dragontemple_used") == 0 then 
                say_title(""..mob_name(30121).."") 
                say("") 
                say("Vuoi combattere contro il drago?") 
                say("Vi preghiamo di inserire una sola password (solo numeri)") 
                say("per proteggere la zona. Dai la password") 
                say("solo a te e alla tua gilda") 
                say("solo nella sala") 
                say("Inseriscila ora.") 
                local password = tonumber(input("")) 
                game.set_event_flag("dragontemple_password",password) 
                say_title(""..mob_name(30121).."") 
                say("") 
                say("Se vuoi ti posso fare subito") 
                say("entrare nella sala del Drago.") 
                say("Dammi solo 3x") 
                say("") 
                say_item_vnum(30179) 
                say("") 
                 
                local s = select("Li ho", "Chiudi") 
                if s == 1 then 
                    if pc.count_item(30179) >= 3 then 
                        pc.remove_item(30179,3) 
                        --DragonLair.startRaid(82) 
                         game.set_event_flag("dragontemple_used",1) 
                        timer("blockentry",5*60) 
                    else 
                        say("Ne hai solo "..pc.count_item(30179)..") 
                        say("") 
                        say_item_vnum(30179) 
                        say("") 
                        return 
                    end 
                elseif s==2 then 
                    return                                 
                end 
            elseif not pc.has_guild() then 
                say_title(""..mob_name(30121).."") 
                say("") 
                say("Hai bisogno di una gilda forte") 
                say("per combattere contro il Drago.") 
            end 
        end 
         
        when 2493.kill with pc.get_map_index() >= (82*10000) begin 
            timer("set_unused",30) 
        end 
         
        when set_unused.timer begin 
            game.set_event_flag("dragontemple_used",0) 
            game.set_event_flag("dragontemple_block",0) 
        end 
         
        when blockentry.timer begin 
            game.set_event_flag("dragontemple_block",1) 
        end 
    end 
end
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom