Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
sorrysight
Newbie


Joined: 06 Mar 2007
Posts: 1

PostPosted: 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?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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>
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net