Jump to content
MakeWebGames

BluroSoft

Members
  • Posts

    45
  • Joined

  • Last visited

BluroSoft's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. haha you simply just used the html/css from their game and that is all i see. not worth nothing.
  2. scriptians.com Scriptcreators.com TheMafians.com
  3. ScriptCartel.com MafiaCoding.com UGEngines.com - Under Ground Engines Scriptedmafia.com CodeOfMafia.com
  4. I need some help with my donation logs. Basically i want to view my total donation for last month can some help me code this in. I have tried this no result being displayed. $blah=$db->query("SELECT SUM(payment) as total_payment FROM donations WHERE timestamp BETWEEN DATE_ADD( now( ) , INTERVAL -1 MONTH ) AND now() "); $blah->fetchInto($row); echo $row['total_payment'];   this is my current script (Mccodes v2) function view_donation_logs() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $_GET['st']=abs((int) $_GET['st']); $rpp=100; print "<h3>Donation Logs</h3> <table width=100% cellspacing='1' class='table'> \n<tr style='background:gray'> <th>Time</th> <th>User</th> <th>Amount</th> <th>Item</th> <th>Qty</th> </tr>"; $q=$db->query("SELECT * FROM donations AS s LEFT JOIN users AS u ON s.buyer=u.userid ORDER BY s.id DESC LIMIT {$_GET['st']},$rpp "); while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y g:i:s a', $r['timestamp'])."</td><td><a href=#viewuser.php?u={$r['buyer']}>{$r['username']}</a> [{$r['buyer']}]</td><td>\${$r['payment']}</td><td>{$r['item']}</td><td>{$r['quantity']}</td></tr> "; } print"</table><br />"; $mypage=floor($_GET['st']/$rpp)+1; $q2=$db->query("SELECT id FROM stafflog"); $rs=$db->num_rows($q2); $pages=ceil($rs/$rpp); print "Pages: "; for($i=1;$i<=$pages;$i++) { $st=($i-1)*$rpp; print "<a href='staff_logs.php?action=dlogs&st=$st'>$i</a> "; } stafflog_add("Looked at the donation logs"); }
  5. REMOVED BY a_bertrand => not in the right section
  6. Okay basically some of my top players have their stats over 19486372424599998562304+ when they attack a player their max damage is around 1-2 even low level players can beat them up. One player reported with a crap item he can hit quite good but with top items he can not if someone can help me identify and resolve this error it will be great.   $_SESSION['attacking'] = 1; $ir['attacking'] = $odata['userid']; $db->query("UPDATE users SET attacking={$ir['attacking']} WHERE userid=$userid"); $_GET['wepid'] = (int)$_GET['wepid']; $_GET['nextstep'] = (int)$_GET['nextstep']; //damage if ($youdata['location'] != $odata['location']) { print "You can only attack someone in the same location! <br /><a data-role='button' data-rel='back' href='index.php'>Back</a>"; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $h->endpage(); exit; } if ($_GET['wepid'] != $ir['equip_primary'] && $_GET['wepid'] != $ir['equip_secondary']) { print "Stop trying to abuse a game bug. You can lose all your EXP for that.<br /> <a href='index.php'>> Home</a>"; $db->query("UPDATE users SET exp=0 where userid=$userid", $c); die(""); } $qo = $db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); $r1 = $db->fetch_row($qo); $mydamage = (int)(($r1['weapon'] * $youdata['strength'] / ($odata['guard'] / 1.5)) * (rand(8000, 12000) / 10000)); $hitratio = max(10, min(60 * $ir['agility'] / $odata['agility'], 95)); if (rand(1, 100) <= $hitratio) { $q3 = $db->query("SELECT i.armor FROM items i WHERE itmid={$odata['equip_armor']} ORDER BY rand()"); if ($db->num_rows($q3)) { $mydamage -= $db->fetch_single($q3); } if ($mydamage < -100000) { $mydamage = abs($mydamage); } elseif ($mydamage < 1) { $mydamage = 1; } $crit = rand(1, 40); if ($crit == 17) { $mydamage *= rand(20, 40) / 10; } elseif ($crit == 25 or $crit == 8) { $mydamage /= (rand(20, 40) / 10); } $mydamage = round($mydamage); $odata['hp'] -= $mydamage; if ($odata['hp'] == 1) { $odata['hp'] = 0; $mydamage += 1; } $db->query("UPDATE users SET hp=hp-$mydamage WHERE userid={$_GET['ID']}"); print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font><br />\n"; $_SESSION['attackdmg'] += $mydamage; $_SESSION['attacklog'] .= "<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font><br />\n"; } else { print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font><br />\n"; $_SESSION['attacklog'] .= "<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font><br />\n"; } if ($odata['hp'] <= 0) { $odata['hp'] = 0; $_SESSION['attackwon'] = $_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print "<br /> <b>What do you want to do with {$odata['username']} now?</b><br /> <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Steal Money' /></form> <form action='attackcry.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Steal Crystals' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave at Hospital' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave For Exp' /></form>"; /*<form action='attackbomb.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them & Bomb (cost $20,000)' /></form>*/ } else { //choose opp gun $eq = $db->query("SELECT i.* FROM items i WHERE i.itmid IN({$odata['equip_primary']}, {$odata['equip_secondary']})"); if (mysql_num_rows($eq) == 0) { $wep = "Fists"; $dam = (int)((((int)($odata['strength'] / $ir['guard'] / 100)) + 1) * (rand(8000, 12000) / 10000)); } else { $cnt = 0; while ($r = $db->fetch_row($eq)) { $enweps[] = $r; $cnt++; } $weptouse = rand(0, $cnt - 1); $wep = $enweps[$weptouse]['itmname']; $dam = (int)(($enweps[$weptouse]['weapon'] * $odata['strength'] / ($youdata['guard'] / 1.5)) * (rand(8000, 12000) / 10000)); } $hitratio = max(10, min(60 * $odata['agility'] / $ir['agility'], 95)); if (rand(1, 100) <= $hitratio) { $q3 = $db->query("SELECT i.armor FROM items i WHERE itmid={$ir['equip_armor']} ORDER BY rand()"); if ($db->num_rows($q3)) { $dam -= $db->fetch_single($q3); } if ($dam < -100000) { $dam = abs($dam); } elseif ($dam < 1) { $dam = 1; } $crit = rand(1, 40); if ($crit == 17) { $dam *= rand(20, 40) / 10; } elseif ($crit == 25 or $crit == 8) { $dam /= (rand(20, 40) / 10); } $dam = round($dam); $youdata['hp'] -= $dam; if ($youdata['hp'] == 1) { $dam += 1; $youdata['hp'] = 0; } $db->query("UPDATE users SET hp=hp-$dam WHERE userid=$userid"); $ns = $_GET['nextstep'] + 1; print "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit you doing $dam damage ({$youdata['hp']})</font><br />\n"; $_SESSION['attacklog'] .= "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit {$ir['username']} doing $dam damage ({$youdata['hp']}hp left)</font><br />\n"; } else { $ns = $_GET['nextstep'] + 1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']}hp left)</font><br />\n"; $_SESSION['attacklog'] .= "<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font><br />\n"; } if ($youdata['hp'] <= 0) { $youdata['hp'] = 0; $_SESSION['attacklost'] = 1; $db->query("UPDATE users SET hp=0 WHERE userid=$userid"); print "<form action='attacklost.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Continue' />"; } } } elseif ($odata['hp'] < 5) { print "You can only attack those who have health<a data-role='button' data-rel='back' href='index.php'>Back</a>"; $h->endpage(); exit; } elseif ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { print "You are in the same gang as {$odata['username']}! What are you smoking today dude!<a data-role='button' data-rel='back' href='index.php'>Back</a>"; $h->endpage(); exit; } elseif ($youdata['energy'] < $youdata['maxenergy'] / 2) { print "You can only attack someone when you have 50% energy<a data-role='button' data-rel='back' href='index.php'>Back</a>"; $h->endpage(); exit; } elseif ($youdata['location'] != $odata['location']) { print "You can only attack someone in the same location!<a data-role='button' data-rel='back' href='index.php'>Back</a>"; $h->endpage(); exit; } else { } print "</td></tr></table>"; if ($youdata['hp'] <= 0 || $odata['hp'] <= 0) { print ""; } else { $vars['hpperc'] = round($youdata['hp'] / $youdata['maxhp'] * 100); $vars['hpopp'] = 100 - $vars['hpperc']; $vars2['hpperc'] = round($odata['hp'] / $odata['maxhp'] * 100); $vars2['hpopp'] = 100 - $vars2['hpperc']; $mw = $db->query("SELECT i.* FROM items i WHERE i.itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']})"); print "<div class='attackbox'>Attack with:<br /><br />"; if ($db->num_rows($mw) > 0) { while ($r = $db->fetch_row($mw)) { if (!$_GET['nextstep']) { $ns = 1; } else { $ns = $_GET['nextstep'] + 2; }
  7. This is not a stolen design neither im i selling it, i created this for future use, yes i copied Street crimes layout but i did not steal nothing and its quite different btw not exactly the same
  8. I recently designed a template but need someone to code it for me as i do not have the time. I need it in css/html then mccodes header/mainmenu files. ill pay $25-35 Only Pm if your someone who can code and someone trust able because i do not want people jacking the PSD lol.
  9. Obviously i will not buy it straight im not retarded but it will defo would have been a waste of time and would have taken it seriously and im sure you would have played up to trying to possibly fit in a scam. And trolling? your the whos doing that.
  10. no i bet you tried to sell it to me why you lying if the owners did not post here then i possibly would have paid for this unaware that it is not even yours but guess you got caught now trying to act innocent.
  11. Contact me if you have a good mccodes game with active users and any sort of income. must have active users thats the main thing im after. don't contact me with BS offers like you can create me a game that will earn this or that i want a ready made game with users because myself can create good games but cba adding crimes, items and marketing it. budget will be discussed with the seller based on the quality, income & active users of their game.
  12. This is a psd only, i had posted it up before but the thread died out now on offer for $50 BIN! PM me if you need any design work :D
  13. Yeah i do not want that i want a connect which auto registers you if your loggedin to fb already then logs you in.
  14. Paying someone to create me a Facebook connect function to mccodes. It uses your facebook details to sign up then once completed it auto directs your into the game. I do not want a facebook signup i want a connect so they can just click it and automatically signs them up using facebook. $10-25 for this. PM me
×
×
  • Create New...