*edit*In the procedure LoginPlayer; (which is in the core include login.scar)
Code:
MarkTime(Mark);
Wait(1000);
ClickMouse(300,300,true);
repeat
Wait(1000);
These are for lines 117-121. That got me logged in. 
*/edit*
*edit2*Well.. That does get you logged in. However for the goblin script, the character is still sitting there in a loop. Bah I guess I'll have to leave this up to someone esle..
*/edit2*
I believe it has something to do with a recent change that jagex made to their login screen. I think, although I'm new at this and trying to learn. I think from looking at the script that it isn't picking up something it used to with the old one.. Someone please correct me if I'm wrong.