Re: [Free] [v1] Monkey Slaves
I thank you for the help, but I don't even know where to start with adding that stuff. This is just more to get me figuring stuff out. I want to learn to make my own mods and this is the best way I can think of.
This is an example of a Loss event for a slave. It looks like I have close to what you are talking about, but maybe in the wrong spot? Thanks for any help with this, I really want to learn this stuff!
if ($rand=='6')
{
$randcash=mt_rand(1,150);
$cash=($ir['cronies']*$randcash);
$safecash=mysql_real_escape_string($cash);
echo "Your Cronies were robbed of $$safecash!";
echo "
Try Again";
$db->query("UPDATE users SET money=money-'$safecash' WHERE userid=$userid");
$db->query("UPDATE users SET cronies_hunger=cronies_hunger-20 WHERE userid=$userid");
$h->endpage();
exit;