Yeah i know it will drain my funds but its just for study purposes i will change all script once this is script is working so that i can't waste my time to make a dice in other crypto..
Thanks for your link.. but i don't like to wait to install the whole blockchain.. before i can use bitcoind..
If i'm not mistaking, this script uses json-rpc calls to the coin deamon, every altcoin that supports these calls can be used in this script...
You can use this dice script for litecoin, dogecoin,... without any adaptation.
once again: this script is compromised, so you'll probably be better off writing your own script from scratch than digging trough somebody else's poorly written and poorly commented code in order to fix all vulnerability's.
I must say i did not fully review the code, but i took a quick glance and i'd rather write a script from scratch than clean this one up (but that's just my personal sentiment about this)