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 daily_login_buff_simple begin
    	state start begin
    		function today()
    			return math.floor(get_time() / 86400)
    		end
    
    		when login begin
    			local t = daily_login_buff_simple.today()
    
    			if pc.getqf("dlb_day") == t then
    				return
    			end
    
    			pc.setqf("dlb_day", t)
    
    			affect.add(apply.MAX_HP, 100, 60*60*24)
    			affect.add(apply.ATT_GRADE_BONUS, 10, 60*60*24)
    
    			syschat("[Buff] Ai primit buff zilnic (24h)!")
    		end
    	end
    end