Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Haunted Dawg

    Hi Peeps

    Re: Hi Peeps Welcome to the forums just one thing tho. How old are you. You say you have 30 years in exp with php and stuff but in your pic you dont look over 30.
  2. Re: who likes mccodes? Hello. I personally prefer v2 as it has a nice layout and such. I would use v2 befor v1 because v1 has to little things and is to much to edit. My overview: I hope that v3 comes out better and the security will be beter. I am helping coldblooded atm with some security and some of my scripts. I will be giving him my whorehouses mod and my shoutbox as he said he would give me a free v2 licence for it. I expect them to have atleast zend optimization on there codes as it would be best for us. Thanks
  3. Re: New mail system, New game, HELP!!! So then make it check your users database for there user make them login and if login let them create an account
  4. Re: Searching Well paralem if you can actualy code it and set its cords then i guess you could create a new image and such and i think he will need to provide the pics in the screen shots.
  5. Re: Court (v2) True ellil his was buggy and he refused to fix it. but anyways hope this is bug free so you dont have problems :-)
  6. Re: stop same ip transfers Nyna you seem to know alot of coding. Whats your website?
  7. Re: [v2] Family's [$30]   You ant got one good comment in your body do you? And no this is nothing like pets, i bought this and its nothing like pets. Never thought I'd see the day when you say: "I bought" something.. Infact ben -matt- buys everything he wants or he will ask either cyanide or normally me to make it if it does not exist like the dragon tent i made for him.
  8. Re: Court (v2) Slightly like the court mod that cronus made just you only have certain pages blocked and he has the hole game :|
  9. Re: Best Security [Made by me] its a code you add into your header and it will load each time a user loads the header. @Ellil: The only way ive heard of brute force is via the cpanel/whm and stuff that go after your domain like http://www.yourdomain.com:2083,2086,2087,2085 and such like that.
  10. Re: Best Security [Made by me] Bullet you are a noob coder.
  11. Re: [mccode] Stats Market   <?php include "globals.php"; print "<h3>Stats Market</h3>"; $_GET['ID'] = abs(@intval($_GET['ID'])); switch($_GET['action']) { case "buy": stats_buy(); break; case "remove": stats_remove(); break; case "add": stats_add(); break; default: statsmarket_index(); break; } function statsmarket_index() { global $db,$ir,$c,$userid,$h; print "[url='statsmarket.php?action=add']> Add A Listing[/url] Viewing all listings... <table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Adder</th> <th>Stat</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr>"; $q=$db->query("SELECT sm.*, u.* FROM statsmarket sm LEFT JOIN users u ON u.userid=sm.smADDER ORDER BY smPRICE/smQTY ASC"); while($r=$db->fetch_row($q)) { if($r['smADDER'] == $userid) { $link = "[url='statsmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='statsmarket.php?action=buy&ID={$r[']Buy[/url]"; } $each= (float) $r['smPRICE'] / $r['smQTY']; print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['smSTATS']}</td> <td>{$r['smQTY']}</td> <td> \$" . number_format($each)."</td> <td>\$".number_format($r['smPRICE'])."</td> <td>[$link]</td> </tr>"; } print "</table>"; } function stats_remove() { global $db,$ir,$c,$userid,$h; $f = mysql_query("SELECT * FROM statsmarket WHERE smID='{$_GET['ID']}'") or die(mysql_error()); $a = mysql_fetch_assoc($f); $q=$db->query("SELECT us.*,sm.* FROM statsmarket sm LEFT JOIN userstats us ON sm.smQTY=us.{$a['smSTATS']} WHERE sm.smID='{$_GET['ID']}' AND sm.smADDER='{$ir['userid']}'"); if(!$db->num_rows($q)) { print "Error, either this listing doesn't exist, or you are not the owner. [url='statsmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); //FIXED $db->query("UPDATE userstats SET {$r['smSTATS']}={$r['smSTATS']}+{$r['smQTY']} WHERE userid='{$ir['userid']}'") or die(mysql_error()); $db->query("DELETE FROM statsmarket WHERE smID={$_GET['ID']}"); print "Stats removed from market! [url='statsmarket.php']> Back[/url]"; } function stats_buy() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM statsmarket st WHERE smID={$_GET['ID']}"); if(!$db->num_rows($q)) { print "Error, either this listing doesn't exist, or it has already been bought. [url='statsmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); if($r['smPRICE'] > $ir['money']) { print "Error, you do not have the funds to buy these stats. [url='statsmarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE userstats SET {$r['smSTATS']}={$r['smSTATS']}+{$r['smQTY']} WHERE userid=$userid"); $db->query("DELETE FROM statsmarket WHERE smID={$_GET['ID']}"); $db->query("UPDATE `users` SET `money` = `money` - {$r['smPRICE']} WHERE `userid`={$ir['userid']}"); $db->query("UPDATE `users` SET `money`=`money` + {$r['smPRICE']} where `userid`={$r['smADDER']}"); event_add($r['smADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['smQTY']} {$r['smSTATS']} from the market for \$".number_format($r['smPRICE']).".",$c); print "You bought the {$r['smQTY']} {$r['smSTATS']} from the market for \$".number_format($r['smPRICE'])."."; print " [url='statsmarket.php']> Back[/url]"; } function stats_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = abs($_POST['amnt']); $_POST['price'] = abs($_POST['price']); if($_POST['amnt']) { if($_POST['amnt'] > $ir['strength']-10 || $_POST['amnt'] > $ir['IQ']-10 || $_POST['amnt'] > $ir['labour']-10 || $_POST['amnt'] > $ir['agility']-10 || $_POST['amnt'] > $ir['guard']-10) { echo "You are trying to add more stats to the market than you can add. Look at the stats, at the stat that you have the least of. Subtract that number by 10. That's the most you can add per listing for any stat. For example, if your lowest stat is IQ with 100 IQ, the most you can list per listing for any stat is 90. You must always have at least 10 of all stats. Strength: {$ir['strength']} Agility: {$ir['agility']} Guard: {$ir['guard']} Labour: {$ir['labour']} IQ: {$ir['IQ']} <a href='statsmarket.php'>> Back"; $h->endpage(); exit; } if($_POST['price'] > 200) { echo "You can only sell stats for up to 200 each. <a href='statsmarket.php'>> Back"; $h->endpage(); exit; } $a = mysql_query("SELECT * FROM statsmarket WHERE smADDER='{$ir['userid']}'") or die(mysql_error()); if(mysql_num_rows($a) > 3) { echo 'You may only add a certain ammount of stats.'; $h->endpage(); exit; } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO statsmarket VALUES('',{$_POST['amnt']},$userid,$tp,'{$_POST['sellstat']}')"); $db->query("UPDATE userstats SET {$_POST['sellstat']}={$_POST['sellstat']}-{$_POST['amnt']} WHERE userid=$userid"); print "Stats added to market! [url='statsmarket.php']> Back[/url]"; } else { print "[b]Adding a listing...[/b] Look at the stats, at the stat that you have the least of. Subtract that number by 10. That's the most you can add per listing for any stat. For example, if your lowest stat is IQ with 100 IQ, the most you can list per listing for any stat is 90. You must always have at least 10 of all stats. <form action='statsmarket.php?action=add' method='post'><table width=70% border=2><tr><td>Stats to add to market: </td> <td> <select type='dropdown' name='sellstat'> <option value='strength'>Strength (Have {$ir['strength']}) <option value='agility'>Agility (Have {$ir['agility']}) <option value='guard'>Guard (Have {$ir['guard']}) <option value='labour'>Labour (Have {$ir['labour']}) <option value='IQ'>IQ (Have {$ir['IQ']})</select></td></tr><tr> <td>How many stats:</td> <td><input type='text' name='amnt' value='' /></td></tr><tr> <td>Price for each stat:</td> <td><input type='text' name='price' value='200' /></td></tr><tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?>   You can try that.
  12. Re: [v2] Family's [$30] New description + screen shots
  13. Re: Simple Random Pics Nice addition to it lost one.
  14. Re: [mccode] Steps market Thats my other account :lol:
  15. Re: IP Banning tool [V1] + [V2] Ok i got this to work but it does not display the ip's :| Here is what im using: function ipbanview() { $dir = "/home/***/public_html/ipbans/"; ?> <h3>Viewing banned IP's</h3> <table border="1"> <tr> <th> IP </th> <th> Delete? </th> </tr><? if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (strlen($file)>4) { ?> <tr> <td> <? echo $file; ?> </td> <td> [url="staff.php?action=ipbanremove&ip=<? echo $file; ?>"][b]Delete[/b][/url] </td> </tr> <? } } closedir($dh); } } ?></table> [url="staff.php"][b]Back[/b][/url] <? }   Lol and this is for v2 but it does not show the ip's :S
  16. Re: [v2] Family's [$30] Well the actual mod is finished. Ironed out some bugs thanks to shaved92bravada & fenix. I will be giving all the free addons to those who bought the mod and i know who they are. Thats why my price is $30 because if you came to think of it, you can make this a hell of a mod to users. If you wanted you can actualy pay donations to buy upgrades for rooms and you can have 3 babys or even 10. One hell of a mod if you put your head together and code it :-P :roll:
  17. Re: Passport Mod Multi Version Well lets face it. Its the first mod that actualy is a little usefull for a first timer dont you think?
  18. Re: [v2] Family's [$30]   Zaver this is not a edited pathetic pets mod. Coded from scratch. Ask shaved92bravada, fenix & Matt. You may ask them it is not a modified pets mod :/. Not to mention i do not even have the pets mod on my game on my computer and why? Because its crap i do not like it.
  19. Re: Passport Mod Multi Version Lost one its becuase if the users money is exactly on 100k it wont allow them to use it and it will only work if money is $100,01 and with this: $costc = $cost-1; will be $99,99 making them able to enter if you stand my point.
  20. Re: Passport Mod Multi Version Yes i wish all comment's were like yours. And as far as i can see this is new coded.
  21. Re: Passport Mod Multi Version From now on when i create a new mod they going to be multi version :D.
  22. Re: How much is your site worth No im not sad to just waste my own time its called not bieng a freek and has extra time!
  23. Re: How much is your site worth Website Value Report for www.hellothissuckshahahhaahhaha.com Your site is worth $78 and www.hellothissuckshahahahhahahah.com doesnt even exist HA!
  24. Re: Upgrade Users Online I already had this for my users online it tracks the users online with in 1 minute and all :D but thanks for providing the code to others. :-)
  25. Re: Quick help please I converted this to mccode based: // Link to user profile function profile($id) { $q = sprintf('select username, userid from users where userid = %d limit 1', (int) $id); $query = query($q); if (mysql_num_rows($query) < 1) { $username = "User does not exist"; } else { list($name, $id) = fa($query); $profile = <<<EOT $name [$id] EOT; } return $profile; } And floydian my code would work only for viewusers.php and every other page the actual user looks at because of the $ir and the $r since basicly thats the most common used var's in mccodes :lol:
×
×
  • Create New...