quest anti_exp begin
    state start begin
        when 40004.use begin
        if pc.getqf("antiexp") == 0 then
            pc.setqf("antiexp", 1)
            chat("Inelul anti experienta este activat. Punctele dvs. de experienta sunt setate la 0 la fiecare 3 secunde.")
            local ep = pc.get_exp()
            pc.give_exp2(-ep)
            timer("erfahrung", 3)
        elseif pc.getqf("antiexp") == 1 then
            pc.setqf("antiexp", 0)
            chat("Anti experienta dezactivat. Distractie placuta!")
            end
        end    
                    
        when erfahrung.timer with pc.getqf("antiexp") == 1 begin
            local ep = pc.get_exp()
            pc.give_exp2(-ep)
            timer("erfahrung1", 3)
            pc.setqf("antiexp", 1)
        end    
            
        when erfahrung1.timer with pc.getqf("antiexp") == 1 begin
            local ep = pc.get_exp()
            pc.give_exp2(-ep)
            timer("erfahrung", 3)
            pc.setqf("antiexp", 1)            
        end
    end
end

cd /usr/home/game/share/locale/germany/quest

./qc anti_exp.quest