01 Sep 10, 11:52PM
alarm script
for someone who easely looses track of time while playing :)
have fun, tell me what you think :P
for someone who easely looses track of time while playing :)
have fun, tell me what you think :P
[SELECT ALL] Code:
/////ALARM script made by =SA=macm//////
newmenu "alarm"
menuinit [echo " 2set the alarm time in (H)H:MM:SS format, 1example: 12:34:56 or 1:02:03"]
menuitemtextinput "set alarm to: " "" "alias ala $arg1"
menuitem " 2 [ set ] " [echo (concat " 1you set the alarm for: 3" $ala); alarmcheck]
alias alarmcheck [
if (strcmp (timestring) $ala) [
alarmmsg; alias oldgamma $gamma; gmlp; sleep 2000 [gmlp]; sleep 4000 [gmlp]; sleep 6000 [gamma $oldgamma]] [sleep 1000 [alarmcheck]]
]
alias gmlp [gamma 30; sleep 1000 [gamma 300]]
alias alarmmsg [alias tmst (timestring); echo (concat " 3ALARM: 1it's now" $tmst)]