Jump to content
MakeWebGames

ishmell

Members
  • Posts

    299
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by ishmell

  1. Re: [Mccodes V2] improved schooling works off clicks not days Its a good idea but imagine hundreds of people doing this. Your server bandwidth is gonna go by fast. I prefer the old idea but this one is still a decently good one if you dont worry about server bandwidth.
  2. Re: [mccode v2] Banner image selector Oh i get it now. Pretty cool...
  3. Re: [mccode v2] Banner image selector Kinda strange mod, what goes into the banner data field of hte table?
  4. Re: [mccode v2] My Orginization & My Production Simple solution...dont be lazy lol.
  5. Re: [mccode v2] My Orginization & My Production Thats strange it seems to be working perfectly for me and your the first one with this complain after a couple others. Could it be your servers restrictions? is anyone else having this problem? And its clearly described both on the main part of this post and in the zip to what this mod does. :-)
  6. Re: [mccode v2] My Orginization & My Production   Yes it is... It's possible to edit all mods to match your game Yes, its easy to customize it to your games needs. Version 2.0 coming soon...
  7. Re: [mccode v2] My Orginization & My Production I see the new forum is up. I just wanted to sort of remind people that this mod is here.
  8. Re: The Standards of CE Mod! Im fairly new to the forum. I hardly ever post just see what people have to post. I have posted two mods in my time here. One I would say im quite proud of. I defiantly agree to the mod approval idea for there is to much spam and to much stealing/useless junk being posted.
  9. Re: My Orginization & My Production (V2) Yep the clean looks good gj killah. :wink: version 2.0 coming soon
  10. Re: My Orginization & My Production (V2) Oh okay I updated the ReadMe file in the package link below. It should fix your problem... :wink: http://rapidshare.com/files/150096385/orgpdmod.rar.html
  11. Re: My Orginization & My Production (V2) Ah yes terribly sorry I was tired and forgot all about that. Its all in the new uploaded file http://rapidshare.com/files/149961498/orgpdmod.rar.html Thanks for letting me know.
  12. Re: My Orginization & My Production (V2) Hello, a link to the new version of this mod is below. It is now version 1.8. This version now has troops stats and more security than before along with a couple little bug fixes. With this version you will need to keep your troops happy in order to succeed in productions. The higher a persons troop stats balance and happiness is the more successful and more money they will make in productions. The other stats dont do much yet but will in version 2.0 my next release. Some things you can expect in version 2.0. Max Troops for hiring. And if you upgrade your sacred hangout for your troops, the Max Troops goes up. Also a system that affects the outcomes of user battles according to there troops and what there stats are at. Thats all for now. Feel free to leave comments, questions and suggestions. Version 1.8 Mod Link: http://rapidshare.com/files/149822019/orgpdmod.rar.html
  13. Re: My Orginization & My Production (V2) Oh im sure others have thought of this sort of thing before and im sure there are many things similar to it but this code really is mine. I spent hours on it working out tweaks.
  14. Re: My Orginization & My Production (V2) :-o Yes I have coded this. :roll:
  15. Re: My Orginization & My Production (V2) Well a few more things have been updated to the mod. It is now a version 1.4 mod. I have added some more security features along with a max amount of troops being able to be sent out. 100 is the max amount of troops a player can send out. This can easily be changed if you really want. Thats all for now, stay tunned for more features. :roll:
  16. Re: My Orginization & My Production (V2) Alrighty, I made a quick update on the mod. I modified my post with the new mod. There hasnt been much done to it yet just a couple typos and a few minor errors that I came across now fixed. Also now energy is required to hire troops for the users. Oh and instead of text saying click to check productions i made a little image to do that. I also gave you guys the image im currently using for that. This mod is now at version 1.2.
  17. Re: My Orginization & My Production (V2) Yes your correct killah and thank you for pointing that out. But as I said earlier the script was made to fit my site which requires me to do that due to some reasons I would rather not go into. But yes you are correct. Ill try to have a couple new features out for this mod making it version 2.0 in a couple days. Im open to comments and any questions you may so have. :mrgreen:
  18. Re: My Orginization & My Production (V2) Sounds good, thats the beauty of the script it doesnt take anything from the mysql or place anything in the mysql other that updating your user info. So in other words it hardly interacts with mysql. Plus only digits will work when hiring troops or using them for production.
  19. Script Has Been Tested Numerous Times!!! Hello, the fallowing scripts I made from scratch for my mccodes v2 game. You are allowed to use this script however you so may please but do not remove the credits nor claim it as yours. This script I call My Ogrinization & My Production for v2. This script was made to fit my game so you may have to make a few adjustments to make it fit yours but hopefully not much. I tried to make it most compatible as possible. NEWER VERSION MODS AVAILABLE BELOW!!! Version 1.8 MOD: http://rapidshare.com/files/150096385/orgpdmod.rar.html Warning: Be sure to save a backup before attempting to adjust anything to the script. I am not helled responsible for anything abnormal that happens to your game. Alrighty, to start things off you will need to create 4 fields to the users table. 1. bodyguards int 11 0 2. hustlers int 11 0 3. bootleggers int 11 0 4. whores int 11 0 Thats all there is to do MySql wise. Now you must create two pages. One page is orginization.php and the other is production.php. And save the picture below to your server and name it production.jpg. In orginization.php put in the fallowing code. <? //This script was made by illes ignath (a.k.a ishmell) //Please do not delete this credit. //Feel free to edit the script however you may please. //This is just version 1.4 and ill be sure to add more features to it over time. //Thats all for now, I hope you enjoy it. include "globals.php"; global $db,$c,$ir, $set; ?> <h2>Your Orginization</h2> <div align="left"> <p align="center"><span class="style7 style8">This is your Wise Guy Union Orginization page. It allows you to train troops to help produce products for your orginization. Also owning certain troops will help you both offensive and defensive when fighting someone.</span> [b]Note:[/b] That it requires energy to hire troops. <span class="style7 style8"> [b]Bodyguard=[/b]$25000, [b]Hustler=[/b]$8000, [b]Bootlegger=[/b]$5000, [b]Whore=[/b]$3000</span> <label> <a href="production.php" target="_blank"> [img=production.jpg] </a> </label> </p> <div align="center"> <form action="orginization.php" method="post"> <table width="200" border="1"> <tr> <td width="81">[b]Bodyguards:[/b]</td> <td width="103"><div align="center"><? print "{$ir['bodyguards']}"; ?></div></td> </tr> <tr> <td><div align="center"><? print "<input name='bodyguards' value='Purchase' type='submit' />"; ?></div></td> <td><div align="center"><? print "<input type='text' size='10' name='bodyguard'"; ?></div></td> </tr> </table> <table width="200" border="1"> <tr> <td>[b]Hustlers:[/b]</td> <td><div align="center"><? print "{$ir['hustlers']}"; ?></div></td> </tr> <tr> <td><div align="center"><? print "<input name='hustlers' value='Purchase' type='submit' />"; ?></div></td> <td><div align="center"><? print "<input type='text' size='10' name='hustler'"; ?></div> </td> </tr> </table> <table width="200" border="1"> <tr> <td>[b]Bootleggers:[/b]</td> <td><div align="center"><? print "{$ir['bootleggers']}"; ?></div></td> </tr> <tr> <td><div align="center"><? print "<input name='bootleggers' value='Purchase' type='submit' />"; ?></div></td> <td><div align="center"><? print "<input type='text' size='10' name='bootlegger'"; ?></div> </td> </tr> </table> <table width="200" border="1"> <tr> <td>[b]Whores:[/b]</td> <td><div align="center"><? print "{$ir['whores']}"; ?></div></td> </tr> <tr> <td><div align="center"><? print "<input name='whores' value='Purchase' type='submit' />"; ?></div></td> <td><div align="center"><? print "<input type='text' size='10' name='whore'"; ?></div></td> </tr> </table> <? if($ir['energy'] < 6) { print "You don't have enough energy to hire troops!"; $h->endpage(); exit; } else { //this is for getting bodyguards $userid = $ir['userid']; $bodynum = $_POST['bodyguard']; $bodycount = $bodynum*25000; if($ir['money'] < $bodycount) { print "You don't have enough money to buy troops!"; $h->endpage(); exit; } else if ($bodynum >=1) { $db->query("UPDATE users SET energy=energy-6 WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$bodycount WHERE userid=$userid"); $db->query("UPDATE users SET bodyguards=bodyguards+$bodynum WHERE userid=$userid"); print "You have purchased $bodynum bodyguards for $$bodycount."; } //this is for getting hustlers $userid = $ir['userid']; $hustnum = $_POST['hustler']; $hustcount = $hustnum*8000; if($ir['money'] < $hustcount) { print "You don't have enough money to buy troops!"; $h->endpage(); exit; } else if ($hustnum >=1) { $db->query("UPDATE users SET energy=energy-6 WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$hustcount WHERE userid=$userid"); $db->query("UPDATE users SET hustlers=hustlers+$hustnum WHERE userid=$userid"); print "You have purchased $hustnum hustlers for $$hustcount."; } //this is for getting bootleggers $userid = $ir['userid']; $bootnum = $_POST['bootlegger']; $bootcount = $bootnum*5000; if($ir['money'] < $bootcount) { print "You don't have enough money to buy troops!"; $h->endpage(); exit; } else if ($bootnum >=1) { $db->query("UPDATE users SET energy=energy-6 WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$bootcount WHERE userid=$userid"); $db->query("UPDATE users SET bootleggers=bootleggers+$bootnum WHERE userid=$userid"); print "You have purchased $bootnum bootleggers for $$bootcount."; } //this is for getting whores $userid = $ir['userid']; $whonum = $_POST['whore']; $whocount = $whonum*3000; if($ir['money'] < $whocount) { print "You don't have enough money to buy troops!"; $h->endpage(); exit; } else if ($whonum >=1) { $db->query("UPDATE users SET energy=energy-6 WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$whocount WHERE userid=$userid"); $db->query("UPDATE users SET whores=whores+$whonum WHERE userid=$userid"); print "You have purchased $whonum whores for $$whocount."; } } ?> In production.php put in the fallowing code. <? //This script was made by illes ignath (a.k.a ishmell) //Please do not delete this credit. //Feel free to edit the script however you may please. //This is just version 1.4 and ill be sure to add more features to it over time. //Thats all for now, I hope you enjoy it. include "globals.php"; global $db,$c,$ir, $set; ?> <h2>Your Orginization's Production/Business</h2> </p> <div align="center"> <form action="production.php" method="post"> [b]Production/Business:[/b] <table width="261" border="1"> <tr> <td width="123">[b]Protection Agency[/b]</td> <td width="123"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td width="122">The protection agency will allow you to send out your body guards and offer punks protection for a fee. Its a great way to make money.</td> </tr> <tr> <td>[b]Bodyguards: <? print "{$ir['bodyguards']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='bodygs'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='bodyprotect' value='Begin Protection' type='submit' />"; ?></div></td> </tr> </table> <? //for bodyguards $bodygs = $_POST['bodygs']; $bodyreward = $bodygs*rand(15000,30000); $bodyrand = rand(0,$bodygs); if ($ir['bodyguards'] < $bodygs) { print "Sorry, you dont have that many bodyguards."; $h->endpage(); exit; } else { if ($bodygs > 100) { print "Sorry, but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($bodygs >= 1) { $db->query("UPDATE users SET money=money+$bodyreward WHERE userid=$userid"); $db->query("UPDATE users SET bodyguards=bodyguards-$bodyrand WHERE userid=$userid"); print "You sent out your bodyguards and made yourself $$bodyreward. Unfortunately $bodyrand bodygaurds never made it back alive."; } } }?> <table width="261" border="1"> <tr> <td width="148">[b]Smuggling Narcotics[/b]</td> <td width="97"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td>Narcotics is huge in the area so smuggling them can get you really rich. Just send out some hustlers and they will take care of it for you.</td> </tr> <tr> <td>[b]Hustlers: <? print "{$ir['hustlers']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='hustlegs'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='hustnar' value='Begin Smuggling' type='submit' />"; ?></div></td> </tr> </table> <? //for hustlers $hustlegs = $_POST['hustlegs']; $hustlereward = $hustlegs*rand(5000,12000); $hustlerand = rand(0,$hustlegs); if ($ir['hustlers'] < $hustlegs) { print "Sorry, you dont have that many hustlers."; $h->endpage(); exit; } else { if ($hustlegs > 100) { print "Sorry but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($hustlegs >= 1) { $db->query("UPDATE users SET money=money+$hustlereward WHERE userid=$userid"); $db->query("UPDATE users SET hustlers=hustlers-$hustlerand WHERE userid=$userid"); print "You sent out your hustlers and made yourself $$hustlereward. Unfortunately $hustlerand hustlers never made it back alive."; } } } ?> <table width="261" border="1"> <tr> <td width="112">[b]Loan Shark[/b]</td> <td width="133"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td>People these days are always in need of some extra cash. When the banks cant provide they will come to you. So send out some bootleggers and make some nice money.</td> </tr> <tr> <td>[b]Bootleggers: <? print "{$ir['bootleggers']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='bootlegs'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='bootnar' value='Begin Loanshark' type='submit' />"; ?></div></td> </tr> </table> <? //for bootleggers $bootlegs = $_POST['bootlegs']; $bootlereward = $bootlegs*rand(3000,10000); $bootlerand = rand(0,$bootlegs); if ($ir['bootleggers'] < $bootlegs) { print "Sorry, you dont have that many bootleggers."; $h->endpage(); exit; } else { if (bootlegs > 100) { print "Sorry but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($bootlegs >= 1) { $db->query("UPDATE users SET money=money+$bootlereward WHERE userid=$userid"); $db->query("UPDATE users SET bootleggers=bootleggers-$bootlerand WHERE userid=$userid"); print "You sent out your bootleggers and made yourself $$bootlereward. Unfortunately $bootlerand bootleggers never made it back alive."; } } } ?> <table width="261" border="1"> <tr> <td width="110">[b]Pimping[/b]</td> <td width="135"></td> </tr> <tr> <td>[b]Description:[/b]</td> <td>There are some needy men out there always look for some pussy. Your one of the top pimps around so start sending your whores out there to do what they do best.</td> </tr> <tr> <td>[b]Whores: <? print "{$ir['whores']}"; ?>[/b]</td> <td><div align="center"><? print "<input type='text' size='10' name='whoregs'"; ?></div></td> </tr> <tr> <td> </td> <td><div align="center"><? print "<input name='whonar' value='Begin Pimping' type='submit' />"; ?></div></td> </tr> </table> <? //for whores $whoregs = $_POST['whoregs']; $whorereward = $whoregs*rand(1000,8000); $whorerand = rand(0,$whoregs); if ($ir['whores'] < $whoregs) { print "Sorry, you dont have that many whores."; $h->endpage(); exit; } else { if ($whoregs > 100) { print "Sorry but you cant have more than 100 troops sent out in productions."; $h->endpage(); exit; } else { if ($whoregs >= 1) { $db->query("UPDATE users SET money=money+$whorereward WHERE userid=$userid"); $db->query("UPDATE users SET whores=whores-$whorerand WHERE userid=$userid"); print "You sent out your whores and made yourself $$whorereward. Unfortunately $whorerand whores never made it back alive."; } } } ?> What does this script do? This script allows your users to hire bodyguards, hustlers, bootleggers and whores. They can then get these hired people to do them production/business jobs allowing the user to make some money. What features can we expect to see for this mod? You can expect to see this mod more graphically set up. You can also expect to see the troops you have hired affecting your battle outcomes. Along with Orginization ranks, troop stats and allot more indepth updates to the mod. Are there screenshots I can see? Not at the moment because im in a rush but ill be sure to take some screenshots and place them up on this thread. What version is this right now and what are the new features? Currently this is the version 1.4 mod. It dos everything like the version 1.0 mod did but a couple little typos and errors fixed up. Also this current version requires energy to hire troops. More security features added and a max amount of 100 troops allowed to be sent out on production. Once again this code was made to fit my game so you may have to change a couple things to help fit your game. Ill stay tunned to comments and questions. Thank you for your time and ill be sure to update this thread when I come out with some new features to this script and once I make some screenshots. Edit:// I managed to find a couple min of time so here are two screenshots. My Orginization My Production
  20. Re: Different User Profile & View User Page If you look close it has been changed up. And no the normal users arnt able to see the ip's only staff. The screens are taken from an admins view.
  21. Well this is one of my first coding changes I have done myself with mc codes v2. Its very easy to set up and ill provide screenshots in a bit as well. Just fallow the instructions below to set it up. Open viewuser.php and replace with this... <? include "globals.php"; $housequery=1; $db->connect(); $userst=$db->query("SELECT * FROM userstats"); $usa=$db->fetch_row($userst); $ts=$usa['strength']+$usa['agility']+$usa['guard']+$usa['labour']+$usa['IQ']; $usa['strank']=get_rank($usa['strength'],'strength'); $usa['agirank']=get_rank($usa['agility'],'agility'); $usa['guarank']=get_rank($usa['guard'],'guard'); $usa['labrank']=get_rank($usa['labour'],'labour'); $usa['IQrank']=get_rank($usa['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $usa['strength']=number_format($usa['strength']); $usa['agility']=number_format($usa['agility']); $usa['guard']=number_format($usa['guard']); $usa['labour']=number_format($usa['labour']); $usa['IQ']=number_format($usa['IQ']); $ts=number_format($ts); $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($r['gympass'] == 0) { $gym="<font color=red>No[/b]"; } else if($r['gympass'] == 1) { $gym="<font color=green>Yes</font>";} if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $hpopp=100-$hpperc; $enopp=100-$enperc; if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print " [img={$ir[] <table> <tr> <td>Name:</td> <td>{$r['username']} [{$r['userid']}] $d</td> </tr> <tr> <td>Prey Points:</td> <td>{$r['money']}</td> </tr> <tr> <td>User Level:</td> <td>$userl</td> </tr> <tr> <td>Duties:</td> <td>{$r['duties']}</td> </tr> <tr> <td>Gender:</td> <td>{$r['gender']}</td> </tr> <tr> <td>Days Old:</td> <td>{$r['daysold']}</td> </tr> <tr> <td>Last Action:</td> <td>$str</td> </tr> <tr> <td>Online:</td> <td>$on</td> </tr> <tr> <td>Gym Access:</td> <td>$gym</td> </tr> <tr> <td>Location:</td> <td>{$r['cityname']}</td> </tr> <tr> <td>Property:</td> <td>{$r['hNAME']}</td> </tr> <tr> <td>Health:</td> <td><img src=bar_left.gif height=13><img src=bargreen.gif width=$hpperc height=13><img src=barred.gif width=$hpopp height=13><img src=bar_fil_end.gif height=13></td> </tr> <tr> <td>Energy:</td> <td><img src=bar_left.gif height=13><img src=bluebar.gif width=$enperc height=13><img src=barred.gif width=$enopp height=13><img src=bar_fil_end.gif height=13></td> </tr> <tr> <td>Strength:</td> <td>{$usa['strength']} [Ranked: {$usa['strank']}]</td> </tr> <tr> <td>Agility:</td> <td>{$usa['agility']} [Ranked: {$usa['agirank']}]</td> </tr> <tr> <td>Gaurd:</td> <td>{$usa['guard']} [Ranked: {$usa['guarank']}]</td> </tr> <tr> <td>Labour:</td> <td>{$usa['labour']} [Ranked: {$usa['labrank']}]</td> </tr> <tr> <td>IQ:</td> <td> {$usa['IQ']} [Ranked: {$usa['IQrank']}]</td> </tr> </table> Total Stats: {$ts} [Ranked: $tsrank]</p> <table> <tr> <td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]]</td> <td>[Fight Level: {$ir['level']}]</td> </tr> <tr> <td>[[url='attack.php?ID={$r[']Attack[/url]]</td> <td>[Gang:"; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A]"; } print "</td> </tr> </table>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph']=@gethostbyaddr($r['lastip']); $r['lastiph']=checkblank($r['lastiph']); $r['lastip_loginh']=@gethostbyaddr($r['lastip_login']); $r['lastip_loginh']=checkblank($r['lastip_loginh']); $r['lastip_signuph']=@gethostbyaddr($r['lastip_signup']); $r['lastip_signuph']=checkblank($r['lastip_signuph']); print "<h3>Internet Info</h3><table width='100%' border='0' cellspacing='1' class='table'> <tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr> <tr><td class='h'>Last Hit</td><td>$r[lastip]</td><td>$r[lastiph]</td></tr> <tr><td class='h'>Last Login</td><td>$r[lastip_login]</td><td>$r[lastip_loginh]</td></tr> <tr><td class='h'>Signup</td><td>$r[lastip_signup]</td><td>$r[lastip_signuph]</td></tr></table>"; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form>"; } else { print " "; } print "</tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h->endpage(); ?> Then make a file called profile.php and put in the fallowing code... <? $housequery=1; include "globals.php"; $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); $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $hpopp=100-$hpperc; $enopp=100-$enperc; $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($r['gympass'] == 0) { $gym="<font color=red>No[/b]"; } else if($r['gympass'] == 1) { $gym="<font color=green>Yes</font>";} if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print " [url='preferences.php']Preferences[/url] || [url='helptutorial.php']Help Tutorial[/url] || [url='gamerules.php']Game Rules[/url] [img={$ir[] <table> <tr> <td>Name:</td> <td>{$ir['username']}</td> </tr> <tr> <td>Prey Points:</td> <td>{$ir['money']}</td> </tr> <tr> <td>User Level:</td> <td>$userl</td> </tr> <tr> <td>Duties:</td> <td>{$ir['duties']}</td> </tr> <tr> <td>Gender:</td> <td>{$ir['gender']}</td> </tr> <tr> <td>Days Old:</td> <td>{$ir['daysold']}</td> </tr> <tr> <td>Last Action:</td> <td>$str</td> </tr> <tr> <td>Online:</td> <td>$on</td> </tr> <tr> <td>Gym Access:</td> <td>$gym</td> </tr> <tr> <td>Location:</td> <td>{$r['cityname']}</td> </tr> <tr> <td>Property:</td> <td>{$ir['hNAME']}</td> </tr> <tr> <td>Health:</td> <td><img src=bar_left.gif height=13><img src=bargreen.gif width=$hpperc height=13><img src=barred.gif width=$hpopp height=13><img src=bar_fil_end.gif height=13></td> </tr> <tr> <td>Energy:</td> <td><img src=bar_left.gif height=13><img src=bluebar.gif width=$enperc height=13><img src=barred.gif width=$enopp height=13><img src=bar_fil_end.gif height=13></td> </tr> <tr> <td>Strength:</td> <td>{$ir['strength']} [Ranked: {$ir['strank']}]</td> </tr> <tr> <td>Agility:</td> <td>{$ir['agility']} [Ranked: {$ir['agirank']}]</td> </tr> <tr> <td>Gaurd:</td> <td>{$ir['guard']} [Ranked: {$ir['guarank']}]</td> </tr> <tr> <td>Labour:</td> <td>{$ir['labour']} [Ranked: {$ir['labrank']}]</td> </tr> <tr> <td>IQ:</td> <td> {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td> </tr> </table> Total Stats: {$ts} [Ranked: $tsrank]</p> <table> <tr> <td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]]</td> <td>[Fight Level: {$ir['level']}]</td> </tr> <tr> <td>[[url='attack.php?ID={$r[']Attack[/url]]</td> <td>[Gang:"; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A]"; } print "</td> </tr> </table>"; } $h->endpage(); ?> Then open up mainmenu.phpand add the fallowing somewhere... [url='profile.php?u={$ir[']My Profile[/url] And you should be all set. Wasnt that easy? The screenshots shall be displayed below... My Profile Page Screeny: View User Screeny: Feel free to adjust it to your needs.
  22. Re: User Shops I have no idea who arson is and I forgot to mention ill be needing this for v2.
  23. Im in need of some scripts to create each user there own personal shop. They need to be able to place items of theres in that shop and price it as they want. Also they can name there shop, give a description and upgrade to allow more items to be stored in the shop. And the top shops would be in the hall of fame ordered by the amount they been upgraded. I will pay $50 to the person who can provide this.
  24. Re: Simple Trades [V2] Requesting to trade and starting a trade works but then once you accept the trade it always says your friend does not meet the requirements when they really do.
  25. Re: BBCode Gradient Text Generator --- FREE Mod This is very nice mate. :-)
×
×
  • Create New...