I don't know what really happened, I was away while the script was on. When I came back my laptop died, so i charged it and log in. I found myself in lumbridge , I thought i might have died from npc, but i found my bank with all valuable items and coins missing. I suspect that it was your script, but like you said it is a script. I am sorry probably I was hack at the time too, who knows, but I tried your script again with zero items on there, so far the script is good it is doing what it is suppose to do.
Sorry for the inconvenience.