Jump to content
MakeWebGames

seanybob

Members
  • Posts

    666
  • Joined

  • Last visited

Everything posted by seanybob

  1. quantify items automatically lol, ok i figured there was something wrong with it
  2. Sell all button oooo good idea, and thanks for that
  3. this mod just adds a sell all button to the itemsell.php itemsell.php find print "[b]Enter how many {$r['itmname']} you want to sell. You have {$r['inv_qty']} to sell.[/b] Quantity:   after it add  
  4. basically i took preport and converted it... here ya go... mysql queries CREATE TABLE `bugports` ( `brID` int(11) NOT NULL auto_increment, `brREPORTER` int(11) NOT NULL default '0', `brTEXT` longtext NOT NULL, PRIMARY KEY (`brID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;   bugport.php <?php 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); get_diffvars(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['credits'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($_POST['report']) { event_add(1,"New Bug Report",$c); mysql_query("INSERT INTO bugports VALUES('',$userid,'{$_POST['report']}')", $c) or die("Your report could not be processed, make sure you have filled out the form entirely."); print "Report processed!"; } else { print "Bug Report Know of a bug? Don't exploit it! Report it here, you may be rewarded :) What the bug is: {$_GET['report']} "; } $h->endpage(); ?>   open up admin.php find case 'reportsview': reports_view(); break; case 'repclear': report_clear(); break;   after it add   case 'bugreportsview': bugreports_view(); break; case 'bugrepclear': bugreport_clear(); break;   find [[url='admin.php?action=reportsview']Player Reports[/url]]   after it add [[url='admin.php?action=bugreportsview']Bug Reports[/url]]   find function report_clear() { global $ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM preports WHERE prID={$_GET['ID']}",$c); print "Report cleared and deleted! [url='admin.php?action=reportsview']> Back[/url]"; }   after it add function bugreports_view() { global $ir,$c,$h,$userid; print "Bug Reports </pre> <table width="80%">Reporter What the bug is [url='viewuser.php?u={$r[']{$r['reporter']}[/url] [{$r['brREPORTER']}] {$r['brTEXT']} [url='admin.php?action=bugrepclear&ID={$r[']Clear[/url] </table>";<br>}<br>function bugreport_clear()<br>{<br>global $ir,$c,$h,$userid;<br>$_GET['ID'] = abs((int) $_GET['ID']);<br>mysql_query("DELETE FROM bugports WHERE brID={$_GET['ID']}",$c);<br>print "Report cleared and deleted!<br><br>[url='admin.php?action=bugreportsview']> Back[/url]"
  5. heres a simple script that quantifies a users items everytime they look at their inventory, so for all intents and purposes, there items are always quantified :) inventory.php find $h->menuarea(); after it add for($il=0;$il<74;$il++) { $item=mysql_query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid=$il AND inv_qty > 0",$c); $gotitem = mysql_num_rows($item); if($gotitem == 0) { $h=2; } else { $z=0; $id = $il; while ($i=mysql_fetch_array($item)) { $z=$z+$i['inv_qty']; } mysql_query("DELETE FROM inventory WHERE inv_userid=$userid AND inv_itemid=$id",$c); mysql_query("INSERT INTO inventory VALUES ('', '$id', '$userid', '$z')",$c); } } change the 74 to whatever the highest itemID you have is. im sure that somebody could make this script more efficient, but here it is lol the $h = 2 does absolutely nothing, i just didnt know what to put there, or if i could leave it blank :)
  6. open up events.php find if($_GET['delete']) { mysql_query("DELETE FROM events WHERE evID={$_GET['delete']} AND evUSER=$userid",$c); print "[b]Event Deleted[/b] "; } after it add $_GET['deleteall'] = abs((int) $_GET['deleteall']); if($_GET['deleteall']) { mysql_query("DELETE FROM events WHERE evUSER=$userid",$c); print "[b]ALL Events Deleted[/b] "; }   find print " [b]New![/b]"; } print "{$r['evTEXT']}[url='events.php?delete={$r[']Delete[/url]"; } print "";   after it add   print" Click [url='events.php?deleteall=1']Here [/url]to Delete ALL Events ";   really simple mod i know, but it can help clear up a database when a user deletes their events
  7. [Lite] Jail lol zahid its very basic anyways, but its good for lite version and gives all those who dont have jails yet a simple one now if u want a real jail...check out my mods lolzers :D
  8. Profile Signatures ok here is a version thats been tested without errors and appears to work... (credit goes to on_fire and dabs, i just meshed their two codes together) tested only for PAid version viewuser.php find if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]]<td/></td>"; } print "</td></tr> "; print "</td></tr></table>"; } $h->endpage(); } } ?>   replace with if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]]<td/></td>"; } print "</td></tr> "; print " <table width=100%><tr style='background:gray'><th>Profile Signature</th> <tr><td rowspan='1'>"; if($r['signature']) { print "{$r['signature']}"; } else { print "[b]This User has no Profile Signature[/b]"; } print "</td></tr></table>"; } $h->endpage(); } } ?>   run this sql ALTER users ADD `signature` text NOT NULL,   ---------------------------- preferences.php find [url='preferences.php?action=namechange']Name Change[/url]   after it, add [url='preferences.php?action=signature']Profile Signature[/url]   find: case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break;   after that add case 'signature2': do_signature_change(); break; case 'signature': signature_change(); break;   find function do_name_change() { global $ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name. [url='preferences.php?action=namechange']> Back[/url]"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); mysql_query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid",$c); print "Username changed!"; } }   after that, add function signature_change() { global $ir,$c,$userid,$h; print "<h3>Profile Signature Change</h3> <form action='preferences.php?action=signature2' method='post'> New Profile Signature: <textarea rows=7 cols=40 name='newsignature'>{$ir['signature']}</textarea> <input type='submit' value='Change Profile Signature' /></form> [b]Current Profile Signature :[/b]{$r['signature']}"; } function do_signature_change() { global $ir,$c,$userid,$h; if($_POST['newsignature'] == "") { print "You did not enter a new signature. > [url='preferences.php?action=signature']Back[/url]"; } else { mysql_query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c); print "Profile Signature changed!"; } }   if u get an error lemme know, i may have forgotten to add everything here, but i can fix it easily :)
  9. Steal Crystals when you Mug someone... try this if u dont have a makebigint method... should work as long as u arent stealing 2 billion crystals :P   $stole=(int) (rand($r['money']/500,$r['money']/20)); $stolec=(int) (rand($r['crystals']/500,$r['crystals']/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 ", $stolec crystal(s), and gained $expperc% EXP!"; mysql_query("UPDATE users SET exp=exp+$expgain,money=money+$stole,crystals=crystals+$stolec WHERE userid=$userid",$c); mysql_query("UPDATE users SET hp=1,money=money-$stole WHERE userid={$r['userid']}",$c); mysql_query("UPDATE users SET crystals=crystals-$stolec WHERE userid={$r['userid']}",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and stole $stole, and $stolec crystal(s).",$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;
  10. [Lite] Hack Users PC i like this... :) only i get this error while attempting to hack Warning: in_array(): Wrong datatype for second argument in /home/seanybob/public_html/game/hackpc.php on line 50 Unfortunately, players's firewall was too good for you to hack past. is that my error or did anyone else get that?
×
×
  • Create New...