Jump to content
×
×
  • Create New...
  • 0

Anti Exp Bug [Lua]


jkhan

Question

Hi guys,

My problem,
Ring closes with teleport

This is my code, can you help me please

Kind regards, thanks.

Sorry for my bad english.

 

quest antiexpsrc begin
    state start begin
		when login begin
			cmdchat("anti_index "..q.getcurrentquestindex())
		end
		when button or info begin
            if pc.getqf("antiexp") == 0 then
			-- exp sifirla
			local ep = pc.get_exp()
			pc.give_exp2(-ep)
			-- exp sifirla	
                pc.block_exp()
                pc.setqf("antiexp", 1)
                syschat("Tanrica'nin laneti uzerinde. Laneti deaktif etmedikce tecrube kazanamayacaksiniz.")
            elseif pc.getqf("antiexp") == 1 then
			-- exp sifirla
			local ep = pc.get_exp()
			pc.give_exp2(-ep)
			-- exp sifirla	
                pc.unblock_exp()
                pc.setqf("antiexp", 0)
                syschat("Tanrica'nin laneti kaldirildi. Artik tecrube kazabilirsiniz.")
				end
		end
	end
end

 

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.