Jump to content
MakeWebGames

TheRipper

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

TheRipper's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Mod ideas I have a idea and would be willing to pay you to do it. I want a mod where you can buy slaves and then fight them to the death.Also where you can wager on them or put your slave up for grabs like the car mod where you bet the pink slip..or the mod wouldbe even better if the married people could have children and then fight them to the death..it fits my game..lol
  2. Re: Add jail key Edited it to erase the key after use..sorry forgot to come back and edit it..
  3. Re: jail key   Fixing to head to sleep..I will edit it tomorrow..forgot to add the code here for it to remove the item also..sorry
  4. Really easy but figured with the free jail codes this will help someone out. You might haft to edit it for your table name with your jail time.I use seanybobs jail system and the keys work fine with them. inventory.php Find code print " [[url='itemuse.php?ID={$i[']Use[/url]]";   Insert this code } if($i['itmtypename'] == 'Jail') { print " [[url='itemuse.php?ID={$i[']Use[/url]]";   itemuse.php Put it right before the end of the page } if($r['itmname'] == 'your item name') { mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); mysql_query("UPDATE users SET jailtime=0 WHERE userid=$userid",$c); } print "You use {$r['itmname']}. to get out.";   Then go to your db and create the item type in the itemtype table and the item in the item table.Then it should show up in your admin panel where you can ethier give it away or add it to a shop for sale.I am sure there is a easier way to do this but it worked for me.
  5. I had a coder that wrote mine in for me but honestly not sure what all he did.This looks much simpler.I am copying it from a support forum.Not my code but they posted it for free so geuss it is cool. The following scripts were provided from scanman20. Site Backup via Cron   <? $datestamp = date("Y-m-d_H-i-s"); // Current date to append to filename of backup file in format of YYYY-MM-DD /* CONFIGURE THE FOLLOWING VARIABLES TO MATCH YOUR SETUP */ $filename= "Full_Account_Backup-$datestamp.tar"; // The name (and optionally path) of the dump file $ftp_server = "123.123.123.123"; // Name or IP. Shouldn't have any trailing slashes and shouldn't be prefixed with ftp:// $ftp_port = "21"; // FTP port - blank defaults to port 21 $ftp_username = "anonymous"; // FTP account username $ftp_password = ""; // FTP account password - blank for anonymous $filename = "/home/YOURACCOUNT/" . $filename . ".gz"; $command = "tar cvf ~/$filename ~/*"; $result = exec($command); $command = "gzip -9 -S .gz ~/$filename"; $result = exec($command); // set up basic connection $ftp_conn = ftp_connect($ftp_server); // Turn PASV mode on or off ftp_pasv($ftp_conn, false); // login with username and password $login_result = ftp_login($ftp_conn, $ftp_username, $ftp_password); // check connection if ((!$ftp_conn) || (!$login_result)) { echo "FTP connection has failed."; echo "Attempted to connect to $ftp_server for user $ftp_username"; exit; } else { echo "Connected to $ftp_server, for user $ftp_username"; } // upload the file $upload = ftp_put($ftp_conn, "foo.tar.gz", $filename, FTP_BINARY); // check upload status if (!$upload) { echo "FTP upload has failed."; } else { echo "Uploaded $filename to $ftp_server."; } // close the FTP stream ftp_close($ftp_conn); unlink($filename); //delete the backup file from the server ?>   MySQL backup via cron - Emailed to You   <? $datestamp = date("Y-m-d"); // Current date to append to filename of backup file in format of YYYY-MM-DD /* CONFIGURE THE FOLLOWING SEVEN VARIABLES TO MATCH YOUR SETUP */ $dbuser = ""; // Database username $dbpwd = ""; // Database password $dbname = ""; // Database name. Use --all-databases if you have more than one $filename= "backup-$datestamp.sql.gz"; // The name (and optionally path) of the dump file $to = "[email protected]"; // Email address to send dump file to $from = "[email protected]"; // Email address message will show as coming from. $subject = "MySQL backup file"; // Subject of email $command = "mysqldump -u $dbuser --password=$dbpwd $dbname | gzip > $filename"; $result = passthru($command); $attachmentname = array_pop(explode("/", $filename)); // If a path was included, strip it out for the attachment name $message = "Compressed database backup file $attachmentname attached."; $mime_boundary = "<<<:" . md5(time()); $data = chunk_split(base64_encode(implode("", file($filename)))); $headers = "From: $from\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: multipart/mixed;\r\n"; $headers .= " boundary=\"".$mime_boundary."\"\r\n"; $content = "This is a multi-part message in MIME format.\r\n\r\n"; $content.= "--".$mime_boundary."\r\n"; $content.= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n"; $content.= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $content.= $message."\r\n"; $content.= "--".$mime_boundary."\r\n"; $content.= "Content-Disposition: attachment;\r\n"; $content.= "Content-Type: Application/Octet-Stream; name=\"$attachmentname\"\r\n"; $content.= "Content-Transfer-Encoding: base64\r\n\r\n"; $content.= $data."\r\n"; $content.= "--" . $mime_boundary . "\r\n"; mail($to, $subject, $content, $headers); unlink($filename); //delete the backup file from the server ?>   MySQL backup via cron - FTPed to You   <? $datestamp = date("Y-m-d"); // Current date to append to filename of backup file in format of YYYY-MM-DD /* CONFIGURE THE FOLLOWING THREE VARIABLES TO MATCH YOUR SETUP */ $dbuser = ""; // Database username $dbpwd = ""; // Database password $dbname = ""; // Database name. Use --all-databases if you have more than one $filename= "backup-$datestamp.sql.gz"; // The name (and optionally path) of the dump file $command = "mysqldump -u $dbuser --password=$dbpwd $dbname | gzip > $filename"; $result = passthru($command); /* CONFIGURE THE FOLLOWING FOUR VARIABLES TO MATCH YOUR FTP SETUP */ $ftp_server = ""; // Shouldn't have any trailing slashes and shouldn't be prefixed with ftp:// $ftp_port = "21"; // FTP port - blank defaults to port 21 $ftp_username = "anonymous"; // FTP account username $ftp_password = ""; // FTP account password - blank for anonymous // set up basic connection $ftp_conn = ftp_connect($ftp_server); // Turn PASV mode on or off ftp_pasv($ftp_conn, false); // login with username and password $login_result = ftp_login($ftp_conn, $ftp_username, $ftp_password); // check connection if ((!$ftp_conn) || (!$login_result)) { echo "FTP connection has failed."; echo "Attempted to connect to $ftp_server for user $ftp_username"; exit; } else { echo "Connected to $ftp_server, for user $ftp_username"; } // upload the file $upload = ftp_put($ftp_conn, $filename, $filename, FTP_BINARY); // check upload status if (!$upload) { echo "FTP upload has failed."; } else { echo "Uploaded $filename to $ftp_server."; } // close the FTP stream ftp_close($ftp_conn); unlink($filename); //delete the backup file from the server ?>   Please note that all scripts should be with a .php extension, the file should have 755 permissions, and you would also need to not only change the first few variables to those of your site setup but also add a cron job in Cpanel with a path to the script such as "php /home/username/path-to-the-php-script" (without the "" and replacing path-to-the-php-script with your actual path to it). It looks as if there were a few bugs for a few people and some not.Most here can figure it out but here is the link to where it is posted at so you can see there qeustions and answers. http://www.lunarforums.com/forum/index. ... ic=22118.0 I back my site up to my email and to the site and to a extra email every 6 hours.It saved me since my host service did not do what they claimed.
  6. Free Loan Shark System Beware before trying this code.It will give the player money but when he pays it back he does not lose any money.So if someone adds this to there game you might be flooded with cash very fast..will post it if I can fix it or maybe master will post of he fixes it.
×
×
  • Create New...