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 level_reached_notice begin
    	state start begin
    		function cfg()
    			local c = {}
    			c.LEVEL = 200
    			c.TAG = "[LEVEL]"
    			return c
    		end
    
    		when levelup begin
    			local c = level_reached_notice.cfg()
    
    			if pc.get_level() < c.LEVEL then
    				return
    			end
    
    			if pc.getqf("lvl_notice_done") == 1 then
    				return
    			end
    
    			pc.setqf("lvl_notice_done", 1)
    			notice_all("|cff56ff00|H|h"..c.TAG.."|h|r "..pc.get_name().." a atins nivelul "..c.LEVEL.."!")
    		end
    	end
    end