Jump to content

Recommended Posts

Hi, I have a problem with the quest. It is to act as a blockade of experience, but instead of removing conquered exp adds a whole level. My quest:



quest block5 begin
    state start begin
        when kill with not npc.is_pc() and pc.get_map_index() == 73 and pc.get_level() >= 95 begin
            local experience = pc.get_exp() - pc.getqf("exp5")
            pc.give_exp2(-experience)
             --chat("QF: "..pc.getqf("exp5"))
            -- chat("Should remove: "..experience)
            chat("Big level! ")
        end
        
        when login with pc.get_map_index() == 73 and pc.get_level() >= 95 begin
            pc.setqf("exp5", pc.get_exp())
            -- chat("Set qf: "..pc.getqf("exp5"))
            chat("Big level! ")
        end
        when logout or disconnect begin
             pc.delqf("exp5")
        end
    end
end

 

Link to comment
https://metin2.dev/topic/10172-quest-added-level-instead-of-being-removed/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.