void main() { object oPC = GetEnteringObject(); //below removes the Letoscript string so the changes won't be applied again on the next logout string Script = GetLocalString(oPC, "LetoScript"); if( Script != "" ) { SetLocalString(oPC, "LetoScript", ""); } }