Jump to content

Anti - exp bug donate for guild ?


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

 

Any ideea  ? .. 

 

# Sorry for my English :D

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member
1 hour ago, DeYaN. said:

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 :

  Hide contents

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

Yes, here is the bug. You must solve this bug in Server Source. Other way doesn't exist.

I'll be always helpful! ? 

Link to comment
Share on other sites

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.