Jump to content

Recommended Posts

Hey i have normal quest for metin stone code is below. But if i destroy it with max level and destroy it fast within like 2seconds it does not count it. But if i destroy it slow it counts.. Any fix please?  Thank you

 

Spoiler

quest kamen_strachu begin
    state start begin
        when login or levelup with pc.level >= 210 begin
            set_state(information)
        end
    end

    state information begin
        when letter begin
            send_letter("Balvany strachu")
        end    

        when info or button begin
            say_title("Rozbij balvany strachu")
            say("Země je pohlcena mnoha balvany.")
            say("Pomoz nám jich pár zničit.")
            say("Odměna tě nemine.")
            say("Tvůj úkol:")
            say_reward("Znič 100x balvany strachu")
            pc.setqf("state", 100)
            q.set_counter("Balvan strachu", 100)
            set_state(kill)
        end
    end        
    
    state kill begin
        when 60011.kill begin
            local count = pc.getqf("state") - 1
            if count <= 100 then
                pc.setqf("state", count)
                q.set_counter("Balvan strachu", count)
            end
            if count == 0 then
                say_title("Balvan strachu - Dokončeno")
                say("Dokončil jsi úkol!")
                say("")
                say_reward("Obdržíš: Základní předměty na vylepšování.")
                pc.give_item2(27990, 100)
                pc.give_item2(70030, 100)
                pc.give_item2(80006, 200)
                pc.give_item2(30016, 100)
                pc.give_item2(30017, 100)
                pc.give_item2(30018, 100)
                pc.give_item2(80007, 200)
                pc.give_item2(80007, 200)
                pc.give_item2(27991, 100)
                pc.give_item2(27992, 100)
                pc.give_item2(27993, 100)
                pc.give_item2(30020, 100)
                pc.give_item2(30008, 100)
                pc.give_item2(70029, 100)
                pc.give_item2(27994, 100)
                pc.give_item2(27987, 100)
                pc.give_item2(30011, 100)
                pc.give_item2(30012, 100)
                pc.give_item2(30013, 100)
                pc.give_item2(30014, 100)
                pc.give_item2(30009, 100)
                pc.give_item2(30560, 1)
                clear_letter()
                set_state(__COMPLETE__)
            end
        end    

        when letter begin
            send_letter("Balvan strachu")
        end        
        
        when info or button begin
            say_title("Rozbij Balvan strachu")
            say("Země je pohlcena mnoha balvany.")
            say("Pomoz nám jich pár zničit.")
            say("Odměna tě nemine.")
            say("Tvůj úkol:")
            say_reward("Zbývá zničit: "..pc.getqf("state").." balvanů.")
            local count = pc.getqf("state")
            q.set_counter("Balvan strachu", count)
        end
    end

    state __COMPLETE__ begin
    end
end        

 

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.