erm..how about this...
src/map/chat.c#L163
chat_triggerevent(cd); //Event
mapreg_setreg( reference_uid(add_str("$@chat_newjoin"), j),sd->status.account_id ); // <-- add this...
prontera,155,181,5 script Sample 757,{
end;
OnInit:
waitingroom "CHATROOM",20,strnpcinfo(0)+"::OnJoin";
end;
OnJoin:
attachrid( $@chat_newjoin );
announce "Welcome to this Chatroom",bc_self;
end;
}