
devonbnice
Members-
Posts
42 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by devonbnice
-
No, thats unnecessary, I'll just place it in the free mods section but for some reason the the php tags and such arn't working, every since they changed the site. anyone have any idea how to make the tags work? lol.
-
BBcode is not working? :/
-
My reason for not wanting to sell it, is because ive noticed a few flaws and errors it had, and ive became careless and havnt bothered to fix them, there minor cron problems. What i could do is place it in the free mod section?
-
Havnt been active on this site in a long while. Sorry this mod is no longer for sell, ive quit coding an mccodes game, and have began coding my own and unique game entitled High Life.
-
Thats no use. When a player invests his muny he types of makes a contract that he wont be able to touch this money until investment time ends. Yes, Your making a contract with the bank to hold your money and gain interest on it. If you invest in real life you cant just take your money out when ever your want. You have to choose an investment plan.
-
Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts. Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated.
-
Im aware it is in need of securing. Which i dont know how to do.. :(
-
Instead of making a new addon to the users. why not just make a variable? like.. $total_stats = $ir['strength'] + $ir['agility'] + $ir['guard'] + $ir['labour']; then.. if($total_stats >= '1000') { $gain /=2;}
-
Hey everyone, Here i have yet another free mod. This is a investment bank, Users can invest their money for a selected amount of time, and receive a fixed interest rate. at the end of there investment time they will then be able to withdrawl their money. Simple eh? This mod includes: 1 PHP file 2 columns added to the users table Lets get started. First make a file called investbank.php <?php //created by Devon Nice //Free mod for Mccode //Copyright 2011 Nice Entertainment //^^DO NOT REMOVE!^^ include "globals.php"; print "<h3>Investment Bank</h3><hr> "; if ( !$_GET['action'] ) { if ( $ir['bankTIME'] == 0 ) { print "Please click below to withdrawl your investment. <font size=3>\$".number_format($ir['bankCASH'])."</font> > [url='investbank.php?action=withdrawl']Withdrawl my investment now![/url] "; } else if ( $ir['bankTIME'] > 0 ) { print "<font size=3>In [b]{$ir['bankTIME']}[/b] days you will recieve your total investment of [b]\$".number_format($ir['bankCASH'])."[/b]</font> "; } else { print "Are you tired of never having money? This is a perfect business opportunity for you. Invest your hard earned cash, and profit of it. simple eh? Invest your money and make money without doing anything! There are no promises you will profit. You may settle, you may lose it. "; print "<table width='50%' bgcolor='#dcdcdc' cellspacing='0' cellpadding='3'> <th bgcolor='#dcdcdc' width='50%'>Rates</th> <th bgcolor='#dcdcdc' width='50%'>Money</th><tr>"; print "<td bgcolor='#dcdcdc' width='50%' align=center> <form action='investbank.php?action=invest' method='post'> <select name='rate' type='dropdown'> <option value='0.0035'>1 Day (0.35%) <option value='0.0095'>1 Week (0.95%) <option value='0.0215'>2 Weeks (2.15%) <option value='0.0395'>1 Month (3.95%) <option value='0.0535'>2 Month (5.35%) <option value='0.0675'>3 Months (6.75%) </select></td>"; print "<td bgcolor='#dcdcdc' width='50%' align=center> \$<select name='cash' type='dropdown'> <option value='1000'> \$1,000 <option value='10000'> \$10,000 <option value='50000'> \$50,000 <option value='100000'> \$100,000 <option value='250000'> \$250,000 <option value='500000'> \$500,000 <option value='1000000'> \$1,000,000 <option value='1500000'> \$1,500,000 <option value='2500000'> \$2,500,000 <option value='5000000'> \$5,000,000 <option value='10000000'> \$10,000,000 <option value='25000000'> \$25,000,000 <option value='50000000'> \$50,000,000 <option value='100000000'> \$100,000,000 <option value='500000000'> \$500,000,000 <option value='1000000000'> \$1,000,000,000 </select></td><tr> <td bgcolor='#dcdcdc' width='50%' colspan=2 align=center> <input type='submit' value='Invest' /></form></td>"; print "</table>"; } } else if ( $_GET['action'] == 'invest' ) { if ( $ir['money'] < $_POST['cash'] ) { print "You dont have that kind of money! "; } else if ( $ir['bankTIME'] > -1 ) { print "Your already investing! "; } else if ( $ir['bankCASH'] > 0 ) { print "Your already investing! "; } else { $interest = $_POST['cash'] * $_POST['rate']; $total = $_POST['cash'] + $interest; $T = $_POST['rate']; if ($T == 0.0035){$time = 1;} elseif ($T == 0.0095){$time = 7;} elseif ($T == 0.0215){$time = 14;} elseif ($T == 0.0395){$time = 30;} elseif ($T == 0.0535){$time = 60;} elseif ($T == 0.0675){$time = 90;} else { print "An error occured, Please try again. <hr>> [url='investbank.php']Back[/url]<hr>"; $h->endpage(); } print "You have invested a total of [b]\$".number_format($_POST['cash'])."[/b] When your investment time is up (In $time Days) you will recieve a total of. <font size=4>[b]\$".number_format($total)."[/b]</font> "; print " > [url='investbank.php']Continue[/url] "; mysql_query("UPDATE users SET bankTIME = $time, bankCASH = $total, money = money - {$_POST['cash']} WHERE userid=$userid"); } } else if ( $_GET['action'] == 'withdrawl' ) { if ( $ir['bankTIME'] != 0 ) { print "You either don't have an investment or your time isnt up "; } else if ( $ir['bankCASH'] < 0 ) { print "You dont have an investment! "; } else { mysql_query("UPDATE users SET money = money + {$ir['bankCASH']} WHERE userid=$userid"); print "You withdrew your investment of [b]\$".number_format($ir['bankCASH'])."[/b]! "; mysql_query("UPDATE users SET bankTIME = -1, bankCASH = 0 WHERE userid=$userid"); } } else { print "Sorry, This is an invalid link extension. "; } print " <hr>> [url='investbank.php']Back[/url]<hr>"; $h->endpage(); ?> Second, runs these SQL's [mysql] ALTER TABLE users ADD bankCASH BIGINT(11) NOT NULL DEFAULT 0 ALTER TABLE users ADD bankTIME INT(11) NOT NULL DEFAULT -1 [/mysql] Last, add to cron_day.php //investment bank $db->query("UPDATE users SET bankTIME = bankTIME - 1 WHERE bankTIME > 0"); And thats all! Now for some pictures! http://www.imageurlhost.com/images/wr4ebdiiufwkwbt3nv7t.jpg http://www.imageurlhost.com/images/8bqqpmqwfi21r0w3dgo5.jpg http://www.imageurlhost.com/images/rt4i9r36c557u9oxiyvv.jpg http://www.imageurlhost.com/images/kmq8zyenug1ck5iusrlw.jpg http://www.imageurlhost.com/images/zprv916x103cy3fxx5vx.jpg If there are any problems please post them below! Thanks, Devon.
-
Thats a decent idea if your not wanting your users to get insane stats. But a 50% cut is a bit much.
-
A way to secure your website without a big fuss...maybe?
devonbnice replied to Mystical's topic in Free Modifications
It's also free if you just want your game secure, you just wont know what happening with your game. -
A way to secure your website without a big fuss...maybe?
devonbnice replied to Mystical's topic in Free Modifications
It seams pretty nice, They mentioned that you dont need to change servers or change any code. So i dont see why it wouldnt work for mccodes. I might have to try it out one of these days, if i ever get around to launching a game. -
50% price drop.
-
I was gonna add a table background image, but i couldn't find any good pictures of safes. lol
-
The numbers are generated randomly, they are never the same. you'll find that bit of code here.. $C1=(int) rand(1,5); $C2=(int) rand(1,5); $C3=(int) rand(1,5);
-
Lol, ahh there basically the same thing right? lol. I guess it can be whatever you want it to be :p
-
Here a nice addition, Users have a guess 3 numbers and if they get it correct they will either win money or a item. Non donators get 10 chances per day, as donators get 15 chances per day, This can easily be changed. There should be no bugs, this only took me about 30 minutes. Ive tested. but not fully, There should be no problems tho. (: create a new file called chest.php <?php //created by Devon Nice //free mod include "globals.php"; print "<h3>Treasure Chest</h3><hr> "; if ( $ir['safe'] == 1 ) { print "You already cracked the safe today! "; print " <hr>> [url='chest.php']Back[/url]<hr>"; $h->endpage(); } if ( $ir['safe_remain'] < 1 ) { print "You dont have any attempts left, try again tomorrow! "; print " <hr>> [url='chest.php']Back[/url]<hr>"; $h->endpage(); } if ( $_GET['chest'] == 'crack' ) { $C1=(int) rand(1,5); $C2=(int) rand(1,5); $C3=(int) rand(1,5); if ( $_POST['C1'] == $C1 AND $_POST['C2'] == $C2 AND $_POST['C3'] == $C3 ) { $A=(int) rand(1,3); $cash=(int) rand(5000,20000); print "You cracked the safe! "; mysql_query("UPDATE users SET safe = 1 WHERE userid=$userid"); if ( $A == 1 OR $A == 2 ) { print "<font color=darkgreen>You found [b]\$".number_format($cash)."[/b] inside the safe!</font> "; mysql_query("UPDATE users SET money = money + $cash WHERE userid=$userid"); } else if ( $A == 3 ) { $iq=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c); $r=$db->fetch_row($iq); $item=$r['itmid']; $userid=$ir['userid']; $db->query("INSERT INTO inventory VALUES ('', $item, $userid, 1)",$c); print "<font color=darkgreen>You found the item [b]{$r['itmname']}[/b] inside the safe!</font> "; } } else { mysql_query("UPDATE users SET safe_remain = safe_remain - 1 WHERE userid=$userid"); $remain = $ir['safe_remain'] - 1; print "You failed to crack the safe! You have [b]$remain[/b] tries remaining. "; } } else if ( $_GET['chest'] == '' ) { print "Here you can crack the safe and find some cash or a special item! "; print "<table width=40%><td bgcolor='#dcdcdc' width='20%' align=center>[b] You have {$ir['safe_remain']} attempts remaining[/b] </td><tr> <form action='chest.php?chest=crack' method='post'> <td bgcolor='#dcdcdc' width='20%' align=center> <select name='C1' type='dropdown'> <option value='1'>1 <option value='2'>2 <option value='3'>3 <option value='4'>4 <option value='5'>5 </select> <select name='C2' type='dropdown'> <option value='1'>1 <option value='2'>2 <option value='3'>3 <option value='4'>4 <option value='5'>5 </select> <select name='C3' type='dropdown'> <option value='1'>1 <option value='2'>2 <option value='3'>3 <option value='4'>4 <option value='5'>5 </select> </td><tr><td bgcolor='#dcdcdc' width='20%' align=center> <input type='submit' value='Crack' title='Crack the safe'/></form></td></table>"; } else { print "Invalid link extension. "; } print " <hr>> [url='chest.php']Back[/url]<hr> "; print "All content associated with this page is strictly copyright © 2011. Nice Entertainment. All right reserved."; $h->endpage(); ?> Run this SQL's [mysql] ALTER TABLE users ADD safe TINYINT(11) NOT NULL DEFAULT 0 ALTER TABLE users ADD safe_remain TINYINT(11) NOT NULL DEFAULT 10 [/mysql] Add to cron_day.php $db->query("UPDATE users SET safe = 0 "); $db->query("UPDATE users SET safe_remain = 10 WHERE donatordays < 1 "); $db->query("UPDATE users SET safe_remain = 15 WHERE donatordays > 0 "); That should be it. Any problems please post. Devon Nice.
-
No idea. If so i doubt there anything alike.
-
[align=center]Drug Dealer Modification Finally finished my drug mod, It has quite a few goodies so lets get down to it. Mod Price - $10.00 USD What is this mod? This mod is a great way for users to make money, This mod works by users Buying and selling their drugs, Prices of the drugs change every hour. Users also have the option to use the drugs instead of selling them, Which will effect their Energy, Will, And Brave. Users can also become addicted and if this happens they are hospitalized and their energy, will and brave is set to 0. They also get busted by the police they they draw to much attention to themselves, such as buying and selling drugs to fast. If this happens the user will lose all their drugs, and everything else they've bought. Users will also have to buy bigger storage units to carry more drugs. Users can also buy drug supplies and make their own drugs. Users will also have to go to rehab to prevent themselves from getting addicted if they use the drugs. This Mod also runs on every user. What i mean by that is their is only one total amount of drugs. Which every user is using the same global amount of drugs. Example: lets say there is 100g of Cocaine for sell. Someone could purchase all that cocaine and then there would be no more to purchase for anyone else. Ways to get more drugs back into system would either be to sell your drugs or make them, also everyday a random number of each drug will be added to the system. Got me? (: Mod Functions Six different drugs Buy/Sell System Global statistics ( shows drug amounts and prices ) Drug Storage ( 5 Different storages ) Supply Store ( purchase supplies to make drugs ) Your Lab ( Make drugs ) Rehab ( Lower addiction level ) Full Tutorial Use of drugs Addiction level Heat level Use of drugs each drug has its own unique attributes. Marijuana - 5-10 Will boost Cocaine - 5-10 Energy boost Acid - 1-3 Brave boost Ecstasy - Double current will Heroin - Refill brave + 10 Meth - Refill energy This mod includes 1 PHP file 2 tables 2 cron edits How to purchase This mod is for sell for $10.00 USD. Please Message me here on MWG telling me that your interested in purchasing and ill give you my MSN and we can discuss further. Send your payments to paypal @ [email protected] Mod Images Thank You, Devon Nice [/align]
-
I noticed this to be a bit of problem with my game, And i havn't really seen anyone post a solution to this problem so i figured i will make the fix, give to everyone else thats having this problem This will stop the energy,brave,will,exp,hp. bars from overstretching and making your page look terrible. Simply open header.php and replace. $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); With if ($ir['energy'] > $ir['maxenergy']) {$enperc = "{$ir['maxenergy']}";} else {$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);} if ($ir['will'] > $ir['maxwill']) {$wiperc = "{$ir['maxwill']}";} else {$wiperc=(int) ($ir['will']/$ir['maxwill']*100);} if ($ir['exp'] > $ir['exp_needed']) {$experc = "{$ir['exp_needed']}";} else {$experc=(int) ( $ir['exp']/$ir['exp_needed']*100);} if ($ir['brave'] > $ir['maxbrave']) {$hpperc = "{$ir['maxbrave']}";} else {$brperc=(int) ($ir['brave']/$ir['maxbrave']*100);} if ($ir['hp'] > $ir['maxhp']) {$enperc = "{$ir['maxhp']}";} else {$hpperc=(int) ($ir['hp']/$ir['maxhp']*100);} Annd that should be it! (:
-
Thats nice, good work. I made my own just a little while ago. it has a dropdown menu. staff_refill.php <?php //Created by Devon Nice, Copyright 2011 //Free to use include "globals.php"; if ( $ir['user_level'] == 2 ) { print "<h3>Staff Refill Center</h3><hr> "; if ( !$_POST['fill'] ) { print "<font size='2'>[b]Connection Approved![/b]</font>"; } else if ( $_POST['fill'] == 'energy' ) { print "<font size='2' color='darkgreen'>[b]Energy has been refilled![/b]</font>"; mysql_query("UPDATE users SET energy = maxenergy WHERE userid=$userid"); } else if ( $_POST['fill'] == 'brave' ) { print "<font size='2' color='darkgreen'>[b]Brave has been refilled![/b]</font>"; mysql_query("UPDATE users SET brave = maxbrave WHERE userid=$userid"); } else if ( $_POST['fill'] == 'mood' ) { print "<font size='2' color='darkgreen'>[b]Mood has been refilled![/b]</font>"; mysql_query("UPDATE users SET will = maxwill WHERE userid=$userid"); } else if ( $_POST['fill'] == 'health' ) { print "<font size='2' color='darkgreen'>[b]Health has been refilled![/b]</font>"; mysql_query("UPDATE users SET hp = maxhp WHERE userid=$userid"); } else if ( $_POST['fill'] == 'jail' ) { print "<font size='2' color='darkgreen'>[b]You have been released from jail![/b]</font>"; mysql_query("UPDATE users SET jail = 0 WHERE userid=$userid"); } else if ( $_POST['fill'] == 'hospital' ) { print "<font size='2' color='darkgreen'>[b]You have been released from the hospital![/b]</font>"; mysql_query("UPDATE users SET hospital = 0 WHERE userid=$userid"); } print " <table width='50%' bgcolor='#dcdcdc' cellspacing='0' cellpadding='3'> <th bgcolor='#dcdcdc' width='100%' align='center'>Select which value you wish to refill.</th><tr> <td bgcolor='#dcdcdc' width='100%' align='center'> <form action='staff_refill.php' method='post'>"; print "<select name='fill' type='dropdown'> <option value='energy'>Energy <option value='brave'>Brave <option value='mood'>Mood <option value='health'>Health <option value='jail'>Jail <option value='hospital'>Hospital </select> <input type='submit' value='Refill' title='Refill the selected value'/></form></td></table>"; } else { print " Your trying to connect to a restricted page, a report has been sent to the administation."; } print " <hr>> [url='index.php']Back[/url]<hr>"; print " All content associated with this page is strictly copyright © 2011 Nice Entertainment. All rights reserved."; $h->endpage(); ?>
-
Expand ajax / drop down menu? Help???
devonbnice replied to devonbnice's topic in Modification Support
Yes thats what im trying to do. Like how your chat mod expand once clicked. I dont need a database or anything. -
Heyy, since i have like no experience whats so every with AJAX. I was wanting to do something with the Explore page. Something different and unique, buttt i dont know ajax code.. :( So my question is how would i go about creating a link/text, once clicked would expand and show the concealed text, and other mumbo jumbo. Kinda like the AJAX chat mod. [mccode v2.x] Free Ajax Chat!!! Ya feel me? All would be very very much appericated. (: Thanks, Devon.
-
Payment received and files have been sent.
-
Well i dont actually need another users table, i just dont know how to make a new table that has the IDs in it. Like i for mods, instead of adding the columns in the users table, create a new table. and each user would have their own stuff. ya know? How do i go about doing that?