Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. I got bored so im editing some old modifications Here's RentASpy for v2 rentaspy.php: <?php /*-------------------------------------------------------------- -- RentASpy -- Compatible: Mono Country Version 2 -- Script Verion: 3.0 -- Made by: Zero-Affect --------------------------------------------------------------*/ include "globals.php"; // If you want it so anyone can use this modification remove the next 4 lines $_GET['ID']=abs((int) $_GET['ID']); $_GET['PAID']=abs((int) $_GET['PAID']); if(!$ir['donatordays']) { echo 'Invalid Command. Only donators can access this area. >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } $sql = sprintf('SELECT `level`, `username`, `equip_primary`, `equip_secondary`, `equip_armor`, `money`, `rating`, `bankmoney`, `crimexp`, `crystals` FROM `users` WHERE userid = %u', $_GET['ID']); $sql = $db->query($sql); $r=$db->fetch_row($sql); if($_GET['ID']==$userid) { echo 'Invalid Command. Why would you wanna spy on yourself? >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } if($_GET['ID'] && $_GET['PAID']) { $cost=$r['level']*2000; if($_GET['PAID']!=$cost) { echo 'Invalid Command. Quit trying to abuse bugs. >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } if($_GET['PAID']>$ir['money']) { echo 'Invalid Command. You dont have enough money to spy on '.$r['username'].'. >[url="index.php"]Go Home[/url]'; $h->endpage(); exit; } $rand=rand(1,15); if($rand==1) { $ql = sprintf('SELECT `username` FROM users WHERE userid = %u', $userid); $ql = $db->query($ql); $n=$db->fetch_row($ql); $query = sprintf('UPDATE `users` SET money=money-%u WHERE userid = %u', $_GET['PAID'], $userid); $db->query($query); print '[b]Your spy has been caught. Your name may have been mentioned.[/b]'; event_add($_GET['ID'],"[url='viewuser.php?u=$userid']{$n['username']}[/url] tried to rent a spy on you but failed."); } else { $query = sprintf('UPDATE `users` SET money=money-%u WHERE userid = %u', $_GET['PAID'], $userid); $db->query($query); $sta = sprintf('SELECT `strength`, `agility`, `guard`, `labour`, `IQ` FROM userstats WHERE userid = %u', $_GET['ID']); $sta = $db->query($sta); $sats=$db->fetch_row($sta); $we = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $r['equip_primary']); $we = $db->query($we); $pri=$db->fetch_row($we); $we1 = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $r['equip_secondary']); $we1 = $db->query($we1); $sey=$db->fetch_row($we1); $we2 = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $r['equip_armor']); $we2 = $db->query($we2); $arm=$db->fetch_row($we2); if(!$pri['itmname']) { $prim="None"; } else { $prim="{$pri['itmname']}"; } if(!$sey['itmname']) { $secon="None"; } else { $secon="{$sey['itmname']}"; } if(!$arm['itmname']) { $arm="None"; } else { $arm="{$arm['itmname']}"; } if($sats['strength'] > $ir['strength']) { $stren="<font color=red>Weaker</font>"; } elseif($sats['strength'] == $ir['strength']) { $stren="<font color=blue>Equal</font>"; } else { $stren="<font color=green>Stronger</font>"; } if($sats['agility'] > $ir['agility']) { $agility="<font color=red>Weaker</font>"; } elseif($sats['agility'] == $ir['agility']) { $agility="<font color=blue>Equal</font>"; } else { $agility="<font color=green>Stronger</font>"; } if($sats['guard'] > $ir['guard']) { $guard="<font color=red>Weaker</font>"; } elseif($sats['guard'] == $ir['guard']) { $guard="<font color=blue>Equal</font>"; } else { $guard="<font color=green>Stronger</font>"; } if($sats['labour'] > $ir['labour']) { $labour="<font color=red>Weaker</font>"; } elseif($sats['labour'] == $ir['labour']) { $labour="<font color=blue>Equal</font>"; } else { $labour="<font color=green>Stronger</font>"; } if($sats['IQ'] > $ir['IQ']) { $IQ="<font color=red>Weaker</font>"; } else if($sats['IQ'] == $ir['IQ']) { $IQ="<font color=blue>Equal</font>"; } else { $IQ="<font color=green>Stronger</font>"; } $money=number_format($r['money']); $bmoney=number_format($r['bankmoney']); echo "<table width='75%' border='1' class='h'> <tr><th>Primary</th><th>Secondary</th><th>Armor</th></tr> <tr><td>$prim</td><td>$secon</td><td>$arm</td></tr> </table> <table width='75%' border='1' class='h'> <tr><th>Stats</th> <th>Your Stats</th><th>Compare</th></tr> <tr><td>Strength: {$sats['strength']}</td><td>Strength: {$ir['strength']}</td><td><center>[b]$stren[/b]</center></td></tr> <tr><td>Agility: {$sats['agility']}</td><td>Agility: {$ir['agility']}</td><td><center>[b]$agility[/b]</center></td></tr> <tr><td>Guard: {$sats['guard']}</td><td>Guard: {$ir['guard']}</td><td><center>[b]$guard[/b]</center></td></tr> <tr><td>Labour: {$sats['labour']}</td><td>Labour: {$ir['labour']}</td><td><center>[b]$labour[/b]</center></td></tr> <tr><td>IQ: {$sats['IQ']}</td><td>IQ: {$sats['IQ']}</td><td><center>[b]$IQ[/b]</center></td></tr></table> <table width='75%' border='1'> <tr><td><center>[url='attack.php?ID={$_GET['][b]Attack?[/b][/url]</center></td></tr> </table> <table width='45%' border='1' class='h'> <tr><th>$$$</th><th>Misc</th></tr> <tr><td>Money: \${$money}</td><td>Rating: {$r['rating']}</td></tr> <tr><td>Bank Money: \${$bmoney}</td><td>Crime exp: {$r['crimexp']}</td></tr> <tr><td>Crystals {$r['crystals']}</td><td>Level: {$r['level']}</td></tr> </table> <table width='75%' border='1' class='h'> <tr><th>Name</th> <th>Ammount</th></tr>"; $z = sprintf('SELECT `inv_itemid`, `inv_qty` FROM inventory WHERE inv_userid = %u ORDER BY inv_itemid DESC', $_GET['ID']); $z = $db->query($z); while($e=$db->fetch_row($z)) { $t = sprintf('SELECT `itmname` FROM items WHERE itmid = %u', $e['inv_itemid']); $t = $db->query($t); $itm=$db->fetch_row($t); print "<tr><td>[b]{$itm['itmname']}[/b]</td><td>[b]{$e['inv_qty']}[/b]</td></tr>"; } print "</table> >[url='viewuser.php?u={$_GET[']Back To Profile.[/url]</br> Created By Zero-Affect"; } } else if($_GET['ID']) { $cost=$r['level']*2000; print "[b]You are hiring a spy on {$r['username']}[/b] It will cost you $$cost for the spys expenses. But be warned spying is not always 100% successful. <form action='rentaspy.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <input type='submit' value='Hire Spy'/></form>"; } $h->endpage(); ?>   Open viewuser.php Find: } if($ir['donatordays'] > 0) { print " Add below: [[url='rentaspy.php?ID={$r[']Rent A Spy[/url]]   Leave Feedback (EDITED, TESTED AND WORKS)
  2. Re: HOF in login page that's exactly why i said bad idea lol
  3. Re: [v1] Rich Uncle the [me=zero]sighs[/me] thing?
  4. Re: [v1] Rich Uncle depends lol who uses v1 lol
  5. Re: My First MOD EVER!!! Need help..think there is big time mistakes... No problem, good luck
  6. Re: Free 2 - Gym yeah i was sure it was for viewsource or people who get the mods to see who made it also lol
  7. Re: Free 2 - Gym i thought it was just to add her name lol
  8. Re: [v2]Casino[v2] nice mod the comments made me laugh has much has that video lol
  9. Re: Free 2 - Gym why even add it...
  10. Re: Brave refill it was 6am lol
  11. Re: Brave refill   he means crystaltemple.php find: [url='crystaltemple.php?spend=refill']Energy Refill - {$set['ct_refillprice']} Crystals[/url] add below: [url='crystaltemple.php?spend=brefill']Brave Refill - 50 Crystals[/url] find: if($_GET['spend'] == 'refill') { if($ir['crystals'] <$set['ct_refillprice']) { print "You don't have enough crystals!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } else { $db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']} crystals to refill your energy bar."; } } add below: else if($_GET['spend'] == 'brefill') { if($ir['crystals'] < 50) { print "You don't have enough crystals!"; } else if($ir['brave'] == $ir['maxbrave']) { print "You already have full brave."; } else { $sql=sprintf('UPDATE `users` SET brave=maxbrave, crystals=crystals-50 WHERE userid = %u', $userid); $db->query print "You have paid 50 crystals to refill your brave bar."; } }   thats a example it may not work :-P
  12. Re: Header help could be ur session maybe
  13. Re: donator.php ah right lol thanks
  14. Re: My First MOD EVER!!! Need help..think there is big time mistakes... i thought that preset digits didn't need %u and yeah it was about 4am when i posted lol
  15. Re: Simple Trades [V2] blocking multi xfers is a bad idea altogether # They will go off and think of more inventive ways to get multis IE: Proxies Web Proxies etc...
  16. Re: My First MOD EVER!!! Need help..think there is big time mistakes... or you could use $sql=sprintf('UPDATE `users` SET money=money+$money_give WHERE userid = %u', $userid); $db->query($sql);   but not at your level research sprintf it may come in handy when securing scripts
  17. Re: Battletent Fix so the way i do it is fine then
  18. Re: [FREE] [V2] Ian's Investments naw i protest against using it but i bet eventually i will like when i said i'd never use ' lol i must admit it is easier to read but still and i asked him because he looks like a good coder that has potential
  19. Re: Battletent Fix sorry ben didn't understand that are you saying $sql = sprintf('UPDATE table SET blah=blah+1 WHERE meh = %d', $meh); $db->query($sql); or $sql = sprintf('UPDATE table SET blah=blah+%u WHERE meh = %u', 1, $meh); $db->query($sql); is better ?
  20. Re: Battletent Fix * is bad i never use that anymore
  21. Re: Another New Mailbox   All this fiction is interesting but where is the facts? you cannot slander people without hard facts to back it up
  22. Re: Bar23 [V2] i gathered looking at your past posts i was just trying to help you understand it since Nyna and most of the coders on here use it including karlos which got it wrong but still he tried good luck to both of you
  23. Re: Battletent Fix actually ill show you some of my new improved coding lol $sql = sprintf('UPDATE table SET blah=blah+1 WHERE meh = %d', $meh); $db->query($sql); OR $sql = sprintf('SELECT `blah` FROM `table` WHERE meh = %d', $meh); $r=($db->fetch_row($db->query($sql));   compare that to yours:   $v = mysql_query("SELECT * FROM users WHERE userid='{$id}'") or die(mysql_error()); $p = mysql_fetch_assoc($v);   (that is taken from breakin) your modification
  24. Re: Bar23 [V2] well quote from php.net: notice the % before the letter... you'll get it eventually mate
  25. Re: [FREE] [V2] Ian's Investments again another nice modification mate Keep it up maybe contact me sometime and we can do one together and make some cash
×
×
  • Create New...