Jump to content

Anti Exp Bug [Lua]


Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 60

      Inbuild GR2 Animation

    2. 2

      wait() function bug

    3. 0

      Remove Party Role Bonuses

    4. 1

      Fix CBar3D

    5. 2

      set_quest_state not working

    6. 1

      Fix CBar3D

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.