Jump to content
MakeWebGames

iR00T

Members
  • Posts

    375
  • Joined

  • Last visited

    Never

Everything posted by iR00T

  1. Re: Multiple Item Use Mod {v1}   why should you have restricts if someone is stupid enough to use a item they dont need its there fault
  2. can someone help me with this i would greatly appreciate this thanks add me [email protected] or simply mail me on here and well talk about it
  3. ok this mod is v1 ok this is called itemuse.php simply replace ur old item use with this   <?php /*----------------------------------------------------- -- i edted this mod was not copyrighted -- --mod is not copyrighted-- -- Thanks! -----------------------------------------------------*/ 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(); $_GET['ID'] = abs((int) $_GET['ID']); //Food if(!$_GET['ID']) { print "Invalid use of file"; } else { $i=mysql_query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid",$c); if(mysql_num_rows($i) == 0) { print "Invalid item ID"; } else { $r=mysql_fetch_array($i); if($r['inv_qty'] == 1) { if($r['itmtypename'] == 'Food') { $f=mysql_query("SELECT * FROM food WHERE item_id={$r['itmid']}",$c); $fr=mysql_fetch_array($f); mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); mysql_query("UPDATE users SET energy=energy+{$fr['energy']} WHERE userid=$userid"); mysql_query("UPDATE users SET energy=maxenergy WHERE energy > maxenergy"); print "You cram a {$r['itmname']} into your mouth. You feel a bit of energy coming back to you."; } else if($r['itmtypename'] == 'Medical') { $f=mysql_query("SELECT * FROM medical WHERE item_id={$r['itmid']}",$c); $fr=mysql_fetch_array($f); mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); mysql_query("UPDATE users SET hp=hp+{$fr['health']} WHERE userid=$userid"); mysql_query("UPDATE users SET hp=maxhp WHERE hp > maxhp"); if($r['itmname'] == 'Full Restore') { mysql_query("UPDATE users SET energy=maxenergy,will=maxwill,brave=maxbrave WHERE userid=$userid",$c); } if($r['itmname'] == 'Will Potion') { mysql_query("UPDATE users SET will=maxwill WHERE userid=$userid",$c); } print "You spray a {$r['itmname']} into your mouth. You feel a bit of health coming back to you."; } else { print "You cannot use this item."; } } elseif($_POST['use'] > 0 and ((int) $_POST['use'] and $r['inv_qty'] > 1) and $_POST['use'] < $r['inv_qty']) { $value=$_POST['use']; $total=$_POST['use']; while($value > 0) { if($r['itmtypename'] == 'Food') { $f=mysql_query("SELECT * FROM food WHERE item_id={$r['itmid']}",$c); $fr=mysql_fetch_array($f); mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); mysql_query("UPDATE users SET energy=energy+{$fr['energy']} WHERE userid=$userid"); mysql_query("UPDATE users SET energy=maxenergy WHERE energy > maxenergy"); } else if($r['itmtypename'] == 'Medical') { $f=mysql_query("SELECT * FROM medical WHERE item_id={$r['itmid']}",$c); $fr=mysql_fetch_array($f); mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); mysql_query("UPDATE users SET hp=hp+{$fr['health']} WHERE userid=$userid"); mysql_query("UPDATE users SET hp=maxhp WHERE hp > maxhp"); if($r['itmname'] == 'Full Restore') { mysql_query("UPDATE users SET energy=maxenergy,will=maxwill,brave=maxbrave WHERE userid=$userid",$c); } if($r['itmname'] == 'Will Potion') { mysql_query("UPDATE users SET will=maxwill WHERE userid=$userid",$c); } } else { print "You cannot use this item."; } $value--; } print "You successfully used {$total}x {$r['itmname']} [url='inventory.php']Back[/url] "; } else { if($_POST and $_POST['use'] < $r['inv_qty']) { print "<font color=red>You don't have that many items to use</font> "; } print "You are currently using [b]".$r['itmname']."[/b] Please enter how many of this item you would like to use You currently have [b]".$r['inv_qty']."[/b] you can use <form action='itemuse.php?ID={$_GET['ID']}' method='post'> Quantity: <input type='text' name='use' value=''> <input type='submit' value='Use Item'></form>"; } } } $h->endpage(); ?>
  4. can some one pm me that they have this game engine and will give it to me cause i would really appreciate it
  5. Re: BBCode_Engine on my game i added another file called bbcode.php and it tells you all about bbcode there is even a few that i found that wasnet in there from other sites and added them into mines
  6. Re: Staff Password without sql's. (ANY VERSION) yes possibly so why dont you post it........? :-D
  7. Re: Staff Password without sql's. (ANY VERSION)     THIS DOSENT WORK OR I DID THE ADD THIS wrong cause idk can someone tell me wher o add at in smenu.php??????
  8. Re: BBCode_Engine yea bout the whole google.com u could put ur site name tehre
  9. ok look i converted like said require glob func to include globals.php"; then the mysql_ to the $db-> anbd the fetch_array to fetch_row and when im done i get this and this is on like 10 Parse error: syntax error, unexpected T_IF in /home/gangster/public_html/polls_view.php on line 10 if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } wtf do i do something in header or something[/color]
  10. Re: BBCode_Engine yea magic i edited lmao i made it were u can have pics on ur pro wid [ IMG] tags sorry for space didnt no if it would do a image lmao but yea when the site gets like torncity secuirty lamo ill add music players lmao
  11. Re: wtf tables are f d up ha wow im like the lowest in here
  12. Re: BBCode_Engine i have lots of them im gonna post i have edited that one of my game completly new
  13. ok ive worled on this for days and dont kno wuts up   QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( 'ghghgh', 'ghghgh', md5('ghgh'), 1, 100, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '[email protected]', -1, '65.190.173.236', '65.190.173.236',0)   thatis wut happens when someone trys to register ffor my game wtf
  14. Re: Tutorial: v1 - v2 Conversion   no i just felt like spicing things up a bit XD
  15. Re: Tutorial: v1 - v2 Conversion ohh..damn ha send me his game links i gotta see how n00b they are lmaoXD
  16. Re: Tutorial: v1 - v2 Conversion   umm..magic i do know how to do href links lol that was like a week ago that i didnt no
  17. open viewuser.php and find <? include globals.php"; and replace with <?php //Please Keep This Notice //Coded By: GoldenZero //Website:GoldenZero.net //E-mail: joshisthebest1ca[AT]msn[DOT]com class bbcode { var $engine=""; function bbcode() { require "bbcode_engine.php"; $this->engine= new bbcode_engine; $this->engine->cust_tag("/</","<"); $this->engine->cust_tag("/>/",">"); //Since \n and screw up preg, convert them out. $this->engine->cust_tag("/\n/","&nbrlb;"); $this->engine->simple_bbcode_tag("b"); $this->engine->simple_bbcode_tag("i"); $this->engine->simple_bbcode_tag("u"); $this->engine->simple_bbcode_tag("s"); $this->engine->simple_bbcode_tag("sub"); $this->engine->simple_bbcode_tag("sup"); $this->engine->simple_bbcode_tag("big"); $this->engine->simple_bbcode_tag("small"); $this->engine->adv_bbcode_tag("list","ul"); $this->engine->adv_bbcode_tag("olist","ol"); $this->engine->adv_bbcode_tag("item","li"); $this->engine->adv_option_tag("font","font","family"); $this->engine->adv_option_tag("size","font","size"); $this->engine->adv_option_tag("url","a","href"); $this->engine->adv_option_tag("color","font","color"); $this->engine->adv_option_tag("style","span","style"); $this->engine->simp_option_notext("img","src"); $this->engine->simp_bbcode_att("img","src"); $this->engine->cust_tag("/\(c\)/","©"); $this->engine->cust_tag("/\(tm\)/",""); $this->engine->cust_tag("/\(r\)/","®"); $this->engine->adv_option_tag_em("email","a","href"); $this->engine->adv_bbcode_att_em("email","a","href"); $this->engine->cust_tag("/\[left\](.+?)\[\/left\]/","<div align='left'>\\1</div>"); $this->engine->cust_tag("/\[center\](.+?)\[\/center\]/","<div align='center'>\\1</div>"); $this->engine->cust_tag("/\[right\](.+?)\[\/right\]/","<div align='right'>\\1</div>"); $this->engine->cust_tag("/\[quote="(.+?)\"](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE(\\1)</div><div class='quotemain'>\\2</div>"); $this->engine->cust_tag("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>QUOTE</div><div class='quotemain'>\\1</div>"); $this->engine->cust_tag("/\[code\](.+?)\[\/code\]/","<div class='codetop'>CODE</div><div class='codemain'><code>\\1</code></div>"); $this->engine->cust_tag("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>\\1</div>"); $this->engine->cust_tag("/&nbrlb;/"," \n"); } function bbcode_parse($html) { return $this->engine->parse_bbcode($html); } } include "globals.php"; $bbc = new bbcode;   then add this to were you want your signature if($r['sig']) { $r['sig']=$bbc->bbcode_parse($r['sig']); print "<tr><td colspan=5>{$r['sig']}</td>"; } else { print "<tr><td colspan=5><center>This user has no Signature!</center></td>"; }   open prefrences.php and find case 'sexchange2': do_sex_change(); break;   and after that this   case 'sigchange2': do_sig_change(); break; case 'sigchange': sig_change(); break;   at the end of the page find $h->endpage(); ?> before that add this   function sig_change() { global $ir,$c,$userid,$h; print "<h3>Signature Change</h3> <form action='preferences.php?action=sigchange2' method='post'> Signature (you may use BBcode): <textarea class=textbox rows=10 cols=50 name='sig'>{$ir['sig']}</textarea> <input class=textbox type='submit' value='Change Signature ' /></form>"; } function do_sig_change() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET sig='{$_POST['sig']}' WHERE userid=$userid"); print "Signature changed!"; }   run this sql query   ALTER TABLE `users` ADD `sig` text NOT NULL;     hope you like this i didnt make it but i am gonna edit this soon to my edited version imma have where you can have pictures and profile music players like projectplaylist up there with your own custom skin and stuff.... :mrgreen:
  18. Re: News Paper Ads no sql could someone put the npaper table up here i dont have it :( plz
  19. ok i add'd it right upload warnings.php did that put it in users this $w=$db->query("SELECT * FROM warnings WHERE user={$r['userid']}");print "<font color=red>Warnings: ".$db->num_rows($w)." </font>";if($ir['user_level'] > 1){print "|| [<a href=warnings.php?action=index&user={$r['userid']}>Manage</a>]";}   with days old above it still gave me a error on the viewusers when i click on my game wtf could someone give me a working warnings mod???? pm me plz
  20. This Was When I First Started Haveing A Site And Know I Know About The Crons So It's GONE!
  21. iR00T

    HELP

    ok i had a dude that help'd me make a v1 site well he did something to mess it up and he left me well check this out whe i login i get this   can u tell me wut he did Warning: include(config.php) [function.include]: failed to open stream: No such file or directory in /home/chris420/public_html/authenticate.php on line 16 Warning: include(config.php) [function.include]: failed to open stream: No such file or directory in /home/chris420/public_html/authenticate.php on line 16 Warning: include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:/software/php/lib/php') in /home/chris420/public_html/authenticate.php on line 16 Warning: require(class/class_db_.php) [function.require]: failed to open stream: No such file or directory in /home/chris420/public_html/authenticate.php on line 19 Warning: require(class/class_db_.php) [function.require]: failed to open stream: No such file or directory in /home/chris420/public_html/authenticate.php on line 19 Fatal error: require() [function.require]: Failed opening required 'class/class_db_.php' (include_path='.:/software/php/lib/php') in /home/chris420/public_html/authenticate.php on line 19   and can u convert my game to v2 please if you do i will make u co-owner and admin plz help guys
×
×
  • Create New...