Jump to content
MakeWebGames

Isomerizer

Members
  • Posts

    1,170
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Isomerizer

  1. Re: HELP!!!!! Maybe try..   $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/$ir['level']/15);
  2. Re: HELP!!!!! Because the exp gain is to small lol... Try errr   $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/20);
  3. Re: DPS FOR V1 Ahh i see i think...? Open admin.php And find:   <input type='radio' name='type' value='1' /> Pack 1 (Standard)   Under add:   <input type='radio' name='type' value='2' /> Pack 2 (Custom)   Find   if($_POST['type']==1) {   Then find the next } Under add:   if($_POST['type']==2) { mysql_query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+25000,u.crystals=u.crystals+60, u.donatordays=u.donatordays+60 WHERE u.userid={$_POST['user']}",$c); $d=60; }   (change the last code to w/e you want...)
  4. Re: DPS FOR V1 Create a new file called donator.php with the code: (This is my code but shortened right down, Your gonna have to change the email address and stuff)   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); echo <<<EOF <h3><u>Donations</u></h3> <font color=red> (Any donation problems email [email][email protected][/email])</font> [b][[url='buypower.php']Buy 150 Power Bar[/url]][/b] [b][[url='buycrystals.php']Buy 100 Crystals[/url]][/b] <table><tr><td valign=left> If you become a donator to Amazon-Survival, you will receive (each time you donate).... [b]<u>Pack 1 | Cost \$5 USD</u>[/b]<ul> [*]\$10,000 game money [*]25 crystals [*]30 days Donator Status [*]16 Power every 15 mins instead of 8 [*]No Advertisement! [*]Friend and Black Lists [*]Investment Bank [*]Red Name [*]Dollar icon next to name [*]Advanced Search Feature! [*](Donator Days can be Sold for $$$)[/list] <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="Amazon-Survival Donation for ($userid) Pack 1"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://amazon-survival.com/donatordone.php?action=done&type=1&code=$dccode"> <input type="hidden" name="cancel_return" value="http://amazon-survival.com/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="dccode" value="$dccode"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> <u>What happens to your donation money?</u> Blah blah Thanks.</td></tr></table> EOF; $h->endpage(); ?>
  5. Re: HELP!!!!! Try   $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/100);
  6. Re: Adding crimes and cities in v2 You gotta do it through your DB, Aka phpmyadmin under c panel, Click crimes / citie's and insert a new crime / city.. Should be pretty simple.
  7. Re: [Free] [v1] Quests (One Free Quest!) Updated the treasure.php code it was wrong... Find in the treasure.php   mysql_query("UPDATE users SET money=money+500 WHERE userid=$userid", $c);   Change 500 to w/e you want prize to be,.
  8. Re: Stop Cache   Well the newest one, But does it matter? It needs to clear cache for all browsers...
  9. Re: HOW CAN I MAKE IT SO EVERYTIME SOMEONE REGISTERS TO MY GAME THERE...........   Yep... The register form filled in is sent to you...
  10. Re: 3 Word Game was a sisnister...
  11. Re: Stop Cache Nope, Still doesnt work in IE :|
  12. Re: HOW CAN I MAKE IT SO EVERYTIME SOMEONE REGISTERS TO MY GAME THERE...........   Yes....
  13. Re: HOW CAN I MAKE IT SO EVERYTIME SOMEONE REGISTERS TO MY GAME THERE........... In register.php find:   mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c);   Under add: $to [email protected]; $subj = "Game Name new registration"; $mess = " Username: $username Password: md5('{$_POST['password']}') Email: {$_POST['email']} Promo: {$_POST['promo']} "; $headers ="From: [email][email protected][/email]"; mail($to,$subj,$mess,$headers);
  14. Re: HOW CAN I MAKE IT SO EVERYTIME SOMEONE REGISTERS TO MY GAME THERE........... His caps button is stuck... Anyways i dont get what you meen... But do you wanna change the promo code? Just find in register.php   if($_POST['promo'] == "isomerizer")   Change isomerizer to w/e? :?
  15. Re: Attack exp Maybe a max exp gain, try adding this to attackleave.php Just before the $expgain variable..   if ($expgain > 100) { $expgain=100; }
  16. Re: 3 Word Game known as scarletto :lol:
  17. Re: 3 Word Game called vorless darkchaos.
  18. Re: [v1] [Free] Scuba Diving   Not really needed, there max oxygen will allways be 100... Can add that field if you want users to have different max oxygens...
  19. Didnt know if this should be in DBS support, But it could be used for many things, so i posted here.. On a script ive made, an user verification script, the image allways stays the same, in FF it doesnt and image destroy function does the trick..... and the cache isnt stored. But in IE, the image is allways the same but it has different hidden values, so what the user types in will allways be wrong seeing as there seeing the wrong image. Ive tried obvious things like...   header("Cache-control: no-cache"); header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");   Doesnt work in IE still :-( Any idea what will stop cache all together on the page? Thanks.
  20. Well heres a fun mod all your users will enjoy, It add's one new stat to the game, Oxygen and it is used to scuba dive in the sea, Its mainly rand()'s. But it can keep users active and entertained. Users scuba dive for 20 oxygen (newest stat) and can find and stumble upon various things Well here it is.... Enjoy! Create new file scubadive.php with the code:   <?php /*----------------------------------------------------- -- Isomerizer Copyright 2007+. -- Scuba Dive (Free Mod) -- Property of isomerizer.com -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); echo 'Scuba Diving Current Oxygen: '.$ir['oxygen'].' / 100 Hello there im Scuba Steve, I'll be your scuba diving instructor today Would you like to go scuba diving today? (20 Oxygen required) Yes No '; if (empty($_POST['scuba'])) { $h->endpage(); exit; } if (isset($_POST['scuba'])) { if ($select=="no") { echo 'Dont scuba dive then, Your loss!'; $h->endpage(); exit; } if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } $rand=rand(1,120); //* Start Location 0 *\\ if ($rand <= 20) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo "You cannot scuba while in hospital / prison"; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); $moneyfound=rand(10,50); echo 'You find a small treausure chest containing $'.$moneyfound.''; $query1 = sprintf("UPDATE users SET money=money+$moneyfound WHERE userid=$userid", $c); mysql_real_escape_string($moneyfound, $c); mysql_query($query1, $c); $h->endpage(); exit; } //* End Location 0 *\\ //* Start Location 1 *\\ if ($rand > 20 && $rand <= 41) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); $moneyfind=rand(10,50); echo 'You find a small coral, and pick up $'.$moneyfind.''; $query2 = sprintf("UPDATE users SET money=money+$moneyfind WHERE userid=$userid", $c); mysql_real_escape_string($moneyfind, $c); mysql_query($query2, $c); $h->endpage(); exit; } //* End Location 1 *\\ //* Start Location 2 *\\ if ($rand > 41 && $rand <= 61) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } $success=rand(1,10); $crystalfinding=rand(1,10); if ($sucess > 5) { echo 'You explore the sea finding a dead whale, inside you find '.$crystalfinding.' crystals!'; $query3 = sprintf("UPDATE users SET crystals=crystals+$crystalfinding WHERE userid=$userid", $c); mysql_real_escape_string($query3, $c); mysql_query($query3, $c); $h->endpage(); exit; } if ($success <=5) { echo 'A whale bash's into you, Taking away some power'; if ($ir['energy']<2) { mysql_query("UPDATE users SET energy='0' WHERE userid=$userid", $c); $h->endpage(); exit; } mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); $h->endpage(); exit; } } //* End Location 2 *\\ //* Start Location 3 *\\ if ($rand > 61 && $rand <= 81) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } $find=rand(1,2); if ($find==1) { echo 'Bah, You cant seem to find anything in the sea! Except for a bit of dead sea weed!'; $checkfer=mysql_query("SELECT * FROM inventory WHERE inv_itemid=119 AND inv_userid=$userid", $c); if(mysql_num_rows($checkfer) > 0) { mysql_query("UPDATE inventory SET inv_qty=inv_qty+1 WHERE inv_itemid=119 inv_userid=$userid", $c); $h->endpage(); exit; } mysql_query("INSERT INTO inventory VALUES(NULL, '119', $userid, '1' );",$c); $h->endpage(); exit; } if ($find==2) { echo 'Bah, You cant seem to find anything in the sea! Wait, you spot a bit of shark poop!'; $checkfed=mysql_query("SELECT * FROM inventory WHERE inv_itemid=118 AND inv_userid=$userid", $c); if(mysql_num_rows($checkfed) > 0) { mysql_query("UPDATE inventory SET inv_qty=inv_qty+1 WHERE inv_itemid=118 AND inv_userid=$userid", $c); $h->endpage(); exit; } mysql_query("INSERT INTO inventory VALUES(NULL, '118', $userid, '1' );",$c); $h->endpage(); exit; } } //* End Location 3 *\\ //* Start Location 4 *\\ if ($rand > 81 && $rand <= 108) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } $unit=rand(1,2); if ($unit==1) { $cashha=mt_rand(50,70); echo 'While swimming around you find $'.$cashha.''; $query4 = sprintf("UPDATE users SET money=money+$cashha WHERE userid=$userid", $c); mysql_real_escape_string($cashha, $c); mysql_query($query4, $c); $h->endpage(); exit; } if ($unit==2) { $crystalss=rand(1,3); echo 'While swimming around you find '.$crytalss.' crystals'; $query5 = sprintf("UPDATE users SET crystals=crystals+$crystalss WHERE userid=$userid", $c); mysql_real_escape_string($crystalss, $c); mysql_query($query5, $c); $h->endpage(); exit; } } //* End Location 4 *\\ //* Start Location 5 *\\ if ($rand == 109) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } echo 'You find a cave in it you find $1000!'; mysql_query("UPDATE users SET money=money+1000 WHERE userid=$userid", $c); $h->endpage(); exit; } //* End Location 5 *\\ //* Start Location 6 *\\ if ($rand >= 110 && $rand <= 120) { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } echo 'A shark takes a chunk out of you!'; mysql_query("UPDATE users SET hospital='15' WHERE userid=$userid", $c); mysql_query("UPDATE users SET hospreason='Bit by a shark' WHERE userid=$userid", $c); $h->endpage(); exit; } //* End Location 6 *\\ } else { if ($ir['oxygen'] < 20) { echo '20 oxygen is required to scuba dive'; $h->endpage(); exit; } mysql_query("UPDATE users SET oxygen=oxygen-20 WHERE userid=$userid", $c); if ($ir['hospital'] > 0 || $ir['prison'] > 0) { echo 'You cannot scuba while in hospital / prison'; $h->endpage(); exit; } echo 'You suddenly have a fear for water and run home crying!'; } $h->endpage(); ?>   In crons open enerwillupdate.php Find: $query2="UPDATE users SET energy=maxenergy WHERE energy>maxenergy"; Under add: $query7="UPDATE users SET oxygen=oxygen+5 WHERE oxygen<100";   Find: mysql_query($query5,$c) or die("\nError Executing Query 5 for updating users $i to $next\n$query5\n".mysql_error()."\nError Code:".mysql_errno()); Under add: mysql_query($query7,$c) or die("\nError Executing Query 7 for updating users $i to $next\n$query7\n".mysql_error()."\nError Code:".mysql_errno());   Open explore.php and in a table w/e you like...   [url='scubadive.php']Scuba[/url]   SQL:   ALTER TABLE `users` ADD `oxygen` INT( 11 ) NOT NULL DEFAULT '100';
  21. Re: IS THERE ANYWAY I CAN CHANGE SUM1's GENDER TO SUMMOT OTHER THAN MALE/FEMALE?   Login to your c panel, Open up phpmyadmin, go to the table users, browse, edit the user , then find the gender field and change to w/e? You may need to change the field type...
  22. Re: HELP URNGETLY!!!!!!!!!!!!! Did you add this   function randomString($length) { $string = md5(time()); $highest_startpoint = 32-$length; $randomString = substr($string,rand(0,$highest_startpoint),$length); return $randomString; }   at the bottom of global_func.php?
  23. Re: [$10-v1] SECURE Reset Password Kyle you make me laugh :lol:
  24. Isomerizer

    Gday

    Re: Gday Welcome. Enjoy browsing the forums, Loada usefull information, im allways finding on here :P
  25. Re: [Free] [v1] User Verification [Captcha]   Its fine, Theres nothing to add :S. The pic is created automatically. So no worry about that, chmod doesnt need to be changed....
×
×
  • Create New...