function getBL_IDFromPlayerList(%name)
{
%a=$Pref::Gui::ShowPlayerListBLIDs;
$Pref::Gui::ShowPlayerListBLIDs = true;
canvas.pushdialog(NewPlayerListGui);
canvas.popdialog(NewPlayerListGui);
for(%a=0; %a<npl_list.rowcount(); %a++)
{
%ListName=getfield(npl_list.getrowtext(%a), 1);
%bl_id=getfield(npl_list.getrowtext(%a), 3);
if(%ListName$=%name)
return %bl_id;
}
$Pref::Gui::ShowPlayerListBLIDs = %a;
}
unsure if it requires reloading the gui