local announceflg = true; --״νϷȫ
local useloginpoint = false; --ǷԶ½,cgmsv.cf,ĬϹر
local WelcomeMessage = {};--ӭ
table.insert(WelcomeMessage,"ӭʹcgmsv");
table.insert(WelcomeMessage,"Զ延ӭϢ,gmsv\\lua\\Module\\Welcome.lua޸!");


Delegate.RegDelLoginEvent("Welcome_LoginEvent");

function Welcome_LoginEvent(player)
	if (WelcomeMessage ~= nil) then --ӭ
		for _,text in ipairs(WelcomeMessage) do
		      NLG.TalkToCli(player,-1,text,%ɫ_ɫ%,%_%);
		end
		if (announceflg == true and Char.GetData(player,%_½%) == 1) then
			NLG.SystemMessage(-1,"ӭ["..Char.GetData(player,%_ԭ%).."]Ϸ.")
		end
	end

	if (useloginpoint == true and Char.EndEvent(player,0) == 0) then
		Char.Warp(player,0,1530,15,6);
	end

	local szBuffer ="\\n            ﻶӭʹcgmsv"..
					"\\n\\nԶ延ӭϢ,gmsv\\lua\\Module\\Welcome.lua޸!"..
	NLG.ShowWindowTalked(player,player, 10, 2, 44, szBuffer);
end