Jump to content
MakeWebGames

WiCkeD

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

WiCkeD's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: !!2 Free Updates!! Yeah i made that mod that decepti0n said, Willing to trade :)
  2. Re: MC2 Codes - Are they worth it? yeah also $_SESSION cannot be used, It selects from globals say you used $userid=$_SESSION['userid']; wouldnt work. :) so it all goes by $ir; A favourite thing i use is $_SESSION['loggedin_time']; its a feature where it tells you when you logged in, :) just what i use :>
  3. Re: Steal Crystals when you Mug someone... Heres my make_bigint function which was given to me from a friend :) works on all except v2 :-) --If you use this please give me +1 force please! open global_func.php and find where it says function get_rank($stat, $mykey) { global $ir,$userid,$c; $q=mysql_query("SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.$mykey > $stat AND us.userid != $userid AND u.user_level != 0", $c) ; return mysql_result($q,0,0)+1; }   add after function make_bigint($str, $positive=1) { $str = (string) $str; $ret = ""; for($i=0;$i<strlen($str);$i++) { if((ord($str[$i]) > 47 && ord($str[$i]) < 58) or ($str[$i]=="-" && $positive == 0)) { $ret.=$str[$i]; } } if(strlen($ret) == 0) { return "0"; } return $ret; }   :) or you can do with trans_fusions if(function_exists('make_bigint')) { $stole=make_bigint(rand($r['money']/500,$r['money']/20)); } else { $stole=(int)(rand($r['money']/500,$r['money']/20)); } print "You beat {$r['username']} and stole \$$stole"; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/4,$qe/2); $expperc=(int) ($expgain/$ir['exp_needed']*100); print " and gained $expperc% EXP!"; mysql_query("UPDATE users SET exp=exp+$expgain,money=money+$stole WHERE userid=$userid",$c); mysql_query("UPDATE users SET hp=1,money=money-$stole WHERE userid={$r['userid']}",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and stole $stole.",$c); $atklog=mysql_escape_string($_SESSION['attacklog']); mysql_query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),$stole,'$atklog');",$c); $_SESSION['attackwon']=0;   :-) Yet again..if you use any of my posted stuff please be generous to give me +1 force :-) or not, It's just to see who i help :tongue:
  4. Re: FREE UPDATED MCV1 NUCLEAR BOMB Thanks
  5. Re: FREE UPDATED MCV1 NUCLEAR BOMB   True but its better than dabomstew's =P. I just thought i'd share it with everyone.
  6. Re: Donator Any works, Simple really, PHP is a very techniqued format and very good :) if($ir['donatordays'] =< 0) { } OR if(!$ir['donatordays']) { } because ! stands for if its 0 (zero) on a INT format on the database, otherwise if its VARCHAR it'll choose ! if its blank. You need to know this, We wont be here forever! Well i wont anyway :-)
  7. Re: ***!!FULLY WORKING LEVEL UPGRADE MOD HERE FREE!!*** One problem Arson, In the global_func.php thing you told us to replace? $ir['upgrade'] $ir['stars_level_up']; them things? Is that a database add-on or something?
  8. Re: FREE UPDATED MCV1 NUCLEAR BOMB I don't know how LITE works? I'm sure you could transfer it, It should be easy!
  9. As the not-as-good version of Nuclear Bomb available in MCcodes ver1.1 I've updated it by lots :) Here you go... Replace nuclearbomb.php with: <?php /*----------------------------------------------------- -- Updated Nuclear Bomb -- A product of PGN-entertainment -- Modified by WiCKeD -- NUCLEARBOMB.php -----------------------------------------------------*/ //-- Pro Gamers Networks, US. session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($ir['nbombs'] == 0 && $ir['userid'] != 1) { die("You have no Nuclear Bombs"); } if(isset($_GET['LaunchBomb'])) { print "You have launched the nuclear bomb. "; $q=mysql_query("SELECT * FROM users WHERE user_level=1 ORDER BY userid ASC",$c); $moneytaken=0; $crystaltaken=0; $banktaken=0; while($r=mysql_fetch_array($q)) { $bombrand=(int) rand(950,35000); if($_POST['id1']) { if($r['userid'] == $_POST['id1']) { mysql_query("UPDATE `users` SET `hospital` = `hospital` + '{$bombrand}', `hospreason` = 'Target Bombed by $ir[username] '",$c); } } if($_POST['id2']) { if($r['userid'] == $_POST['id2']) { mysql_query("UPDATE `users` SET `hospital` = `hospital` + '{$bombrand}', `hospreason` = '2nd Target Bombed by $ir[username] '",$c); } } if($_POST['id3']) { if($r['userid'] == $_POST['id3']) { mysql_query("UPDATE `users` SET `hospital` = `hospital` + '{$bombrand}', `hospreason` = '3rd Target Bombed by $ir[username] '",$c); } } if($_POST['id4']) { if($r['userid'] == $_POST['id4']) { mysql_query("UPDATE `users` SET `hospital` = `hospital` + '{$bombrand}', `hospreason` = '4th Target Bombed by $ir[username] '",$c); } } if($_POST['id5']) { if($r['userid'] == $_POST['id5']) { mysql_query("UPDATE `users` SET `hospital` = `hospital` + '{$bombrand}', `hospreason` = '5th Target Bombed by $ir[username] '",$c); } } event_add($r['userid'],"The city has been bombed by a unknown person!",$c); $rand=(rand(1,9)); $expa+=rand(1.00,3.00); $rad=(rand(10,1000)); $moneytake=rand($r['money']/50,$r['money']/10); $banktake=rand($r['bankmoney']/50,$r['bankmoney']/10); $crysttake=rand($r['crystals']/50,$r['crystals']/10); $moneytaken=$moneytaken+$moneytake; $crystaltaken=$crystaltaken+$crysttake; $banktaken=$banktaken+$banktake; mysql_query("UPDATE users SET hospital=hospital+$rad, hospreason='Bombed By a Nuclear Bomb by {$ir['username']}', money=money-$moneytake, bankmoney=bankmoney-$banktake, crystals=crystals-$crysttake WHERE userid={$r['userid']}",$c); } mysql_query("UPDATE `users` SET `money` = `money` + '{$moneytaken}', `bankmoney` = `bankmoney` + '{$banktaken}', `crystals` = `crystals` + '{$crystaltaken}' WHERE `userid` = '{$userid}'",$c); $expgainedq=mysql_query("SELECT * FROM `users`",$c); $expgained=mysql_num_rows($expgainedq)*5; mysql_query("UPDATE users SET exp=exp+$expgained WHERE userid=$userid",$c); print "Nuclear Bomb is successful! You have gained ".number_format($expgained)."% Exp!. You have gained \$".number_format($moneygained)." Money You have gained \$".number_format($bankgained)." Bank Money You have gained ".number_format($crystalgained)." Crystals "; mysql_query("UPDATE `users` SET `nbombs` = `nbombs` - '1' WHERE `userid` = '{$userid}'",$c); } else { if(!$_POST['method']) { print "You have [b]$ir[nbombs][/b] nuclear bombs! Warning Users: This bomb will bomb everyone except staff, and we are not responsible if you misuse this bomb. If you get hacked and this bomb is used, not our fault. What do you want to do? -Method One will let you put everyone in hospital for 10-200 minutes, and you choose 5 special ID's to choose to bomb, They get bombed and put in for upto 35,000 minutes (10 days!) -Method Two puts everyone in hospital for upto 1000 minutes, and you don't choose anyone special to bomb. "; } else if($_POST['method'] == "fivepeople") { print "Which Five People do you want to launch the bomb at? User One (ID) : User Two (ID) : User Three (ID) : User Four (ID) : User Five (ID) : "; } } $h->endpage(); ?>   now open admin.php and find case 'newuserform': new_user_form(); break;   add after case 'givenuclear': give_nuclear(); break;   now find a bit lower in admin.php where it says [url='admin.php?action=giveitem']Give Item To User[/url]   add after [url='admin.php?action=givenuclear']Credit Nuclear Bomb[/url]   now find where it says later in admin.php function give_item_submit() { global $ir,$c; mysql_query("INSERT INTO inventory VALUES ('', {$_POST['item']}, {$_POST['user']}, {$_POST['qty']}, 0)",$c) or die(mysql_error()); print "You gave {$_POST['qty']} of item ID {$_POST['item']} to user ID {$_POST['user']}"; }   add after function give_nuclear() { global $ir,$c,$h,$userid; if($ir['userid'] != 1) { print "You cannot give out nuclear bombs!"; $h->endpage(); exit(); } if($_POST['user'] and $_POST['nuclears']) { mysql_query("UPDATE `users` SET `nbombs` = `nbombs` + '$_POST[nuclears]' WHERE `userid` = '$_POST[user]'",$c); $uq=mysql_query("SELECT username FROM users WHERE userid='$_POST[user]'",$c); print "You gave [b]".mysql_result($uq,0,0)."[/b] $_POST[nuclears] nuclear bombs! [url='admin.php']Back[/url] "; } else { print "Credit Nuclear Bomb User: ".user_dropdown($c,'user')." Nuclear Bombs : "; } }   now open header.php and find where it says mysql_query("UPDATE ads SET adVIEWS=adVIEWS+1 WHERE adID={$r['adID']}",$c); }   add after if($ir['nbombs'] > 0) { print "You have {$ir['nbombs']} nuclear bombs! [url='nuclearbomb.php']Use The Nuclear Bomb[/url] "; }   sql query ALTER TABLE `users` ADD `nbombs` INT( 11 ) NOT NULL ;   Now Your Done I'm currently using it so it should definately work :) xD Please if you use it can you give me +1 karma please :)
×
×
  • Create New...