Experimentat
Experimentat
Mesaje: 72
Membru din: Sâm Ian 31, 2026 4:11 pm
Server: metin2avange.mt2.xyz
Rasă: Ninja
Regat: Chunjo
  • Has thanked: 1 time
  • Cod: Selectaţi tot

    quest chest_cooldown begin
    	state start begin
    		function cfg()
    			local c = {}
    			c.SEC = 2
    			c.CHESTS = {80017, 80018, 80019} -- schimba vnum-urile
    			return c
    		end
    
    		when 80017.use or 80018.use or 80019.use begin
    			local last = pc.getqf("cc_last")
    			if get_time() - last < chest_cooldown.cfg().SEC then
    				syschat("[Info] Asteapta "..(chest_cooldown.cfg().SEC - (get_time() - last)).." sec.")
    				return
    			end
    			pc.setqf("cc_last", get_time())
    		end
    	end
    end