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 biolog_reward begin
    	state start begin
    		function cfg()
    			local c = {}
    			c.TAG = "[Biolog]"
    			c.TIME = 60 * 60 * 24
    			c.HP = 200
    			return c
    		end
    
    		-- schimba qf-ul cu unul pe care il pui tu cand termina biologul
    		-- exemplu: cand termini biologul, pui pc.setqf("biolog_done", 1)
    		when login begin
    			local c = biolog_reward.cfg()
    
    			if pc.getqf("biolog_done") == 1 and pc.getqf("biolog_rewarded") != 1 then
    				pc.setqf("biolog_rewarded", 1)
    				affect.add(apply.MAX_HP, c.HP, c.TIME)
    				syschat("|cff56ff00|H|h"..c.TAG.."|h|r : Ai primit recompensa pentru Biolog (24h)!")
    			end
    		end
    	end
    end