i think you can do it like this way...
just a simply sketch for the script...
prontera,155,181,5 script Sample 757,{
mes "Write the Player name. must be ^FF0000ONLINE^000000";
input .@Name$;
close2;
announce .@Name$+" Your TEST_COUNT variable is set to 6.";
attachrid( getcharid( 3,.@Name$ ) );
set TEST_COUNT,6;
end;
}