#EVENT {SESSION CONNECTED}
{
#class easyvote open;
#format votetime %T;
#math votetime $votetime - 43200;
#class easyvote close;
#class easyvote read easyvote.var
}
#ALIAS {easyvote}
{
#format votetime %T;
#class easyvote write easyvote.var;
#run easyvote lynx http://www.topmudsites.com/vote-thoric.html;
#delay 1 #send {\eOB\}
}
#ALIAS {votetime}
{
#format currtime %T;
#math currtime $currtime - $votetime;
#echo {It's been %m hours and %m minutes since your last easyvote.} {{$currtime / 3600} {$currtime % 3600 / 60}}
}
#TICKER {easyvote}
{
#format currtime %T;
#if {$votetime + 43200 <= $currtime}
{
#showme <158>It's been more than 12 hours since your last easyvote. Use 'easyvote' to vote.
}
}
{1800}
|