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 potion_cooldown begin
    	state start begin
    		function cfg()
    			local c = {}
    			c.SEC = 2
    			c.POT = {27001, 27002, 27003, 27004, 27005} -- potiuni
    			return c
    		end
    
    		when 27001.use or 27002.use or 27003.use or 27004.use or 27005.use begin
    			local last = pc.getqf("pot_last")
    			if get_time() - last < cfg().SEC then
    				syschat("[Info] Asteapta "..(cfg().SEC - (get_time() - last)).." sec.")
    				return
    			end
    			pc.setqf("pot_last", get_time())
    		end
    	end
    end