|
sorrysight Newbie
Joined: 06 Mar 2007 Posts: 1
|
Posted: Tue Jul 29, 2008 8:29 am
Autovoter package |
I wanted to make an autovoter for mud listings sites, but I'm not quite sure where to start - does anyone have any tips?
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Jul 29, 2008 8:00 pm |
There is a package in the package library which should show you how someone else did it. To get the package, click on the Library button at the top of the session window. In the Package Library window, click Get Latest From Library. Look for the package named FoxVoteHelppublicversion002. Download it, and look at the contents in the Package Editor. There may be other packages in the library doing similar stuff.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Jul 30, 2008 1:12 pm |
For another example of how to do this, here is my own version:
Code: |
class name="Voting" id="14">
<event event="onConnect" priority="1017" id="16">
<value>#local $now
$now = %time(yymmddhh)
#if ($now - @timeVoted > 12) {
#url http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=DartMUD
#var timeVoted $now
} {#show already voted for Dartmud at http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=DartMUD today}</value>
</event>
<var name="timeVoted" id="17">08073008</var>
</class>
|
|
|
|
|
|
|