Jump to content
MakeWebGames

iSOS

Members
  • Posts

    152
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by iSOS

  1. I made it a long time ago and thats the problem.
  2. iSOS

    Auctions

    It happens when you have the l33t script in your header that 'secures' everything.
  3. iSOS

    My new Project

    You could spend $1,000 on an engine, but that is exactly what it would be an 'engine'. - I think for $1k you might be able to get a half playable custom engine that's it IMO
  4. iSOS

    My new Project

    Horizons is a nice engine, just be aware that the amount of modifications available to it is very limited, People use MC simply because it has a huge modification libary, with Horizons you need to find someone who has had experience with it and can proficiently make modifications to it.
  5. iSOS

    My new Project

    Good luck, I'll answer some of your questions. As a start up fund, $2,000 - $4,000 is a pretty decent budget. Q, Who would be interested in working for me on this project? A, As a paid programmer or a 'partner'? Q, How would I pay you so neither of us get ripped off. A, Hire someone you trust! - search around the forums and do a little research on the person you're hiring. And I wish ya good luck again. =)
  6. Well it all depends on what type of game you have I guess, I mean, take Torn for example, they have a typical crime game nothing too fancy just crime so a simple template suits that best, If you have a 'niche' game then you'll have to have a template that accommodates the theme, say for instance a 'apocalyptic' genre will require some kind of template to represent the genre of the game.
  7. Torn is a bad example of a 'clean' template - you can make sexy templates using CSS as same with images, it all depends what type of site you're trying to accomplish.
  8. I don't think it's worth messing around with all those formulae, You might aswell make a new field in the database, "minEXP" - and if the user doesn't have that amount they fail thus making them complete smaller crimes more and more. Changing 47 formulae is a lot of hard work IMO.
  9. What kind 'extras' are you looking for?
  10. <tables> won't be gone for a looooonnnnnngggggg time.
  11. I agree with Dave, moving any crons outside of public_html is definitely a better option.
  12. I believe "seduction city" - Why would a *player* pass the link around without their referral link - It's obviously you or another one of your chums.
  13. It's a great niche, it's like saying that all the mafia/crime games are offensive and promoting violence, It's different and it's 18+ - No problem there.
  14. There is a difference between helping them and doing it for them. All these stupid posts are reallllllyyyyyy annoying me now.
  15. iSOS

    Gym

    Thanks xD
  16. iSOS

    Gym

    You've changed the code, what's this for ".intval($_GET['uAmount']*5)." - it's taking what ever you've entered * 5 - AFTER the initial check for user energy, not my code error but yours ;)
  17. iSOS

    Gym

    Then I'd have to include globals.php in gDo.php thus making the gym include the header twice and messing the screen up, and thanks! xD
  18. iSOS

    Gym

    if($_GET['uAmount'] > $Data['energy']) { echo ('You don\'t have enough energy to train this amount. <span style = "font-size:10px; color: #8B0000;">You have '.number_format($Data['energy']).'/'.number_format($Data['maxenergy']).' energy available</span> '); exit; }   No it doesn't o.0
  19. iSOS

    Gym

    Nice, that looks good. =) As for moving the function, I've never had that problem, also when it was at the top it messed with default MC layout so that was the reason for being at the bottom, but if anyone else has that problem just move it to top like rulerofzu. EDIT: Added a screenshot to first post.
  20. iSOS

    Gym

    Thanks =)  In "gDo.php" - it's commented out.   $Gain = $_GET['uAmount'] * $Data['will'] / 551   For higher results change the number to something lower. =)
  21. iSOS

    Gym

    I got bored earlier so decided to re create the gym that is seen on "Torn", yes I copied so what I was bored and it's 1,000,000 times better than default gym. gym.php   <?php // # Only to be posted on MAKEWEBGAMES # # Made by the user Zed # # No re-distribution or reselling # // include(DIRNAME(__FILE__).'/globals.php'); ?> <noscript>This gym requires the use of [b]JAVASCRIPT[/b] in order to work.</noscript> <div style=" background-color: #dfdfdf; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 2px solid #A7A7A7; padding: 10px; width: 70%;" id = "gContent" > [b]Welcome to the gym! What would you like to train today?[/b] <span style = "font-size:10px; color: #8B0000;">You have <?php echo (''.number_format($ir['energy']).'/'.number_format($ir['maxenergy']).''); ?> energy available</span> </div> <table width = "75%" style = "border: 1px solid #A7A7A7; text-align:left; padding: 10px;"> <form action = "" method = ""> <tr style = "background: #CCCCCC; padding: 10px;"> <td width = "80%"> -Strength <span style = "font-size:10px; color: #8B0000;">-Increases the damage you make on impact</span> </td> <td width = "50%"> <input type = "text" value = "1" id = "strength" size = "1" /> <input type = "button" value = "Train" onClick = "javascript: gDo('strength');" /> </td> </tr> <tr style = "background: #dfdfdf; padding: 10px;"> <td width = "80%"> -Defence <span style = "font-size:10px; color: #8B0000;">-Increases your ability to withstand damage</span> </td> <td> <input type = "text" value = "1" id = "defence" size = "1" /> <input type = "button" value = "Train" onClick = "javascript: gDo('defence');" /> </td> </tr> <tr style = "background: #CCCCCC; padding: 10px;"> <td width = "80%"> -Speed <span style = "font-size:10px; color: #8B0000;">-Increases your likelihood to make contact with your opponent</span> </td> <td> <input type = "text" value = "1" id = "speed" size = "1" /> <input type = "button" value = "Train" onClick = "javascript: gDo('speed');" /> </td> </tr> </form> </table> <?php $h->endpage(); ?> <script type = "text/javascript"> var xmlhttp; try { xmlhttp = new XMLHttpRequest(); } catch(e) { try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { alert("Browser Incompatibility error!"); } } } function gDo(stat) { xmlhttp.onreadystatechange = function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("gContent").innerHTML = xmlhttp.responseText; } } var uAmt = document.getElementById(stat).value; xmlhttp.open("GET","gDo.php?uStat=" + stat +"&uAmount="+ uAmt, true); xmlhttp.send(); } </script>   gDo.php   <?php // # Only to be posted on MAKEWEBGAMES # # Made by the user Zed # # No re-distribution or reselling # // if(!isset($_GET['uStat']) || !isset($_GET['uAmount'])) { echo ('An error has occured, please try again.'); exit; } //DB connections. session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; // $Data = mysql_fetch_assoc(mysql_query("SELECT `energy`,`will`,`maxenergy` FROM `users` WHERE (`userid` = ".$_SESSION['userid'].")")) or die(mysql_error()); if(!in_array($_GET['uStat'], array('strength','speed','defence'))) { echo ('An error has occured, please try again.'); exit; } if(!ctype_digit($_GET['uAmount'])) { echo ('An error has occured, please try again.'); exit; } if($_GET['uAmount'] > $Data['energy']) { echo ('You don\'t have enough energy to train this amount. <span style = "font-size:10px; color: #8B0000;">You have '.number_format($Data['energy']).'/'.number_format($Data['maxenergy']).' energy available</span> '); exit; } //Formula, YES it sucks but you can change it whenever. $Gain = $_GET['uAmount'] * $Data['will'] / 551; echo ('<span style = "color:green; font-weight:bold;">You gained '.number_format($Gain, 3).' '.$_GET['uStat'].' by training '.number_format($_GET['uAmount']).' times.</span> <span style = "font-size:10px; color: #8B0000;">You have '.number_format($Data['energy']).'/'.number_format($Data['maxenergy']).' energy available</span>'); mysql_query("UPDATE `users` SET `energy` = `energy` - ".intval($_GET['uAmount']).", `will` = `will` - ".intval($_GET['uAmount'])." * 2 WHERE (`userid` = ".$_SESSION['userid'].")"); mysql_query("UPDATE `userstats` SET ".$_GET['uStat']." = ".$_GET['uStat']." + ".intval($Gain)." WHERE (`userid` = ".$_SESSION['userid'].")"); exit; ?>   It hasn't been tested very well, I'll leave that to you guys, it was just something I did in a spare 15mins, let me know of any problems, . If anyone is going to cry about it looking like torns (Danny696) please cry somewhere else, it's better than the default. EDIT: http://img821.imageshack.us/img821/9906/1280584817955.png
  22. There is no error in the code I posted, make sure you're ending the current "print" before you put that statement. I think you're doing something like this which is wrong...   print " Blah Blah Blah if($ir['level'] > 20) { echo ('[url="Auction.php"]Auction Market[/url] '); } Blah Blah Blah ";
  23. if($ir['level'] > 20) { echo ('[url="Auction.php"]Auction Market[/url] '); }
  24. Isn't a bad idea actually. =)
  25. Lol, that would be entering there username & password then lmfao, not session hijacking!
×
×
  • Create New...