-	script	whatsnew	-1,{
OnPCLoginEvent:
	if ( getmapflag(strcharinfo(PC_MAP), mf_nopenalty) && !checkvending() && !checkchatting() ) {
		query_sql "SELECT `post_id`,`ldate`, `gmname`, `logtext` FROM `changelog` WHERE `post_id` > "+#News+" ORDER BY `post_id` DESC LIMIT 10", .@post_id, .@ldate$, .@gmname$, .@logtext$;
		if(!getarraysize(.@post_id)) end;
		mes "^777777Changelog^000000";
		for(set .@i, 0; .@i < getarraysize(.@post_id); set .@i, .@i + 1){
			mes "^777777"+.@ldate$[.@i]+"^000000 - "+.@logtext$[.@i];
			mes "^777777- - - -^000000";
			if (.@post_id[.@i] > #News) #News=.@post_id[.@i];
		}
		close;
	}
	end;
}