
gideon prewett
Members-
Posts
205 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by gideon prewett
-
Re: V2 index.php ty karlos
-
Re: V2 index.php ok i updated it u now cant access the bank when in hosp or jail <?php $housequery=1; include "globals.php"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); $m=$db->query("SELECT * FROM users WHERE userid='{$ir['married']}'"); $par=$db->fetch_row($m); if($ir['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url] [[url='partner.php']Manage[/url]]"; } else { $partner= "<font color=red>N/A</font>"; } print <<<OUT <table cellspacing="1" border="0" cellpadding="3" class="table" width="70%"> <tr><td colspan="2" class="h">[b]General Information[/b]</td></tr> {$geninf} <tr> <td>[b]Name:[/b] {$ir['username']}</td> <td>[b]Crystals:[/b] {$cm}</td> </tr> <tr> <td>[b]Level:[/b] {$ir['level']}</td> <td>[b]Exp:[/b] {$exp}%</td> </tr> <tr> <td>[b]Money:[/b] $fm</td> <td>[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}</td> </tr> <tr> <td>[b]Property:[/b] {$ir['hNAME']}</td> <td>[b]Married:[/b] $partner</td> </tr> OUT; $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); print <<<OUT <tr> <td class="h" colspan="2">[b]Stats Info[/b]</td></tr> <tr> <td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td> <td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td> </tr> <tr> <td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td> <td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td> </tr> <tr> <td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td> <td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td> </tr> </table> OUT; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr color='lime'>[b]Personal Notepad Updated![/b]"; } print "<hr color='lime'>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>"; if($ir['jail'] or $ir['hospital']) { die("Your Bank cannot be accessed while in jail or hospital."); } print "<hr color='lime'><h3>Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>19999) { print "Congratulations, you bought a bank account for \$20,000! [url='index.php']Start using my account[/url]"; mysql_query("UPDATE users SET money=money-20000,bankmoney=0 WHERE userid=$userid",$c); } else { print "You do not have enough money to open an account. [url='index.php']Back[/url]"; } } else { print "Open a bank account today, just \$20,000! [url='index.php?buy']> Yes, sign me up![/url]"; } } function index() { global $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 0.3%. <table width='75%' border='2' bordercolor='#lime'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 0% of the money you deposit, rounded up. The maximum fee is \$0.<form action='index.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='index.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*0/100); if($fee > 0) { $fee=0; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",$c); print "You hand over \${$_POST['deposit']} 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='index.php']> Back[/url]"; } } function withdraw() { global $ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid",$c); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='index.php']> Back[/url]"; } } $h->endpage(); ?>
-
Re: V2 index.php well i wanted to add my crystal bank aswell but i couldnt figure out what was giving me the error
-
Re: V2 index.php nice 1 illusions and ty im trying my best and posting anything i think is good enough on here as a free mod
-
Re: V2 index.php oh cool :-D i didnt think anybody would like it but its the best ive got atm
-
Re: V2 index.php ty for the conversion saves me a job
-
Re: V2 index.php well its the index the bank and i took the table from loggedin.php as i said im a noob and im still learning
-
this is a index that i made for my game allot of it is edits of standard mods but I'm happy with it being a noob :-D <?php $housequery=1; include "globals.php"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); $m=$db->query("SELECT * FROM users WHERE userid='{$ir['married']}'"); $par=$db->fetch_row($m); if($ir['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url] [[url='partner.php']Manage[/url]]"; } else { $partner= "<font color=red>N/A</font>"; } print <<<OUT <table cellspacing="1" border="0" cellpadding="3" class="table" width="70%"> <tr><td colspan="2" class="h">[b]General Information[/b]</td></tr> {$geninf} <tr> <td>[b]Name:[/b] {$ir['username']}</td> <td>[b]Crystals:[/b] {$cm}</td> </tr> <tr> <td>[b]Level:[/b] {$ir['level']}</td> <td>[b]Exp:[/b] {$exp}%</td> </tr> <tr> <td>[b]Money:[/b] $fm</td> <td>[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}</td> </tr> <tr> <td>[b]Property:[/b] {$ir['hNAME']}</td> <td>[b]Married:[/b] $partner</td> </tr> OUT; $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); print <<<OUT <tr> <td class="h" colspan="2">[b]Stats Info[/b]</td></tr> <tr> <td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td> <td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td> </tr> <tr> <td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td> <td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td> </tr> <tr> <td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td> <td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td> </tr> </table> OUT; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr color='lime'>[b]Personal Notepad Updated![/b]"; } print "<hr color='lime'>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>"; print "<hr color='lime'><h3>Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>19999) { print "Congratulations, you bought a bank account for \$20,000! [url='index.php']Start using my account[/url]"; mysql_query("UPDATE users SET money=money-20000,bankmoney=0 WHERE userid=$userid",$c); } else { print "You do not have enough money to open an account. [url='index.php']Back[/url]"; } } else { print "Open a bank account today, just \$20,000! [url='index.php?buy']> Yes, sign me up![/url]"; } } function index() { global $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 0.3%. <table width='75%' border='2' bordercolor='#lime'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 0% of the money you deposit, rounded up. The maximum fee is \$0.<form action='index.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='index.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*0/100); if($fee > 0) { $fee=0; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",$c); print "You hand over \${$_POST['deposit']} 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='index.php']> Back[/url]"; } } function withdraw() { global $ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid",$c); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='index.php']> Back[/url]"; } } $h->endpage(); ?> i don't want to hear oh i can do better Ive added this because i haven't seen many index's being posted and I'm trying to give something back
-
Re: New Houses Mod [Mccodes V2] i tryed to make it so u can see who is renting ur house and it worked ok but i got this error Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/benan/public_html/houses.php on line 306 at he top of the page??? line 306 is while($r = mysql_fetch_assoc($houses))
-
Re: Have any mod ideas post here! im sure this mod is very easy but im not sure how to do it basicly like apear offline on msn but only for admin that way when ur testing mods u have added ur not getting bugged because nobody knows ur there
-
Re: V2 basic explore thanks guys im still learning and i will remember what u said
-
this is my first mod and i have a small problem 1 of the sections of the table wont go where its saposed to if someone can fix it everybody is welcome to use it exsplore.php <?php include "globals.php"; if($ir['hospital'] && $ir['user_level'] != 2) { die("You cant explore while you are in the infirmary > [url='index.php']Back[/url]"); $h->endpage(); exit; } if($ir['jail'] && $ir['user_level'] != 2) { die("You cant explore while you are in the jail! > [url='index.php']Back[/url]"); $h->endpage(); exit; } $tresder=(int) rand(100,999); print "<center>[b]You begin exploring the Town you're in, you see; [/b] <table width=85% border='1' align='center'><tr bgcolor='black'><th>Market District</th><th>Financial Services</th><th>Gang Alley</th></tr><tr><td align=center valign=center> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] [url='cmarket.php']Crystal Market[/url]</td> <td align=center valign=center> [url='monorail.php']Travel Agency[/url] [url='marital.php']Marriage Service[/url] [url='estate.php']Housing[/url] [url='bank.php']Banking Services[/url] [url='crystalbank.php']Crystal Banking[/url]"; print "</td><td align=center valign=center> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='stockmarket.php']Stock Market[/url] [url='fedjail.php']Federal Dungeon[/url] <tr bgcolor='black'><th>Statistics Department</th><th>Casino</th><th>Mysterious Alley</th></tr> <tr>"; print "</td><td align=center valign=center> [url='userlist.php']User List[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Hall of Fame[/url] [url='stats.php']{$set['game_name']} Statistics[/url] [url='usersonline.php']Players Online[/url]</td> <td align=center valign=center> [url='slotsmachine.php']Slots Machine[/url] [url='roulette.php?']Roulette[/url] [url='cups.php?']Guess The Card[/url] [url='lucky.php']Lucky Boxes[/url]</td></tr> <td align=right valign=right> [url='crystaltemple.php']Crystal Exchange[/url] [url='battletent.php']Combat Arena[/url]"; print "</td></tr><tr bgcolor='black'><th colspan='3'>Referal Link</th></tr><tr><td colspan='3'><center>This is your referal link: [b]http://{$domain}/register.php?REF=$userid[/b] Every signup from this link earns you two valuable crystals!</center></td></tr></table>"; $h->endpage(); ?> im looking for help and constructive critisisum not to be slaged off if u like it use it if not dont
-
Re: Permenant Increase? i just tryed that and it dont work if u leave the item blank of any use u cant use it
-
Re: [Request] Gang Addon well now people are just picking n words i like the idea but i would do it so only clans can rob other clans safe GP
-
Re: [v2]Attack Ban[v2] i tried editing the fed jail to show users that are attack banned and Ive got it to show the user who is attack banned but i cant get it to show the resion do i need a sq table?
-
[mccode v2] Advanced Crystal Temple.
gideon prewett replied to danger boy's topic in Free Modifications
Re: [mccode v2] Advanced Crystal Temple. i don't know if its anything Ive done but when i refill brave or will it gives me the refill but dose not charge me did anybody else get this problem :? -
[mccode v2] Advanced Crystal Temple.
gideon prewett replied to danger boy's topic in Free Modifications
Re: [mccodes v2] Advanced Crystal Temple. this looks like a good mod ive been thinking of doing somthing similar myself i havent added it to my game yet but i will have a look today nice job :-) if its not allready a good edit would be to be able to change all the prices in the staff pannel but if it is allready forget that last comment lol -
Re: [mccode v2] PJIRC Chat Mod PJIRC.rar (1488KB) Virus threat detected. The virus could not be cleaned. Please run the virus scan on your machine.
-
Re: [mccode V1 V2] Chat Mod screen shot please