-
Posts
2,686 -
Joined
-
Last visited
-
Days Won
81
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
mccode-v2 Reset password + Secret question before password is sent.
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Reset password + Secret question before password is sent. good thinking :) i'll do it so both questions have to match -
I liked the idea of a Password Retrivel system on a game but it dawned on me that as players get to know one another and sometimes fall out they may give their email addy away to a friend quite harmlessley only to find with the Password Retrieval from old they could just Pissss people off by entering their Addy all the time to send out new passwords...... So whys this one better ? Well this one still uses the email system as before but on registration users Now have to enter a Secret question so they can retrieve passwords. Even if a user gets their email address correct and the Secret Question Wrong then No email will be sent to a user saying a password reset occured.. Both the email and the secret Question have to be exact.. Will post in a few moments when i get the files ive adjusted together.....
-
Re: Battle ladder [Mccodes V2] Yep gotta agree the Editing of posts is a bit silly i would recommend 24 hours from posting the script so you can fine tune faults you find later... But to add my script again would just confuse anyone who hasnt read this post page and is just working from say page 2 or 3....
-
Re: [Mccodes V2] Easter Egg Events screenie setup
-
Re: [Mccodes V2] Easter Egg Events Ok i kinda went a bit mental i was sat here working out the sqls when i decided to alter it a bit and save me a lot of time doing a mod for every festivity of the year. So the updated version will let you name your festivity event example easter, christmas, blah, blah, blah. Pages can be linked to any page that you already have on your game. even if your pages require an action. I'll post up an image in about 5 mins so you get the idea. as always ive included an installer for easy installation.
-
Thought id do an Easter Egg event seeing as its drawing near Very basic uses the Streets system. The cron will give each user 10 egg Tokens The player then searches the Basket with their 10 tokens to try dig out the 10 eggs Hidden in the basket some results are Red Herrings and others will reward the player with an egg after the 24 hour even the person with the most eggs collected will be rewarded with a desired item chosen by the game admin. Its about 75% complete just making a few improvements
-
Re: [MCCODES V2]My First Mod (Flash Games) pointless or not its here its free and its available for others giving someone Crappy feedback like that isnt going to inspire them to do better and be creative. The guy has seen an opportunity for a bit of free entertainment and shared it. All my mods are crap they dont give money they dont give crystals but they do give users entertainment. so im going to give him +1 just to piss you off ;)
-
Re: V2 index.php The amount of files MCC could be cut down to half if people were to do things like you have just done. The attack uses 5 files and 4 are just wasted they could all be put into one script and you could save server space.. The files for staff could also be reduced to 2 files that being staff.php and smenu.php
-
Re: V2 index.php Nice to see some people thinking out side the box :) Nice work gideon.... Can i just mention though thst you add the ability for those that are in hosp or jail not to be able to see the bank... Just add if($ir['jail'] or $ir['hospital']) { die("Your Bank cannot be accessed while in jail or hospital."); } Before your bank routine :) +1
-
Re: Businesses Mod [Mccode V2] Check your script for extra Quotation Marks " these should only be found on the script your using with PRINT" and "; in your explore .php if you find any that are not like the above example like here Business listings change to Business listings
-
[MCCODES V2] Updated Jail now lets users Offer rescue Price
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Updated Jail now lets users Offer rescue Price What is your problem the above script is NOT yours and any edits from this script were not taken from yours. I dont steal from people on here and never have done. if yours is called rescue.php and mine is called rescue.php that is purely coincidental. -
[MCCODES V2] Updated Jail now lets users Offer rescue Price
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Updated Jail now lets users Offer rescue Price Thanks for adding back this post MD -
Re: [Mccodes V2] Item Sell Update [Javascript!] Yet another Quality product from Iamwicked +1
-
Re: Contact Staff Through Email Eternal can you explain what errors you fixed so the postee knows for future reference :)
-
Heres a small fix for those using the 150 energy bar mod. Some will have noticed that when its changed from 100-150 the bar stretches and becomes longer than the other bars. This small fix will make the energy bar stay at 100 lenght no matter what size the bar is.. open header.php and add this before PRINT <<<OUT section for where your energy bar is.. $width = 100; $left_width = round(($ir['energy']/$ir['maxenergy'])*$width); $right_width = $width - $left_width; Now alter your image part of the bar to read [b]Energy:[/b]{$ir[energy]} <img src=animatedbar.gif width=$left_width height=10><img src=redbar.png width=$right_width height=10> Change the img llink to that of your own... Your energy bar wont overstretch anymore You can apply the same rule for the other bars but make sure you change the energy and maxenergy to the bar your editing...
-
Re: one of my mods deleted ? replace your rescue.php eith this one see if that helps... <?php include "globals.php"; if($ir['jail']) { die("<h1>You cannot bail out people while in jail.</h1>"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail!"); } if($r['rescue'] AND ($r['money'] > $r['rescue'])) { $cost = $r['rescue']; } else { $cost = 0; } $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf."); } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET money=money-{$cost} WHERE userid={$r['userid']}"); $db->query("UPDATE users SET money=money+{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET energy=energy-2 WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); $db->query("UPDATE users SET money=money-{$cost} WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] rescued you ftom jail you payed them \$$cost", $c); $h->endpage(); ?> This version will also deduct 10 energy for every rescue from the rescuer
-
Re: [mccode v2] Items Pic mod yes sorry myfault it is impic not itmpics as i suggested.. send me your addy and i'll take a look
-
Re: [mccode v2] Items Pic mod Lycan check to make sure all references for itmpics are the same even for the one in your items Dbase so all should be itmpics and not any as itmpic
-
Re: one of my mods deleted ? After reading that i see what you mean.. I guess i was kinda annoyed the way it was done. but not to receieve an explanation as to why is also a pain.. So for those reading this my stsements above although at the time felt strongly about, i guess now ive seen it in a different light.
-
Re: one of my mods deleted ? glad that modify button was still here ;)
-
Re: one of my mods deleted ? Well those that were lucky enough to have the script from yesterday i guess your the only pople who have it :) which i guess makes your game unique as i wont be reposting the script.
-
Quick question why was one of my mods deleted... the one that allows users to set a price for their being rescued from jail. This was an original script and wasnt stolen if thats what any staff here are thinknig myself and Richard did it from scratch.. so why was it removed. ok excerts were taken from preferences.php and jailbail.php
-
[MCCODES V2] Updated Jail now lets users Offer rescue Price
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Updated Jail now lets users Offer rescue Price edits -
Before i start a massive Thank You to RICHARD for his emmense help with this script :) The usual jail allows users to jailbail and bust which i found to be quite Crap. So what makes this one better... Well this one allows your players to set their own amount to be rescued from jail. when a player rescues them they will recieve the asking price for the bail rather than a set bail amount as before... open up preferences.php and add these new cases... case 'rescuechange2': do_bail_offer(); break; case 'rescuechange': bail_offer(); break; Staying in preferences.php add function bail_offer() { global $ir,$c,$userid,$h; print "<h3>Change Rescue Cost</h3> Please note that 0 will be in place if you dont have ther cash to cover a rescue <form action='preferences.php?action=rescuechange2' method='post'> New Rescue Ammount: <input type='text' name='bailoffer' /> <input type='submit' value='Change Rescue Ammount' /></form>"; } function do_bail_offer() { global $db,$ir,$c,$userid,$h; if($_POST['bailoffer'] == "") { print "You did not enter an ammount [url='preferences.php?action=rescuechange']> Back[/url]"; } else { $db->query("UPDATE users SET rescue='{$_POST['bailoffer']}' WHERE userid=$userid"); print "<h1>rescue Amount changed changed!</h1>"; } } Add this to the links section in the same file [url='preferences.php?action=rescuechange']Change Rescue Offer[/url] Now run this small SQL ALTER TABLE `users` ADD `rescue` INT( 11 ) NOT NULL DEFAULT '0'; now call this file rescue.php <?php include "globals.php"; if($ir['jail']) { echo 'You are stuck in the Jail right now.'; } else { $fetch = $db->query(sprintf("SELECT * FROM `users` WHERE (`userid` = '%u')", abs((int) $_GET['ID']))); if(!mysql_num_rows($fetch)) { echo 'You cannot bail out a non-existant user.'; } else { $r = $db->fetch_row($fetch); if(!$r['jail']) { echo 'This user is no longer stuck in Jail.'; } if($r['rescue'] AND ($r['money'] > $r['rescue'])) { $cost = $r['rescue']; } else { $cost = 0; } if($ir['money'] < $cost) { echo 'You cannot afford to bail this user out of Jail right now.'; } else { echo 'You have bailed '.$r['username'].' out of Jail for a total of $'.number_format($cost).'.'; $db->query(sprintf("UPDATE `users` SET `money` = `money` - '%d', `jail` = '0' WHERE `userid` = '%u'", $cost, $r['userid'])); $db->query(sprintf("UPDATE `users` SET `money` = `money` + '%d' WHERE `userid` = '%u'", $ir['userid'])); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] bailed you out of jail.", $c); } } } $h->endpage(); ?> and finally call this jail.php <?php include "globals.php"; if($r['rescue'] AND ($r['money'] > $r['rescue'])) { $cost = $r['rescue']; } else { $cost = 0; } if($ir['hospital']) { die("<h1>You are in hospital so whats the point</h1>"); } print "<h3>Jail</h3> <table width='75%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=grey><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th><th>Rescue Price</th> <th>Actions</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gangPREF']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutes</td><td>{$r['jail_reason']}</td><td>\$ {$r['rescue']}</td> <td>[[url='rescue.php?ID={$r[']Rescue[/url]]</td></tr>"; } print "</table>"; print"<h3>You are currently Offering $rescue as your rescue reward</h3>"; $h->endpage(); ?> Screenie
-
Re: [mccode v1 v2] player card Stupid dyslexic Keyboards that was supposed to say Doesn't not Does :)