A .pk3 can't actually hack you if you open it in SLADE, but i checked it and it doesn't work because the S_SKIN is formatted wrong.
Now, I don't know how lua works in it's entirety yet (eventually i will), so that i can't help with.
I ran it in srb2 as is, it doesn't work at all, as you stated.
But, if it gets modified a bit, it should work in a basic state.