Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Making support for special characters? huh? lol
  2. Re: My Register and Login Page usually it has to be in PHP tags to highlight.... I would think you know stuff like that if you are wanting to charge peopel for help...and didnt i see you post saying you would make an ENTIRE game engine for less than 1500.....
  3. Re: [mccode v2] View Donators if they are that scared of that, use a timestamp() and make it where they ahve to be signed up for X amount of days before they can view the page..........
  4. Re: [mccode v2] Index.php Update lol thanks illusions
  5. Someone mailed me and asked for this so I decdied to to do it.. What this does, is makes a users only able to beat a NPC one time....So they can not level off them over and over and over.......The user can still attack the one time adn collect payment but after that they will not be allowed to atttack that NPC again. =========== Open attack.php =========== Find:   include "globals.php"; $_GET['ID'] == (int) $_GET['ID'];   Add after that:   $getbot = sprintf("SELECT * FROM challengesbeaten WHERE npcid = '%u' ", ($_GET['ID'])); $dobot = mysql_query($getbot); $bot = mysql_fetch_array($dobot); if($bot['npcid'] == $_GET['ID'] && $bot['userid'] == $ir['userid']) { print "You have already killed this NPC. [url='index.php']> Go Back[/url]"; $h->endpage(); exit; }   Thats all...Your done, if you like it dont forget to +1 8-)
  6. Re: Template for the value of "things" i think he wants to know the values to use when he makes weapons.....what to set the smallest weapon....what to set the biggest weapon.. so on and so on.
  7. Re: [mccode v2] Index.php Update cool, thanks for good feedback yall...........to fit your game...make sure you change the table class For example. Notice my <table class='table'> If you have used a different Name for table in css dont forget to change that.... But if you customized your css im sure yall knew that, lol
  8. Re: [mccode v2] Index.php Update Thanks Nyna :-D
  9. Re: Help wanted adding item no problem :-D
  10. Re: [mccode] jail/hosp shoutbox   something else has it being resized................a table...........your game layout? css file.............
  11. Re: Help wanted adding item I assume You UNCHECKED the buyable box correct? Ok, now.....If you did, you have to put in a price...0 and 0 <--Thats buy and sale.
  12. Re: [mccode v2]New Edit user this is the moderated area......lol The help sectin is the none, lol
  13. Yeah, I know this has been done. But I just changed mine up some........Thought I would share it with ya'll..... Only difference is I made tables for stuff. AND when a user updates there Notepad....It redirects them back to the index.php. So no more of that annoying Notepad Updated....and if you refresh the page with that, you know it trys to resend.....blah blah blah.. Well, no more of that annoying crap, lol... <?php $housequery=1; require "globals.php"; echo "<h2>General Info:</h2>"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); echo " <table class='table'> <tr> <th>Name</th> <th>Crystals</th> <th>Level</th> <th>Exp.</th> <th>Money</th> <th>Health</th> <th>House</th> </tr> <tr> <td><center>".$ir['username']."</center></td> <td><center>".$cm."</center></td> <td><center>".$ir['level']."</center></td> <td><center>".$exp."</center></td> <td><center>$fm</center></td> <td><center>".$ir['hp']."</center></td> <td><center>".$ir['hNAME']."</center></td> </tr> </table> <h2>Stats:</h2>"; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); echo " <table class='table'> <tr> <th>Strength</th> <th>Agility</th> <th>Guard</th> <th>Labour</th> <th>IQ</th> <th>Total Stats</th> </tr> <tr> <td><center>".$ir['strength']."</center></td> <td><center>".$ir['agility']."</center></td> <td><center>".$ir['guard']."</center></td> <td><center>".$ir['labour']."</center></td> <td><center>".$ir['IQ']."</center></td> <td><center>".$ts."</center></td> </tr> </table> <h2>Stats Rankings:</h2> <table class='table'> <tr> <th>Strength</th> <th>Agility</th> <th>Guard</th> <th>Labour</th> <th>IQ</th> <th>Total Stats</th> </tr> <tr> <td><center>Number: ".$ir['strank']."</center></td> <td><center>Number: ".$ir['agirank']."</center></td> <td><center>Number: ".$ir['guarank']."</center></td> <td><center>Number: ".$ir['labrank']."</center></td> <td><center>Number: ".$ir['IQrank']."</center></td> <td><center>Number: $tsrank</center></td> </tr> </table> "; if(isset($_POST['pn_update'])) { $update = sprintf("UPDATE users SET user_notepad = '%s' WHERE userid = '%u' ", ($_POST['pn_update']), ($ir['userid'])); mysql_query($update); $ir['user_notepad']=stripslashes($_POST['pn_update']); header('Location: index.php'); } echo " <hr> Your Personal Notepad: <form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /> </form>"; $h->endpage(); ?> Enjoy....+1 if ya like, lol
  14. Re: [mccode v2] cMarket Total Limiter yup thats right, cant let it be seen......if its seen it can be copied(obviously. lol) or cracked
  15. Re: [mccode v2] Owner Panel what??? the stock v2 is done by differnet files....do you have any idea what your talking about? An Owner panel would be slower....cuase ALL funcitns are put into one page..like admin.php on Lite or V1......log slow page.... What iwas talkign about is 1000 times better....
  16. Re: [MOD] V2 Fight the good Fight   stock attck is done in sessions......that would (Unless im mistaken) be impossible, without rewriting it withough using sessions
  17. Re: register help chagne the default last active table...................
  18. Re: Internet Explorer Website standards http://www.w3.org/QA/2002/04/Web-Quality
  19. Re: Education Stuck, Voting Stuck Try this..........Not tested of course...   <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $db->query("UPDATE fedjail set fed_days=fed_days-1"); $q=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['fed_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET fedjail=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM fedjail WHERE fed_days=0"); $db->query("UPDATE users SET daysingang=daysingang+1 WHERE gang > 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=0"); $db->query("UPDATE mod_slots SET Tokens=Tokens+75"); $db->query("UPDATE users SET turns=25"); $db->query("UPDATE users SET daysmarried=daysmarried+1 WHERE married !=0"); $db->query("UPDATE users SET mailban=mailban-1 WHERE mailban > 0"); $db->query("UPDATE users SET happiness=happiness-1 WHERE married != 0"); $db->query("UPDATE users SET donatordays=donatordays-1 WHERE donatordays > 0"); $db->query("UPDATE users SET cdays=cdays-1 WHERE course > 0"); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET cybermoney=cybermoney+(cybermoney/100*7) where cybermoney>0"); $q2=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r2=$db->fetch_row($q2)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r2['course']}"); $coud=$db->fetch_row($cd); $userid=$r2['userid']; $db->query("INSERT INTO coursesdone VALUES({$r2['userid']},{$r2['course']})"); $upd=""; $ev=""; if($coud['crSTR'] > 0) { $upd.=",us.strength=us.strength+{$coud['crSTR']}"; $ev.=", {$coud['crSTR']} strength"; } if($coud['crGUARD'] > 0) { $upd.=",us.guard=us.guard+{$coud['crGUARD']}"; $ev.=", {$coud['crGUARD']} guard"; } if($coud['crLABOUR'] > 0) { $upd.=",us.labour=us.labour+{$coud['crLABOUR']}"; $ev.=", {$coud['crLABOUR']} labour"; } if($coud['crAGIL'] > 0) { $upd.=",us.agility=us.agility+{$coud['crAGIL']}"; $ev.=", {$coud['crAGIL']} agility"; } if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); if ($upd) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.userid=us.userid $upd WHERE u.userid=$userid"); } $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, you completed the {$coud['crNAME']} and gained $ev!')"); } $fo=fopen("jailshouts.txt","w"); $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes;"); fclose($fo); ?>
  20. Re: [mccode v2] cMarket Total Limiter   Cool, this is something I made for someone real quick...took onlly matter of minutes.....I don't even use this, lol...What i use is alot more involved, lol
  21. Re: [mccode v2] Donator Packs To Items damn it..you completelymessed up what I'm saying....YOU DONT need to make a setting item....just make an item....add that item in the itemuse.php........give it affects.... Then in the IPN item_add(USERID,ITEMID,QUANTITY).   bullseye SLOWDOWN....think.........Your making something super simple into something complicated...your over thinking it.....stop for min.....you will get it man. :wink:
  22. Re: [mccode v2] Owner Panel Ok, im goning to get back on topic....What is the point of Owner Panel in Versin 2? none....Eidt teh smenu to show only what you want to show to other users and let ID 1 see what you want in the owner panel.....Go teh the staff pages change teh top from user_level to userid and done...no need to make something like this.......Just my 2 cents
  23. Re: Delete Users ALTER TABLE `users` AUTO_INCREMENT = 1; ALTER TABLE `userstats` AUTO_INCREMENT = 1; And to any other table you delete.....This lets you "resuse" the ID lol...
  24. Re: [mccode v2] Donator Packs To Items   there is no need to pay someont to make a auto credit man.. Use the code in your IPN for will potions....That will show you how to credit items to uses...Modifity that code, put it in your donator one. and change the item id of course to the item id of the DP you made. :P
  25. Re: Gang Market Question Thats because at the top of the page....tghe page has No idea what GANGDATA is....   global $gangdata; if($ir['userid'] != ($gangdata['gangPRESIDENT'])){ echo 'You need to be president to do this!'; $h->endpage(); exit; }
×
×
  • Create New...