Jump to content
MakeWebGames

MDK666

Members
  • Posts

    268
  • Joined

  • Last visited

Everything posted by MDK666

  1. Re: [mccode2] 3 in one bank for people with multiple currencys yay i got my updated attack.php script to work with all the armors from my inventory mod, but im selling it for $10.00, it grabs all the armors that the person/s have equiped and alows them to be used during attacking, which gives the user a higher def, or what ever the items stats are.
  2. I have just finished adding my armors and etc to the attack script to where it adds up all there armors while defending, it not make the users defence higher, and also gives a user a purpose to have the other armors, im selling this for $5.00 but am willing to think of offers for it so if you have a offer let me know, currently the mod has no bugs, since i finally tested it this morning. So send me a message on here or leave a message in this topic if your interested.
  3. Re: [mccode2] problems with a single sql line and need help tnks i appreciate it u just helped me fix this mod up :lol: tnks alot for the help
  4. Re: [mccode2] 3 in one bank for people with multiple currencys you guys have more experience in php then i do im still learning as i d even though this darn attack.php script is ticking me off :roll:
  5. Re: [mccode2] 3 in one bank for people with multiple currencys :-o all these advanced coders i wish i knew as much as u guys :wink:
  6. Re: [MCCODES V2] New Schooling Advanced nice like always illusions
  7. ok everyone im working on editing the attack.php file to include my inventory mod i had released some time ago, i have everything working up to this single line/s and i was wondering if someone can help out? here is the error that i recieve:   QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY rand()' at line 1 Query was SELECT * FROM users WHERE itmid=(0, 0, 0, 0, 0, 0, 0 ORDER BY rand()   and here is the code:   { $q3=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$odata['equip_armor']}, {$odata['equip_helmet']}, {$odata['equip_boots']}, {$odata['equip_amulet']}, {$odata['equip_braclet']}, {$odata['equip_ring']}, {$odata['equip_special']} ORDER BY rand()"); if($db->num_rows($q3)) { $mydamage-=$db->fetch_single($q3); }   thats the part im getting confused at, i have a few people telling me the codeing is incorrect, and or i should use a array, but i dont know how to use a array along with writing one, i've tried multiple ways, i was thinking of useing this but not sure if it would work:   $q3=$db->query("SELECT * FROM users WHERE equipable={$equipable} ORDER BY rand()"); $equipable = array( helmet => array('equip_helmet'), armor => array('equip_armor'), braclet => array('equip_braclet'), boots => array('equip_boots'), amulet => array('equip_amulet'), ring => array('equip_ring'), special => array('equip_special') );   if anyone has any suggestions of fixes for this ill greatly appreciate it.
  8. Re: [mccode2] 3 in one bank for people with multiple currencys put this in cron day $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET bankcrystals=bankcrystals+(bankcrystals/50) where bankcrystals>0"); $db->query("UPDATE users SET bankdiamonds=bankdiamonds+(bankdiamonds/50) where bankdiamonds>0");
  9. Re: Equiped Items its nice by the way im that somone who made the inventory system with all the other armors :-) but im working on the attack script that will include the armors in a def but im gonna end up selling it because its starting to become a hassle getting it to work correctly.
  10. Re: [mccode 2] another explore thanks illusions for the screenshot, and i just used the image i had at the moment so yea.
  11. heres another explore with some images and its more cleaner im my opinion this mod was made by myself with the help of illusions so thanks hun.   <?php include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } if ($ir['donatorpack'] == 0) print "[url='donator.php']Donate To {$set['game_name']}.[/url]"; { print" <form action=starterkit.php><input type='submit' value='Claim your free Starter Kit now!'></form>"; } print "<p align='center'><font face='Broadway' color='red' size='7'>[i]<u>{$set['game_name']}</u>[/i]</p></font>"; print "<a href='donator.php'>Donate To {$set['game_name']}. </a>"; ?> <head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <style type="text/css"> body { margin:0; padding:0; } background-color: #0A0000; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:10px;color: red; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: 12; text-decoration: none; color: blue} A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: 12; text-decoration: none; color: white} A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: 12; text-decoration: crosshair; color: red} smalltext {font-family: Arial; font-size: 12; color:white} table,tr,td { font-size:10pt; color: white; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: red; } </style> <table class="one" width="75%"> <tr> <th style="background: url('th.png');text-align:center;border:2px double #000000;"><font color=ffffff>Market Place </td> <th style="background: url('th.png');text-align:center;border:2px double #000000;"><font color=ffffff>Money Makers </td> <th style="background: url('th.png');text-align:center;border:2px double #000000;"><font color=ffffff>Dark Side </td> </tr> <tr> <th style="background: url('drock0.jpg');text-align:center;border:2px double #000000;"><font color=ffffff> [url='shops.php']Shops [/url] [url='itemmarket.php']Item market[/url] [url='cyberbank.php']Cyber Bank[/url] [url='cmarket.php']Crystal Market[/url] [url='monorail.php']Travel Agency[/url] [url='estate.php']Estate Agent[/url] [url='bank.php']Community Bank<font color='red'><blink>(new)</blink>[/url] [url='crystaltemple.php']Crystal Temple[/url] </th> <th style="background: url('drock0.jpg');text-align:center;border:2px double #000000;"><font color=ffffff> [url='drugs.php']Drug Market<font color='red'><blink>(new)</blink>[/url] [url='drug_corner.php']Drug Corner<font color='red'><blink>(new)</blink>[/url] [url='battletent.php']Battle Tent[/url] [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] [url='slotsmachine.php?tresde=$tresder']Slots Machine[/url] [url='roulette.php?tresde=$tresder']Roulette[/url] [url='lucky.php']Lucky Boxes[/url] </th> <th style="background: url('drock0.jpg');text-align:center;border:2px double #000000;"><font color=ffffff> [url='slotsmachine3.php']Super Slots[/url] [url='fish.php']Go Fishing<font color='red'><blink>(new)</blink>[/url] [url='userlist.php']User List[/url] [url='halloffame.php']Hall of Fame[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online<font color='red'><blink>(new)</blink>[/url] [url='lottery.php']Lottery<font color='red'><blink>(new)</blink></font>[/url] [url='luckybag.php']Lucky Grab Bags<font color='red'><blink>(new)</blink></font>[/url] [url='battletent.php']Battle Tent[/url] </th> </tr> <tr> <th style="background: url('th.png');text-align:center;border:2px double #000000;">-----</th> <th style="background: url('th.png');text-align:center;border:2px double #000000;">-----</th> <th style="background: url('th.png');text-align:center;border:2px double #000000;">-----</th> </tr></table> <?php print " <font face='Arial' color='white' size='2'>[b]This is your referal link: http://{$domain}/register.php?REF=$userid <b/></font>"; $h->endpage(); PHP ?>   just replace the links to things with yours and your all good to go. the 3 images are as attachments but u can use them as u wish.
  12. well since i see that alot of people are starting to use other currencys such as diamonds and crystals i will release a bank that i have coded myself, from the original back script, this bank script also gives intrest and it all works, ive tested it on my last game, so if you get any errors let me know and ill try and help as much as i can, considering im no longer running a mc2 game.   <?php include "globals.php"; print "<h3>Community Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "depositmon": depositmon(); break; case "withdrawmon": withdrawmon(); break; case "depositcry": depositcry(); break; case "withdrawcry": withdrawcry(); break; case "depositdia": depositdia(); break; case "withdrawdia": withdrawdia(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print "Congratulations, you bought a bank account for \$50,000 & 100crystals [url='bank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-50000,crystals=crystals-100,bankmoney=0 WHERE userid=$userid"); } else { print "You do not have enough money, or crystals to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$50,000! [url='bank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} money & {$ir['bankcrystals']} crystals & {$ir['bankdiamonds']} diamonds in the bank.[/b] At the end of each day, your bank balance will go up by 2%. <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$3,000.<form action='bank.php?action=depositmon' method='post'> Amount: <input type='text' name='depositmon' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='bank.php?action=withdrawmon' method='post'> Amount: <input type='text' name='withdrawmon' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table> <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Crystals[/b] It will cost you 15% of the crystals you deposit, rounded up. The maximum fee is 30 crystals.<form action='bank.php?action=depositcry' method='post'> Amount: <input type='text' name='depositcry' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Crystals[/b] There is no fee on withdrawals.<form action='bank.php?action=withdrawcry' method='post'> Amount: <input type='text' name='withdrawcry' value='{$ir['bankcrystals']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table> <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Diamonds[/b] It will cost you 15% of the diamonds you deposit, rounded up. The maximum fee is 15 diamonds.<form action='bank.php?action=depositdia' method='post'> Amount: <input type='text' name='depositdia' value='{$ir['diamonds']}' /> <input type='submit' value='Deposit' /></form></td><td> [b]Withdraw Diamonds[/b] There is no fee on withdrawals.<form action='bank.php?action=withdrawdia' method='post'> Amount: <input type='text' name='withdrawdia' value='{$ir['bankdiamonds']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function depositmon() { global $db,$ir,$c,$userid,$h; $_POST['depositmon']=abs((int) $_POST['depositmon']); if($_POST['depositmon'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['depositmon']*15/100); if($fee > 3000) { $fee=3000; } $gain=$_POST['depositmon']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['depositmon']} where userid=$userid"); print "You hand over \${$_POST['depositmon']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdrawmon() { global $db,$ir,$c,$userid,$h; $_POST['withdrawmon']=abs((int) $_POST['withdrawmon']); if($_POST['withdrawmon'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdrawmon']; $ir['bankmoney']-=$gain; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function depositcry() { global $db,$ir,$c,$userid,$h; $_POST['depositcry']=abs((int) $_POST['depositcry']); if($_POST['depositcry'] > $ir['crystals']) { print "You do not have enough crystals to deposit this amount."; } else { $fee=ceil($_POST['depositcry']*15/100); if($fee > 30) { $fee=30; } $gain=$_POST['depositcry']-$fee; $ir['bankcrystals']+=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals+$gain, crystals=crystals-{$_POST['depositcry']} where userid=$userid"); print "You hand over {$_POST['depositcry']} crystals to be deposited, after the fee is taken ($fee)crystals, $gain crystals is added to your account. [b]You now have {$ir['bankcrystals']} crystals in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdrawcry() { global $db,$ir,$c,$userid,$h; $_POST['withdrawcry']=abs((int) $_POST['withdrawcry']); if($_POST['withdrawcry'] > $ir['bankcrystals']) { print "You do not have enough banked crystals to withdraw this amount."; } else { $gain=$_POST['withdrawcry']; $ir['bankcrystals']-=$gain; $db->query("UPDATE users SET bankcrystals=bankcrystals-$gain, crystals=crystals+$gain where userid=$userid"); print "You ask to withdraw $gain crystals, the banking lady grudgingly hands it over. [b]You now have {$ir['bankcrystals']} crystals in the bank.[/b] [url='bank.php']> Back[/url]"; } } function depositdia() { global $db,$ir,$c,$userid,$h; $_POST['depositdia']=abs((int) $_POST['depositdia']); if($_POST['depositdia'] > $ir['diamonds']) { print "You do not have enough diamonds to deposit this amount."; } else { $fee=ceil($_POST['depositdia']*15/100); if($fee > 15) { $fee=15; } $gain=$_POST['depositdia']-$fee; $ir['bankdia']+=$gain; $db->query("UPDATE users SET bankdiamonds=bankdiamonds+$gain, diamonds=diamonds-{$_POST['depositdia']} where userid=$userid"); print "You hand over {$_POST['depositdia']} diamonds to be deposited, after the fee is taken ($fee) diamonds, $gain diamonds is added to your account. [b]You now have {$ir['bankdiamonds']} diamonds in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdrawdia() { global $db,$ir,$c,$userid,$h; $_POST['withdrawdia']=abs((int) $_POST['withdrawdia']); if($_POST['withdrawdia'] > $ir['bankdiamonds']) { print "You do not have enough banked diamonds to withdraw this amount."; } else { $gain=$_POST['withdrawdia']; $ir['bankdiamonds']-=$gain; $db->query("UPDATE users SET bankdiamonds=bankdiamonds-$gain, diamonds=diamonds+$gain where userid=$userid"); print "You ask to withdraw $gain diamonds, the banking lady grudgingly hands it over. [b]You now have {$ir['bankdiamonds']} diamonds in the bank.[/b] [url='bank.php']> Back[/url]"; } } $h->endpage(); ?>
  13. Re: [mccode] Additional Currency also if your wanting to be able to credit users with gems/crystals or whatever your gonna need to edit the credit user file in the admin section, there are atleast 3 of 4 parts that need to be edited in that if you need help let me know and ill look for exactly what parts that are needed and will help as much as possible.
  14. Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0 thats ok this was one of the first mods, or a copy and replace mod i have released, i was working on a accuall mod that included a crystals, diamonds, and gold or whatever else in a single file but i stopped working with mc2 so i never finished it. but thanks for the feedback atleast
  15. Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0 hmmmm nice way to say a fail, if you feel you can code something up that no one has though of and maybe release a version of it for free, but i had made this mod for the people who dont know how to (replace information in a mod) so if you like saying things about how i like to help the community go ahead i really dont care, as long as i know that it can help the community with there game. so once again i dont care, talk about how i just copy and pasted.
  16. Re: [mccode v2] Farming hmmm the buying functions should be in the script, im grateful that you had fixed the codeing for the script i had submited its a script from a different game and i tried to convert it to work with mccode v2 and got no where with it so i posted it here to try and find someone who could, because i had a feeling people could put it to use, or even edit or modify it to work along with there game. but a +1 for you for getting to to work correctly, ill check all the codeing over when i get the time. and see about adding some more things to it such as a admin section for it, but ill get to that after i get through my family issues which i will not discuss.
  17. Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy can you add a custom theme say a user wants to change the Css colors for the whole template they want is there a way for the user to be able to make a theme the same way as them selecting a theme, i mean i do admin sometimes playing a game over and over and so on that the look and feel of the game get a little boring.
  18. Re: [MOD] V2 Theme Changer as Promised 96% completed :-D :-D :-D :-D :-D :-D :-D :-D +1000 man u finally released it :)
  19. Re: [mccodes v2] arcade :-o lol maybe :-D
  20. Re: [mccode v2] Fishing Mod nice i knew you would make it into a beautiful piece of artwork :)
  21. Re: [mccodes v2] arcade yes im on a .co.cc and yes im running ipb the newest version at that i cant explain how to get it because well because i dont want too, if u want it just serach ipb nulled scripts and you just might find it :)
  22. Re: [showcase] The One hmmm send me something :)) in my pm and ill take a look at it me and my co-host are working on makeing a new template at the moment but if u can make something ill appreciate it.
  23. Re: [mccode v2] Farming well thats one of the reasons i made this and posted the topic is to find someone to fix it for me and help me release this mod as a free one
  24. Re: [mccodes v2] arcade i guess i can put the games on my forums to download along with a full zip file to download them itll be on my forums at http://www.the-dark-ones.co.cc/forums
  25. Re: [mccode v2] Farming thats why i made this topic to find out if anyone can fix the functions and straitin them up for me so we have a working version
×
×
  • Create New...