Jump to content

Recommended Posts

Hei there. I have put the pc.unblock_exp() and pc.block_exp() functions in my server.

But now,the players found a bug. After you block the exp  you can donate to guild level infinite exp . 

This is my quest :

Spoiler

quest anti_exp begin
    state start begin
        when login begin
            if pc.getqf("antiexp") == 1 then
        pc.block_exp()
                say_title("Inel anti-experienta:")
                say("Ai grija,ai uitat inelul anti-experienta")
        say("activat. Nu vei mai primi experienta!")
            end
        end
        when login begin
        cmdchat("antiexp_index "..q.getcurrentquestindex())
        end
        when button or info begin
            if pc.getqf("antiexp") == 0 then
                pc.block_exp()
                pc.setqf("antiexp", 1)
                 say_title("Inel anti-experienta:")
                say("Inelul anti-experienta este activat!")
        say("De acum nu vei mai primi experienta!")
            elseif pc.getqf("antiexp") == 1 then
                pc.unblock_exp()
                pc.setqf("antiexp", 0)
                say_title("Inel anti-experienta:")
                say("Inelul anti-experienta este dezactivat!")
        say("De acum vei primi experienta!")           
     end
        end
    end
end  

 

I have put a function like "if pc.get_exp()>1 begin ; return " but i want some like : when you use the ring to set your experience to 0 ,  I try with "pc.give_exp2(-pc.get_exp())" but isn`t work. I don`t understand what is the problem but it dont get all exp, it lv up my character, WTF

 

# Sorry for my English :D

Link to comment
https://metin2.dev/topic/11176-anti-exp-bug-donate-for-guild/
Share on other sites

  • Replies 6
  • Created
  • Last Reply

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.