-
Posts
2,701 -
Joined
-
Last visited
-
Days Won
88
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
try this one <?php $housequery=1; session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm = money_formatter($ir['crystals'], ''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $exp=(int)($ir['exp']/$ir['exp_needed']*100); $exp_n=(int)($ir['exp_needed']); print <<<OUT <table cellspacing="1" border="1" cellpadding="3" class="table" width="70%"> <tr><td colspan="2"><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}% ({$exp}/{$exp_n})</td> </tr> <tr> <td><b>Money:</b> $fm</td> <td><b>HP:</b> {$ir['hp']}/{$ir['maxhp']}</td> </tr></br> 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+labou r+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 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; print <<<OUT <table cellspacing="1" border="1" cellpadding="3" class="table" width="70%"> <tr><td colspan="2"><b>Attack Statistics</b></td></tr> <tr> <td><b>Total Attacks:</b> {$r['atotal']}</td> <td><b>Attacks Won:</b> {$r['awon']}</td> </tr> <tr> <td><b>Attacks Lost: {$r['alost']}</td> <td><b>Times Attacked: {$r['tattacked']}</td> </tr> <tr> <td><b>People Left: {$r['pleft']}</td> <td><b>People Hospilatized: {$r['phosp']}</td> </tr> <tr> <td><b>People Mugged: {$r['pmugged']}</td> <td><b>Money Mugged: \${$r['mmugged']}</td> </tr> </table> OUT; print "<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! <a href='index.php'>Start using my account</a>"; 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. <a href='index.php'>Back</a>"; } } else { print "Open a bank account today, just \$20,000! <a href='index.php?buy'> Yes, sign me up!</a>"; } } 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='?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='?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> <a href='index.php'> Back</a>"; } } 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> <a href='index.php'> Back</a>"; } } $h->endpage(); ?> see if that works
-
no it just means on the file thats running it cannot understand where the function has come from so it always blame a file that asked for it.. This doesnt mean the resulting named file is the problem loooking at your code it seems to be asking for index.php all the time whats the actual name of the file the script above belongs too ?
-
what about wizwarz or wizwars
-
seker line 141 needs to be function index() and 112 needs to be index();
-
Official make a wish thread: Request an official mod
Uridium replied to Sporto's topic in New Worlds Engine
Id personally like to see health potions that just reduce hospital stay time rather than taking one and being released from hospital instantly small potion = reduces hosp stay by 5 mins medium =reduces hosp stays by 30 mins and so on.... -
Revamped Individual Player Shops Mod + Future Updates [$10]
Uridium replied to Arson's topic in Paid Modifications
Nicely done Arson :) -
refreshes when page refreshes...
-
Nicely done matey :) + 100
-
Ive been tinkering with the NWE hospital and jail pages. the 2 images below show the old and updated versions as always feedback is always welcome :) Newer version shows a new time stamp and also lists everyone who is also in hospital when your in yourself or just visiting
-
Happy Birthday DJ ya old sod have a great day matey and plenty more to come :)
-
With V2 you had something to build upon but with V3 you cant locate one file to basically help you build on another thats my rant over :)
-
Youd be silly at this stage to do away with V2 its been your main income and you would be wise to build on it,,
-
you can replicate all IE versions to IE7 which was probably a more stable version look into google for emulate IE7
-
Im still picking my nose and flicking it at Paul Evans ;)
-
This page should show error and solution http://takien.com/513/how-to-fix-function-eregi-is-deprecated-in-php-5-3-0.php
-
Highly recommended not to be taken likely this guys talents are quite rare on here
-
All engines are complicated to begin with not everyone codes the same I have to admit i was bemused by the NWE but so was i when i first saw other engines. ive made 6 mods for this engine so far and have too say once you get the hang of the routines its quite simple.. Infact id go as far to say that in comparison NWE is easier to work with than MCC
-
ShizzleNizzle or WhizzBang => Paypal fraud
Uridium replied to a_bertrand's topic in Collaboration Experiences
did a bit of checking on this person and he seems to be using all sorts of email addresses the [email protected] belongs to Alina Ahmad Lives in Drammen, Norway however one location did tally with the IP address -
re-opened for other comments by request..
-
Closed but viewable for future reference :)
-
Cold tried that to no avail... However HauntedDawg came to the rescue was something to do with Internet Explorer and a Certificate thing in the advanced section that needed to be turned off CHEEERS HAUNTED you Brilliant lad you ;)
-
hey guys hope someone can help me cos google is **** When i try connect to windows live messenger (WLM) I get a connection report about Key Ports with an excalamation next to it.. Ive tried a few various fixes from what google has offered but to no avail and still cant connect to WLM im using window7 and the latest version of WLM can anyone shed some light on a possible fix...
-
Just thought id see what everyone is upto in the New Worlds Engine scripting/development
-
VERRRRRY bad idea not everyone likes music on sites so always make sure you give your users a choice to turn off the player But in all honest i wouldnt have one if any users are still on dial up you'll kill em..
-
dont quote me but try on line 43 } elseif (isset($_GET['maxlevel'])) {