Jump to content
MakeWebGames

lucky3809

Members
  • Posts

    1,115
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by lucky3809

  1. you wont make a lot of money off any game unless it is your passion, and you create it in your own unique way, if your looking to make cash fast it won't happen, it takes a lot of effort and time to make cash from a game, and all players know a real coder and gamer, and also know when someone is greedy, which will lead them to donate else where, it has happened in a lot of games. An unique game and ideas you created yourself and love will make lots of money!

  2. You forgot too about your sqls, or maybe that is nothing to worry about but on some websites is a username going to be 255 characters long? lol. or a password? I counted those as a buggy lol.. but yeah i spotted those missed spelt vars, and also the end close tags, i however did not see the quotations, but i just glanced at the script i never really studied it longer then i should have.

  3. Whats wrong with $_REQUEST? (Please I want lucky to answer it)

    It does not only combine $_GET and $_POST, but also $_COOKIE, where a specific cookie value can be set by a malicious user, if the value already exists it will overwrite the $_GET and $_POST data... Maybe I am wrong?? Some people don't think $_REQUEST is bad, but what I have read and learned I will never be using it.

  4. I know I am a noob if you want to call it that in security, because i am still learning about it, but the main thing I would never use in the script provided is $_REQUEST, that is the first thing I see wrong in it, and of course several other things, but not as many as you all see lol, but I am no expert yet.

  5. why not just go into your permissions in ftp and not allow access to that file for that mod? At the time of not wanting it there, and deleting the link in your game to the mod..

    all this other is just complicating when it's really easy to do it that way, then have something coded that is not necessarily needed.

  6. i know old post ... lol i have seen same lottery on roguevampires,(no it has never been done on this forum), but if you know me everything on there i have duplicated :) Did not try your education part, but that looks also like the vala on rv, I have done that too lol. But now I am doing something that a player on there suggested a while back which was territories, something I have been working on for awhile.

  7. If you do not want the 12 energy... and want 100 for none and 150 for donators... go into global_func.php erase the energy stuff in the function part Maniak posted, then open header.php and find...

    $enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
    $wiperc=(int) ($ir['will']/$ir['maxwill']*100);
    $experc=(int) ($ir['exp']/$ir['exp_needed']*100);
    $brperc=(int) ($ir['brave']/$ir['maxbrave']*100);
    $hpperc=(int) ($ir['hp']/$ir['maxhp']*100);

     

    Above that, add:

    $db->query('UPDATE users SET maxenergy= 150 WHERE donatordays > 0')or die(mysql_error());
    $db->query('UPDATE users SET maxenergy= 100 WHERE donatordays = 0')or die(mysql_error());
    

     

    You will also need to change the INSERT query on the register page, and add 100 instead of 12

  8. Under...

       $gain=0;
       for($i=0; $i<$_POST['amnt']; $i++)
       {
         $gain+=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150);
         $ir['will']-=rand(1,3);
         if($ir['will'] < 0) { $ir['will']=0; 
       }
       }
    

     

    Add..

    $energy=($_POST['amnt']*5);

    Change this query..

    
       $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$_POST['amnt']} WHERE `userid` = $userid");
    

    To...

    
       $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$energy} WHERE `userid` = $userid");
    

     

    Then find...

    
    print "Choose the stat you want to train and the times you want to train it.<br />
    You can train up to {$ir['energy'] } times.<hr />
    

     

    Replace with..

    print 'Choose the stat you want to train and the times you want to train it.<br />
    You can train up to '.(int)($ir['energy'] /= 5).' times.<hr />';
    print "
    

     

    Then find..

    
    Times to train: <input type='text' name='amnt' value='{$ir['energy']}'/><br />
    

    Replace with...

    
    Times to train: <input type='text' name='amnt' "; echo ' value="'.intval($ir['energy']).'" /><br />'; print"
    

     

    This was quick, but an example how to do it... As for the last part you may want to fix the print and make it all echo ' '; like i did here ...echo ' value="'.intval($ir['energy']).'" /><br />';

    I was just too lazy to go through it and change it all lol...

  9. In your gym.php look at all the UPDATE queries and see what $var it is, I can't remember which one, but in the query it should be like... energy=energy-$cost

    then look for that var $cost=.... and there you will find the calculations.

  10. IMHO, this should have been there day one of mccodes development, and to make it even simpler, why wasn't the scripts ever put to test, or tried out, maybe most of all the bugs could been avoided in the first place. Mccodes will always be the worst engine ever. Even after all this time, of thinking of reasoning out the problems, it's kind of too late, but I guess better now that you offer such now.

  11. alphacrime.com is awesome check it out username is isay123 and pass is isay123 and it has that with alot of people and its kinda hard to get cash

    IMO, not nothing special, rather it takes long to get cash or not, everything on there has been done. Nothing different then the rest of the games.

×
×
  • Create New...