ok this is preety simple i made it from the crystal temple and just edited it a bit and stuck a few extra things in
ruby_trader.php
<?php
include "globals.php";
if(!$_GET['spend'])
{
print "Welcome to the Ruby Trader
You have [b]{$ir['ruby']}[/b] Ruby's.
What would you like to spend your Ruby's on?
Every day your ruby's will go up by one
</pre>
<table cellpadding="8" width="75%" border="1">Strength3 Strength1 Ruby[url='ruby_trader.php?spend=strength']Trade[/url]IQ1 IQ1 Ruby[url='ruby_trader.php?spend=IQ']Trade[/url]Money$2001 Ruby[url='ruby_trader.php?spend=money']Trade[/url]Labour3 Labour1 Ruby[url='ruby_trader.php?spend=labour']Trade[/url]Agilty3 Agilty1 Ruby[url='ruby_trader.php?spend=agilty']Trade[/url]Crystals2 crystals1 Ruby[url='ruby_trader.php?spend=crystal']Trade[/url]$3 Donator Pack 1 Donator Pack100 Ruby's[url='ruby_trader.php?spend=dp']Trade[/url]Will Potion1 Will Potion50 Ruby's[url='ruby_trader.php?spend=will']Trade[/url]</table>";<br>}<br><br>else<br>{<br>if($_GET['spend'] == 'dp')<br>{<br>if($ir['ruby'] < 100 )<br>{<br>print "You don't have enough Rubys's";<br>}<br>else<br>{<br>$db->query("UPDATE users SET donatordays=donatordays+30,money=money+5000,crystals=crystals+50,ruby=ruby-100 WHERE userid=$userid");<br>$db->query("UPDATE userstats SET IQ=IQ+50 WHERE userid=$userid");<br>print "You have paid 100 Ruby's to Get your $3 Donator Pack :).";<br>}<br>}<br>else if($_GET['spend'] == 'IQ')<br>{<br>print "Type in the amount of Ruby's you want to swap for IQ.<br><br>You have [b]{$ir['ruby']}[/b] Ruby's.<br><br>One Ruby = 1 IQ.<br>";<br>}<br>else if($_GET['spend'] == 'IQ2')<br>{<br>$_POST['ruby']=(int) $_POST['ruby'];<br>if($_POST['ruby'] <= 0 || $_POST['ruby'] > $ir['ruby'])<br>{<br>print "Error, you either do not have enough ruby's or did not fill out the form.<br><br>[url='ruby_trader.php?spend=IQ']Back[/url]";<br>}<br>else<br>{<br>$iqgain=$_POST['ruby']*1;<br>$db->query("UPDATE users SET ruby=ruby-{$_POST['ruby']} WHERE userid=$userid");<br>$db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid");<br>print "You traded {$_POST['ruby']} Ruby's for $iqgain IQ.";<br>}<br>}<br>else if($_GET['spend'] == 'money')<br>{<br>print "Type in the amount of Ruby's you want to swap for money.<br><br>You have [b]{$ir['ruby']}[/b] Ruby's.<br><br>One Ruby = \$".number_format(200).".<br>";<br>}<br>else if($_GET['spend'] == 'money2')<br>{<br>$_POST['ruby']=(int) $_POST['ruby'];<br>if($_POST['ruby'] <= 0 || $_POST['ruby'] > $ir['ruby'])<br>{<br>print "Error, you either do not have enough Ruby's or did not fill out the form.<br><br>[url='ruby_trader.php?spend=money']Back[/url]";<br>}<br>else<br>{<br>$iqgain=$_POST['ruby']*200;<br>$db->query("UPDATE users SET ruby=ruby-{$_POST['ruby']},money=money+$iqgain WHERE userid=$userid");<br>print "You traded {$_POST['ruby']} Ruby's for \$".number_format($iqgain).".";<br>}<br>}<br>else if($_GET['spend'] == 'strength')<br>{<br>print "Type in the amount of Ruby's you want to swap for Strength.<br><br>You have [b]{$ir['ruby']}[/b] Ruby's.<br><br>One Ruby = 3 Strength<br>";<br>}<br>else if($_GET['spend'] == 'strength2')<br>{<br>$_POST['ruby']=(int) $_POST['ruby'];<br>if($_POST['ruby'] <= 0 || $_POST['ruby'] > $ir['ruby'])<br>{<br>print "Error, you either do not have enough Ruby's or did not fill out the form.<br><br>[url='ruby_trader.php?spend=strength']Back[/url]";<br>}<br>else<br>{<br>$iqgain=$_POST['ruby']*3;<br>$db->query("UPDATE users SET ruby=ruby-{$_POST['ruby']} WHERE userid=$userid");<br>$db->query("UPDATE userstats SET strength=strength+$iqgain WHERE userid=$userid");<br>print "You traded {$_POST['ruby']} Ruby's for $iqgain strength.";<br>}<br>}<br>else if($_GET['spend'] == 'labour')<br>{<br>print "Type in the amount of Ruby's you want to swap for Labour.<br><br>You have [b]{$ir['ruby']}[/b] Ruby's.<br><br>One Ruby = 3 Labour<br>";<br>}<br>else if($_GET['spend'] == 'labour2')<br>{<br>$_POST['ruby']=(int) $_POST['ruby'];<br>if($_POST['ruby'] <= 0 || $_POST['ruby'] > $ir['ruby'])<br>{<br>print "Error, you either do not have enough Ruby's or did not fill out the form.<br><br>[url='ruby_trader.php?spend=labour']Back[/url]";<br>}<br>else<br>{<br>$iqgain=$_POST['ruby']*3;<br>$db->query("UPDATE users SET ruby=ruby-{$_POST['ruby']} WHERE userid=$userid");<br>$db->query("UPDATE userstats SET labour=labour+$iqgain WHERE userid=$userid");<br>print "You traded {$_POST['ruby']} Ruby's for $iqgain labour.";<br>}<br>}<br>else if($_GET['spend'] == 'crystal')<br>{<br>print "Type in the amount of Ruby's you want to swap for Labour.<br><br>You have [b]{$ir['ruby']}[/b] Ruby's.<br><br>One Ruby = 2 Crystals<br>";<br>}<br>else if($_GET['spend'] == 'crystal2')<br>{<br>$_POST['ruby']=(int) $_POST['ruby'];<br>if($_POST['ruby'] <= 0 || $_POST['ruby'] > $ir['ruby'])<br>{<br>print "Error, you either do not have enough Ruby's or did not fill out the form.<br><br>[url='ruby_trader.php?spend=crystal']Back[/url]";<br>}<br>else<br>{<br>$iqgain=$_POST['ruby']*2;<br>$db->query("UPDATE users SET ruby=ruby-{$_POST['ruby']},crystals=crystals+$iqgain WHERE userid=$userid");<br>print "You traded {$_POST['ruby']} Ruby's for $iqgain Crystals.";<br>}<br>}<br>else if($_GET['spend'] == 'will')<br>{<br>if($ir['ruby'] < 50 )<br>{<br>print "You don't have enough Rubys's";<br>}<br>else<br>{<br>$db->query("UPDATE users SET ruby=ruby-50 WHERE userid=$userid");<br>$db->query("INSERT INTO inventory VALUES('',150,$userid,1)",$c);<br>print "You have paid 50 Ruby's to Get your Will Potion :).";<br>}<br>}<br>}<br><br>$h->endpage();<br>?><br><b
add this to you data base in your users table
ruby (int) default 0
add this to your day cron file cron file
$db->query("UPDATE users SET ruby=ruby+1",$c);
and then every one will get 1 ruby per day enjoy :-D :-D :-D :-D :-D :-D