Jump to content

Recommended Posts

Hi guys i fount quest on deamon tower timer but its pretty old and i am getting an error

Quote

assertion failure : nested == 0

the quest :

 

Quote

quest deviltower_zone begin
    state start begin
        when login with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
            loop_timer("check_dungeon_time", 1)
            loop_timer("dodajczas", 1)
        end
        when dodajczas.timer with pc.in_dungeon() begin
            local timee=d.getf("czas")
            d.setf("czas", timee+1)
        end
        when check_dungeon_time.timer with pc.in_dungeon() begin
            local timer = d.getf("czas")
                local min = math.floor(timer/60)
                local sek = timer-min*60
                local pokaz_czas = (min..":"..sek)
            local pozostalo = d.count_monster()
            local wspolnie = d.getf("zabitychogolnie")
            local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
            local pietro_show = d.getf("level")
            local players = d.getf("gracze")
            cmdchat("showDtTimer")
            cmdchat("setDtCounters "..pokaz_czas.."|"..zabitych_przez_ciebie.."|"..wspolnie.."|"..pozostalo.."|"..players.."|"..pietro_show.."")
        end
        when kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
            if not npc.is_pc() then
                local zabitych_ogolnie = d.getf("zabitychogolnie")
                local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
                pc.setqf("zabitychprzezcb", zabitych_przez_ciebie+1)
                d.setf("zabitychogolnie", zabitych_ogolnie+1)
            end
        end
        when login begin
            if pc.get_map_index() == 66 then            
                if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
                    pc.warp((5376+532)*100, (512+596+4)*100, 65)
                end
                pc.set_warp_location(65, 5376+532, 512+596+4)
            elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
                pc.set_warp_location(65, 5376+532, 512+596+4)
            end
        end
        when deviltower_man.chat.locale.deviltower_man_chat begin
            if pc.get_level() < 40 then
                say(locale.deviltower_man_say_you_cant)
            else
                say(locale.deviltower_man_say)
            local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
            if s == 1 then
                pc.warp(216500,727000)
            end
            end
        end
        when devil_stone1.kill begin
            timer("devil_stone1_1", 6)
            pc.setqf("zabitychprzezcb",1)
        end
    when devil_stone1_1.timer begin
        local mapto7= pc.count_item(30302)  -- Die Karte der Zin Grotte wurde aus deinem Inventar entfernt
        pc.remove_item(30302,mapto7)

        local boxto7= pc.count_item(30300)  -- Die Unbekannte Alte Kiste wurde aus deinem Inventar entfernt
        pc.remove_item(30300,boxto7)

        d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
        d.regen_file("data/dungeon/deviltower2_regen.txt")
           d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
        d.setf("zabitychogolnie", 1)
        d.setf("level", 1)
        d.setf("gracze", 1)
        pc.setqf("zalogowano", 1)
            if pc.getqf("zalogowano") < 2 then
                pc.setqf("zalogowano", 3)
                local graczy = d.getf("gracze")
                d.setf("gracze", graczy+1)
                return
            else
                return
            end
        d.setf("czas", 61)
        d.setf("level", 2)
    end

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.