Jump to content
MakeWebGames

Curt

Members
  • Posts

    525
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Curt

  1. Hey, I would suggest securing this feature before adding it to your game. $_POST['newsignature']=htmlentities(mysql_real_escape_string($_POST['newsignature'])); Also when you display the contents of that variable you should use htmlentities on that as well...   The top of the viewuser.php page, do you have the query selecting all data from the users table ?..or just whats needed ?... If you have it selecting whats needed only, then you have to add the 'profileSIG' column to the query. Also check to see if the data is being updated in the database.
  2. Curt

    My BJ

    Thats not the issue because you start out with two cards which is added together here: $total = $cardd1 + $cardd2; It may be an issue in one of the included scripts.
  3. Posting the code here may help. If its a free mod of course :P
  4. Awesome, I was going to suggest a Crafting Module :)
  5. Curt

    Curt

    Thanks a lot guys :)
  6. Usually the users sigs and display pics are hosted on another website so i dont think that would be an issue. Don't quote me on that though...lol...just taking a guess.
  7. Was just looking over your code and it does seem a little incorrect.   <?php $macropage="gym.php"; include_once('globals.php'); // SHOULD MAKE 150 AND 100 ENERGYBAR DECLARE 10 OR 15 TRAINS // // ILLUSIONS // if($ir['hospital']) { die("This page cannot be accessed right now."); } $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard'); if (!isset($_POST['amnt'])) { $_POST['amnt'] = 0; } $_POST['amnt'] = abs((int) $_POST['amnt']); if ($ir['jail'] <= 0) { echo "<h3>Gym</h3><hr />"; } else { echo "<h3>Jail Gym</h3><hr />"; } if (isset($_POST['stat']) && $_POST['amnt']) { if (!isset($statnames[$_POST['stat']])) { die("This stat cannot be trained."); } $stat = $statnames[$_POST['stat']]; if ($_POST['amnt'] > $ir['energy']) { print("You do not have enough energy to train that much.<hr />"); } else { // STAT GAIN -- START $gain = 0; if( $ir[$stat] > 50000000 ) { // IF STAT IS MORE THAN 50M for ($i = 0; $i < $_POST['amnt']; $i++) { $gain+=(0.0020*$ir[$stat])+(0.0030*$ir['will']); } } else { // IF STAT IS LESS THAN 50M for ($i = 0; $i < $_POST['amnt']; $i++) { $gain += mt_rand(1, 50) / rand(800, 1000) * rand(800, 1000) * (($will + 20) / 150); } } $ir['will']-=rand(1,3); // STAT GAIN -- END if($ir['will'] < 0) { $ir['will']=0; } if ($ir['jail'] > 0) { $gain /= 2; } $energyloss=$_POST['amnt']*10; $db->query( "UPDATE `userstats` SET `{$stat}` = `{$stat}` + $gain WHERE `userid` = $userid"); $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - $energyloss WHERE `userid` = $userid"); $inc=$ir[$stat]+$gain; $inc2=abs((int) ($ir['energy']/10)-$_POST['amnt']); if($stat=="strength") { print "<center>You begin doing some push-ups. <font color=red>You have gained <b>$gain</b> Power by doing <b>{$_POST['amnt']}</b> push ups.</font> You now have <b>$inc</b> Power and <b>$inc2</b> push ups left you can do.</center>"; } elseif($stat=="agility") { print "<center>You begin running . <font color=purple>You have gained <b>$gain</b> Agility by doing <b>{$_POST['amnt']}</b> minutes of running.</font> You now have <b>$inc</b> Agility and <b>$inc2</b> minutes left.</center>"; } elseif($stat=="guard") { print "<center>You jump into a near by river and begin swimming. <font color=green>You have gained <b>$gain</b> Resistance by doing <b>{$_POST['amnt']}</b> minutes of swimming.</font> You now have <b>{$inc}</b> Resistance and <b>{$inc2}</b> minutes left.</center>"; } print "<hr />"; $ir['energy']-=($_POST['amnt']*10); $ir[$stat]+=$gain; } } $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $numtimes=abs((int)($ir['energy']/10)); if($ir['energy']< 10) { print "<center><h3>You need at least 10 force to Exercise!</center></h3><hr />"; } else { print "<center>Choose the stat you want to train and the times you want to train it. You can train up to {$numtimes} times.<hr /> <form action='gym.php' method='post'> Stat: <select type='dropdown' name='stat'></center>"; print "<center> <option style='color:red;' value='Strength'>Power (Have {$ir['strength']}, Ranked {$ir['strank']}) <option style='color:blue;' value='Agility'>Agility (Have {$ir['agility']}, Ranked {$ir['agirank']}) <option style='color:green;' value='Guard'>Resistance (Have {$ir['guard']}, Ranked {$ir['guarank']}) </select> Times to train: <input type='text' name='amnt' value='{$numtimes}' /> <input type='submit' value='Train' /></form></center>"; } $h->endpage(); ?>   The changes I made start on line 42 and end on 59. Also I did not test this out.
  8. Hey Guys, I was gonna post in the other thread but it was locked, as recommended I created a separate thread. To begin with I despised spamming/advertising in my game. After some time I realized its not too big of an issue for me. I feel as long as I work and make my game better than the "other game" then all will be well. Also if a player has been around your game awhile, its a slim chance they are gonna leave to start over in another game. So if you afraid of losing your players to another game. I would suggest checking that game out and see what they are doing that is making their game more worth playing than yours. Just my opinion....
  9. 4 is a simple sleek design looks nice :)
  10. Lets give it a try :) 468x60 - http://images.gx101.com/b/thb/thugbattle_mb.gif 728x90 - http://images.gx101.com/b/thb/thugbattle.gif Game URL: http://www.thugbattle.com Email: [email protected] Hope your advertising system works out well :)
  11. http://www.mmawars.co.cc The domain mmawars.co.cc is available Continue to registration >> If you want to build a site at this address, please visit us at http://www.co.cc Free domain name .CO.CC
  12. Am I mistaken or isnt this website Mccodes aswell ? http://www.samuraioflegend.com
  13. Why not share the name of the game ?...I would like to check it out :)
  14. I use MCCODES for Thug Battle aswell. The game is customized and no where near resembling the stock version. I have spent just over 2 years developing and expanding the game. I started the game as a simple computer hobby but it has grown into somewhat like a job for me.
  15. I used Michael's Pentesting service and was completely satisfied. So have several other people from this forum and I haven't heard one complaint about him. Matter of fact if you review this thread you will see several positive reviews from past clients. His prices are very affordable (I was very surprised and expected to pay more) You guys have the right to question his skills but actions speak louder than words.
  16. I have had a few charge backs over the course of my games life. The biggest problem I have with charge backs is that paypal finds it necessary to charge you 20$ for each charge back. This fee may be associated only with those who used a credit card to make a purchase but not sure about that. A while back a player spent money on my game on several different occasions. Then he did a charge back on all of them. I would say about 10 different transactions. After reviewing my account and settling the disputes I noticed I was about 200$ short in the account...i was like WTF !!! I called paypal up and explained the situation, the woman was very helpful...i had been charged that 20$ fee i mentioned for each of the chargebacks. (some amounts where as low as 3 to 5$) In the end I got charged a total of 20$ for all the chargebacks. So game owners beware of the chargebacks... I personally think this 20$ fee for each chargeback is crap.... So Alain did they stick you with this 20$ fee aswell ?
  17. great work on the quick developer version release :)
  18. lol...am I the only one noticing the spelling error ?...
  19. Hmm... well even though IE sucks, it is still one of the top used browsers. That is a lot of potential players being directed away from your site for people with this mod. Maybe look into making it compatible ?...at least with the newer versions of IE. If they have IE 5.0 then that is a personal problem...lol Anyway great mod :)
  20. The event add Function is in the global_func.php script, which I don't think is included in the cron files. Instead of using the event add function, just use a simple query insert for the event. :)
  21. I have actually starting doing this with my game several months back. Instead moving the data into a lot of different tables, I have begun moving rows of columns to a second table which is called when needed.
  22. If his system works the way I think it does then two players split a home and when a divorce occurs both players can't live in the same home so it is sold and funds split between both players. I don't have this mod so I can't be sure..
  23. Curt

    Give out

    lol...well ill take a number for the hell of it :P I've got nothing to loose...
  24. Hey, I never logged into the demo account and I still get the above reported error : This IP has already been used to signup. Back
  25. nice to see your game back in production :)
×
×
  • Create New...