Jump to content
  • 0

automatic quest problem


Story

Question

I wrote the automatic quest, but it did not work Can you see the problem?

quest auto_boss_event begin
    state start begin
    when 20092.chat."GM: Event Boss " with pc.is_gm() begin
        say_title("Merhaba "..pc.get_name())
        say("")
    if game.get_event_flag("auto_boss") == 0 then  
        local event = select (" Eventi Başlat "," Vazgeç ")
        if event == 2 then
        return end
        say(" Eventi Başlatıldı. ")
        chat("Zamani gelince otomatik olarak başlayacaktır. ")
        game.set_event_flag("auto_boss",0)
        clear_server_timer('auto_boss_timer')
        clear_server_timer('auto_boss_bitir_timer')
        server_timer('auto_boss_timer', 1)
    else
        local event = select (" Eventi Bitir "," Vazgeç ")
        if event == 2 then
        return end
        game.set_event_flag("auto_boss",0)
        clear_server_timer('auto_boss_timer')
        clear_server_timer('auto_boss_bitir_timer')
    end
end
        when auto_boss_timer.server_timer begin
            if(os.date("%A %H %M") == "Friday 12 50" or os.date("%A %H %M") == "Saturday 12 50" or os.date("%A %H %M") == "Saturday 13 00" or os.date("%A %H %M") == "Tuesday 20 00") then
                if game.get_event_flag("auto_boss") == 0 then
                    notice_all("[Boss Etkinliği] Ch1 Çöl Ortasında Boss ve Lastik Etkinliği Başladı. ")
                    game.set_event_flag("auto_boss",1)
                    regen_in_map(63, "data/dungeon/col.txt")
                    clear_server_timer('auto_boss_timer')
                    clear_server_timer('auto_boss_bitir_timer')
                    server_timer("auto_boss_bitir_timer",60*60)
                end
            end
        end
    when auto_boss_bitir_timer.server_timer begin
        if game.get_event_flag("auto_boss") == 1 then
            notice_all("[Boss Etkinliği] Boss ve Lastik Etkinliği Sona Erdi. ")
            game.set_event_flag("auto_boss",0)
            clear_server_timer('auto_boss_bitir_timer')
            clear_server_timer('auto_boss_timer')
            kill_all_in_map(63)
            warp_all_to_village(63)
        end
            server_timer('auto_boss_timer', 1)
    end
    end --state end
end--quest end
Link to comment
  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

5 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.