Pagina 1 din 1

🟤 QUEST: Anunț global când atingi nivelul X (o singură dată)

Scris: Dum Feb 01, 2026 10:30 am
de ProFight3D

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