Jump to content
MakeWebGames

Matthew

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by Matthew

  1. You know if you have photoshop you can do it yourself its easy and saves you money.
  2. I don't know at this moment because I get income tax money in a month or 2 of 5k
  3. I am not doing it in mccodes I jut couldn't find the right area to put it in. but.. what it will be is its own engine and like mobsters game, thats why I am trying to hire someone to do it for me because I am only familiar with mccraps.
  4. I made a game before out of mccraps but i need a new game made and I am just getting prices right now. The type of game I need it like the game mobsters 2 vendetta on faceobook. If you can check it out play about 20 min of it you can see what kind of game I need. Please pm me with your prices and all. Thank you!
  5. Do you have all the SQL's for that?
  6. Matthew

    9/11 R.i.p

    May all 9/11 victims RIP you will be missed! :'(
  7. I don't have my domain up anymore so I am trying to go on by not testing it why at line 9 its ' after echo and not " line 10 too. When you are trying this do you have donator days? You made it for only donator days poeple can look at it... if($ir['gym'] > 1) would be better if.. if($ir['donatordays'] < 1) ?
  8. I had posted the code asking why " was after echo on first line but then i looked at it i was like why the heck did i just say that so i took off the post!
  9. lol my bad i am not in it today!
  10. When I used to have the prob I went to argon or Dayo I forgot but one of them helped me when i was doing stuff like that its nasty now so i just have a real professional layout not saying yours is not professional but i mean get it made by photoshop and all not a pic lol but yah it has to do with somehting next to url then then location of the image i forgot i am trying to think about instead of url will be background: image (The locaton) and no repeat i could be wrong!
  11. They already have a comment area for profiles. So when someone clicks someones name you can give them a comment on their page. I got that...
  12. I know it is not secure. It is not my mod. I just made it work for him thats all. I didn't even pay attention to the security of it I needed to get to school!.
  13. Fixed it.   <?php session_start(); print "<html> <head> <title>Aimed-Mafia</title> <style> body { font-family:Verdana;font-size:9pt;color: #777777; background-color:#222222; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: #999999;text-decoration: none; } table,tr,td { font-size:9pt; } img { border:none; } input, textbox { font-family: Kristen ITC; font-size: 11; background-color: #c0c0c0; border: 1px solid purple; padding-bottom: 3px; } table { border: red; background: #222222; position: center; padding: 5; } </style> </head> <body><center>[img=http://i201.photobucket.com/albums/aa73/aimed_mafia/aimed-mafia-2.jpg]</center> "; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } require "global_func.php"; global $c; if($_POST['username']) { $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}'",$c); if(mysql_num_rows($q)) { print "Username already in use. Choose another."; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again."; } else { $_POST['ref'] = abs((int) $_POST['ref']); $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM users WHERE lastip='$ip' AND userid={$_POST['ref']}",$c); if(mysql_num_rows($q)) { die("No creating referral multies. Bad dog."); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c); $r=$db->fetch_row($q); } $db->query("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) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip')", $c); $i=mysql_insert_id($c); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c); } print "<center>You Have Now Signed Up To Aimed-Mafia. > [url='Ruless.php']Rules [Please Read First Then You May Login][/url]"; } } else { print "<center><h3>Aimed-Mafia Registration</h3></center>"; print "<center><table border='2' cellpadding='3' cellspacing='3' width='60%'> </tr><tr><td><form action=register.php method=post>Username:</td><td> <input type=text name=username> <center><abbrv title='Make Sure You Remember This, You Will Need This To Logg In To Aimed-Mafia'>{?}</abbrv></center></td> </tr><tr><td>Password: </td><td><input type=password name=password> <center><abbrv title='You Need To Remember This And Dont Give It To Anyone REMEBER: Staff Will Never Ask For Your Password'>{?}</abbrv></center></td> </tr><tr><td>Confirm Password:</td><td> <input type=password name=cpassword> <center><abbrv title='Please Re-Write Your Password You Entered Above'>{?}</abbrv></center></td> </tr><tr><td>Email:</td><td> <input type=text name=email> <center><abbrv title='Just Incase We Need To Contact You REMEBER: We Will Never Re-Sale Your E-mail'>{?}</abbrv></center></td> </tr><tr><td>Promo Code:</td><td> <input type=text name=promo> <center><abbrv title='If Unknown Please Leave Blank'>{?}</abbrv></center></td></table></center> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "'> <center><input type=submit value=Join></form> > [url='login.php']Go Back[/url]</center>"; } print "</body></html>"; ?>   Your line 41 prob was you didn't require global func so in this register on line 41 or whatever it is require "global_func.php"; not require "$db->.php"; of require "mysql.php"; but yah that should do it for yah! :P
  14. Matthew

    New Game

    When I first started couple years ago with ravan is has a skull. Then after a month or two I heard it was illigel and I needed mccodes so I got mccodes v2 license so this game must have been made while back for it to have the skull icon. Unless ravan changed it cause when i first started i will be honest i did have ravan and it has a skull but dont have ravan anymore!
  15. Matthew

    New Game

    Hey not to be mean but you have a illigel game i mean when i clicked it i seen the skull at the top of the tab bar notifying me this game you got is from ravan. :( you need mccodes license im not trying to be mean or nothing just saying try to get mccodes if not change the icon bud .. lol
  16. try this auction 1.) this will be auctioncron.php <?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 auctions SET time=time-1 WHERE time > 0"); $qqq=$db->query("SELECT * FROM auctions WHERE time = 0"); while($win=$db->fetch_row($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=$db->query("SELECT itmname FROM items WHERE itmid={$item}"); $winim=$db->fetch_row($iname); if($win['bids'] > 0) { $db->query("INSERT INTO inventory VALUES('',$item,$winner,1)"); $db->query("INSERT INTO events VALUES('', $winner, unix_timestamp(), 0, 'You won the auction of the {$winim['itmname']} for ?{$win['current']}, It has been added to your items.')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$winner}"); $db->query("INSERT INTO events VALUES('', $owner, unix_timestamp(), 0, 'Your {$winim['itmname']} sold succesfully on the auction market with {$win['bids']} bids! You have been paid ?{$win['current']}')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$owner}"); $db->query("UPDATE users SET money=money+'{$win['current']}' WHERE userid={$owner}"); } else if($win['bids'] == 0) { $iname=$db->query("SELECT itmname FROM items WHERE itmid={$item}"); $winim=$db->fetch_row($iname); $db->query("INSERT INTO events VALUES('', $owner, unix_timestamp(), 0, 'Your item listing has ended with no bidders. Your {$winim['itmname']} has been returned to your items.')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$owner}"); $winner=$win['owner']; $db->query("INSERT INTO inventory VALUES('',$item,$winner,1)"); } } $db->query("DELETE FROM auctions WHERE time=0"); ?> 2.) this will be auctionadd.php <?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 auctions SET time=time-1 WHERE time > 0"); $qqq=$db->query("SELECT * FROM auctions WHERE time = 0"); while($win=$db->fetch_row($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=$db->query("SELECT itmname FROM items WHERE itmid={$item}"); $winim=$db->fetch_row($iname); if($win['bids'] > 0) { $db->query("INSERT INTO inventory VALUES('',$item,$winner,1)"); $db->query("INSERT INTO events VALUES('', $winner, unix_timestamp(), 0, 'You won the auction of the {$winim['itmname']} for ?{$win['current']}, It has been added to your items.')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$winner}"); $db->query("INSERT INTO events VALUES('', $owner, unix_timestamp(), 0, 'Your {$winim['itmname']} sold succesfully on the auction market with {$win['bids']} bids! You have been paid ?{$win['current']}')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$owner}"); $db->query("UPDATE users SET money=money+'{$win['current']}' WHERE userid={$owner}"); } else if($win['bids'] == 0) { $iname=$db->query("SELECT itmname FROM items WHERE itmid={$item}"); $winim=$db->fetch_row($iname); $db->query("INSERT INTO events VALUES('', $owner, unix_timestamp(), 0, 'Your item listing has ended with no bidders. Your {$winim['itmname']} has been returned to your items.')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$owner}"); $winner=$win['owner']; $db->query("INSERT INTO inventory VALUES('',$item,$winner,1)"); } } $db->query("DELETE FROM auctions WHERE time=0"); ?> 3.) this will be auctions.php <?php include "globals.php"; print "<h3>Auction House</h3> <table width='80%' border='1'><tr><th>Owner</th><th>Item</th><th>High Bid</th><th>High Bidder</th><th>Time Left</th><th>Min. Next Bid</th><th>Bids</th><th>Functions</th></tr>"; $ma=mysql_query("select * from auctions order by time asc",$c); while($my=mysql_fetch_array($ma)) { $person=mysql_query("select u.*,a.* from users u left join auctions a on a.bidder=u.userid WHERE aid={$my['aid']}",$c); $him=mysql_fetch_array($person); $owner=mysql_query("select u.*,a.* from users u left join auctions a on a.owner=u.userid WHERE aid={$my['aid']}",$c); $o=mysql_fetch_array($owner); $item=mysql_query("SELECT a.*,i.* FROM auctions a LEFT JOIN items i ON a.itemname=i.itmid WHERE aid={$my['aid']}",$c); $ie=mysql_fetch_array($item); $high=$him['username']; $aid=$my['aid']; $own=$o['username']; $item=$ie['itmname']; $startprice=$my['start']; $currentprice=$my['current']; $time=$my['time']; $bids=$my['bids']; $increase=$my['increase']+$my['current']; $t4=floor($time/60/24); $t1=floor($time/60) % 24; $t2=$time % 60; if($t2 < 10) { $t3="0".$t2; } else { $t3=$t2; } if($t4) { $t5="$t4 days, "; } else { $t5=""; } print" <tr><td>$own</td><td>$item</td><td>[b]\$$currentprice[/b]</td><td>$high</td><td>$t5$t1:$t2</td><td>\$$increase</td><td>$bids</td><td>[url="bid.php?aid=$aid>[bid]"]<a href=iteminfo.php?ID=$ie[itmid]>[info][/url]</td></tr>"; } print"</table>"; $h->endpage(); ?> 4.)Make a cron for your game called curl http://(gamename.com)/cron_weekly.php?code=(CODE) run it for the minute 5.)[mysql]Table structure for table `auctions` -- CREATE TABLE IF NOT EXISTS `auctions` ( `aid` int(11) NOT NULL auto_increment, `owner` int(11) NOT NULL default '0', `itemname` int(11) NOT NULL default '0', `start` bigint(25) NOT NULL default '0', `current` bigint(25) NOT NULL default '0', `time` int(11) NOT NULL default '0', `bids` int(11) NOT NULL default '0', `bidder` int(11) NOT NULL default '0', `increase` int(11) NOT NULL default '0', `lastbidder` int(11) NOT NULL default '0', `lastbid` bigint(25) NOT NULL default '0', PRIMARY KEY (`aid`) ) [/mysql] 6.) add this to inventory.php next to sell addtomarket info all that those will look like this [[url='auctionadd.php?ID={$i[']Add To Auction[/url]] when you see the rest that look like that but saying add to market and such and info add that next to them and you can add the items to auction from your inventory. That should do it (I did NOT make this auction i will not take credit for this mod..BUT all the files i do have are secured so i got this un secure it is secure now...) If i missed something tell me. I have the file but i just probally didn't get to it
  17. lol yah well you got it all good now and all it took was " can i see the last 7 lines" lmfao well have fun!:P
  18. lol glad to know you got it fixed bud!:)
  19. if its 1-60 with is they get 1 crystals their gona be like wth man and someone else gets 60 i mean you can change it to 100 or 300 but that will really put a bad economy on the game and the game will be shot. And yah i know its kinda plain but it was made while back ago long time ago and thats why it is free lol =] But yah thanks for your input you all.:)
  20. so... The file I made is good? Does everything properly right? Because My friend and I made it so long ago and I saw someone wanted it for a wish in mods so i posted it here!..lol
  21. on my first post for it there is a cron day code for it and when they click daily crystals it say you have been credited 60 crystals today. well on line 15 on the code it says what it will tell you and the daily cron is this $db->query("UPDATE users SET daily=0");
  22. The default for the SQL for daily will be 1 it will be as defined 1 so it will give them once a day if it has none there it will not give hem anything but if it is 1 then they get it once a day. Am i correct?
  23. 1.) Make a file called dailycrystals.php add this into it <?php include "globals.php"; $q=$db->query("SELECT `daily`, `userid` FROM users WHERE daily=1 AND userid=$userid"); $r=$db->fetch_row($q); if($r['daily']>0) { echo "You have already collected your daily reward"; $h->endpage(); exit; } else { $db->query(sprintf("UPDATE `users` SET `daily`=%u WHERE `userid`=%d", 1, $userid)); $db->query(sprintf("UPDATE `users` SET `crystals`=`crystals`+%d WHERE `userid`=%d", 60, $userid)); echo "Here are your 60 Daily Crystals"; } ?> 2.) add this to cron_day.php $db->query("UPDATE users SET daily=0"); 3.) add this into your mysql [mysql] CREATE TABLE IF NOT EXISTS `dailycrystals` ( `crystals_done` int(11) NOT NULL default '60' )[/mysql] If your missing something from it and it does not work please tell me my friend and I made this awhile back so I am going off of what i remember if it says missing something tell me on this thread so i can add what needs to be added for you guys. Thank you and enjoy! oh also what this mods does is when someone clicks Daily Crystals on the mainmenu or explore where ever you put it it will get them 60 crystals you can change that by editing 60 in mysql to say 100 and the file too. Thank you! =]
  24. I have that if you are still wanting it well when you get on tell me I will send to you!
  25. Would this work <?php include "globals.php"; $q=$db->query("SELECT `daily`, `userid` FROM users WHERE daily=1 AND userid=$userid"); $r=$db->fetch_row($q); if($r['daily']>0) { echo "You have already collected your daily reward"; $h->endpage(); exit; } else { $db->query(sprintf("UPDATE `users` SET `daily`=%u WHERE `userid`=%d", 1, $userid)); $db->query(sprintf("UPDATE `users` SET `crystals`=`crystals`+%d WHERE `userid`=%d", 60, $userid)); echo "Here are your 60 Daily Crystals"; } ?>   CREATE TABLE IF NOT EXISTS `dailycrystals` ( `crystals_done` int(11) NOT NULL default '60' ) change the 60 to the amount you want to give them everyday also for the cron add   $db->query("UPDATE users SET daily=0"); that would be for the cron_day.php file and put Daily Reward on the Mainmenu part or explore part and they get X amount of crystals every day only once a day !:)
×
×
  • Create New...