-
Posts
2,657 -
Joined
-
Last visited
-
Days Won
74
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Just one error i found when using i had to remove $maxFam = $db->fetch_row($db->query("SELECT `ID` FROM `family_mod` ORDER BY `ID` DESC LIMIT 1")); From zFamily_funcs.php and place into zFamily.php after the Include_once(globals.php); In order to get rid of the following error.. Fatal error: Call to a member function fetch_row() on a non-object in C:\xampp\htdocs\MC203\zFamily_funcs.php on line 21 Not sure if this is just an Xampp Issue though.
-
Just for notes.. the use of the cron for daily or weekly renting could be replaced with Timestamps that when elapsed would work same as the crons.
-
Sniko Nice mod ive been looking at it and have some Ideas to add within the script if you dont mind me doing this i'll send you the edited version for your viewing when complete.
-
[MCCODES V2] Fully Customise your game layout
Uridium replied to Uridium's topic in Free Modifications
Will try updating this mod i think the reason for all the mass edits was when we were unable to edit our posts back then so things just got kinda out of hand with lots of edits.. -
I think i gave up on this script when i lost all data from a HD crash the final part was scripted but unfortunately lost some hours after completion which I didnt want to start all over again.. However I may resurect this script if theres cause for its use...
-
to add the image you need to follow the correct $ path on the estate.php in this case the path would be $np['hsepics'] or $np['hsepic'] this will be the same in other scripts make sure you take note of the $ path so for example if theres a call for select * from houses and the $ path is say $house then to add an image wuld be $house['hsepics'] or $house['hsepic']
-
Your Beta testers when your game is open should have first priority as its them that get to know the game better than anyone else :)
-
found an issue with staff_special.php that wasnt allowing staff to update user level. so just replace these functions.. function userlevelform() { global $db,$ir,$c,$h,$userid; echo " <h3>User Level Adjust</h3> <form action='staff_special.php?action=userlevel' method='get'> User: ".user_dropdown($c,'ID')." <br /> User Level: <br /> <input type='radio' name='level' value='1' /> Member <br /> <input type='radio' name='level' value='2' /> Admin <br /> <input type='radio' name='level' value='3' /> Secretary <br /> <input type='radio' name='level' value='4' /> IRC Op <br /> <input type='radio' name='level' value='5' /> Assistant <br /> <input type='submit' value='Adjust' /> </form> "; } function userlevel() { global $db,$ir,$c,$h,$userid; $_GET['level'] = ( isset($_GET['level'])&&in_array($_POST['level'], array(1,2,3,4,5)) )?abs(intval($_GET['level'])):$_GET['level']; $_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):''; $d = $db->query("SELECT `userid` , `user_level` FROM `users` WHERE `userid` = ".$_GET['ID'].""); if ( $db->num_rows($d) == 0 ) { echo 'Invalid user.<br />> <a href="staff_special.php?action=userlevelform">Go Home</a>'; die($h->endpage()); } $db->query("UPDATE `users` SET `user_level` = {$_GET['level']} WHERE `userid` = {$_GET['ID']}", $c); stafflog_add('Adjusted user ID '.$_GET['ID'].'\'s staff status.'); echo 'User\'s level adjusted.<br />> <a href="staff.php?action=stafflist">Go Home</a>'; die($h->endpage()); } Overwrite with this one should work fine..
-
working site demo http://www.wizwych.com/mcnewversion/ you will need to Reg to use the academy..
-
call this file ranking.php this is just for an example you can change whats needed.. <?PHP // ADD WHAT EVER YOU WANT TO THIS LIST IF YOU CREATE A NEW $ EXAMPLE $energy YOU WILL NEED TO ADD THAT TO THE VIEWUSER.PHP // // EXAMPLE <tr><td width=50% class='h'><center> $levaw $rnk $crim </center></td></tr> WOULD BECOME // // <tr><td width=50% class='h'><center> $levaw $rnk $crim $energy</center></td></tr> // if($r['level'] >= 5) { $levaw="<img src='images/awards/level5.png'/>"; } if($r['level'] >= 10) { $levaw="<img src='images/awards/level5.png'/>"; } if($r['level'] >= 15) { $levaw="<img src='images/awards/level5.png'/>"; } if($r['level'] >= 20) { $levaw="<img src='images/awards/level20.png'/>"; } if($r['level'] >= 25) { $levaw="<img src='images/awards/level25.png'/>"; } if($r['level'] >= 30) { $levaw="<img src='images/awards/level30.png'/>"; } if($r['level'] >= 35) { $levaw="<img src='images/awards/level35.png'/>"; } if($r['rank'] == 2) { $rnk="<img src='images/awards/rank2.png'/>"; } if($r['rank'] == 3) { $rnk="<img src='images/awards/rank3.png'/>"; } if($r['rank'] == 4) { $rnk="<img src='images/awards/rank4.png'/>"; } if($r['rank'] == 5) { $rnk="<img src='images/awards/rank5.png'/>"; } if($r['offences'] > 200) { $crim="<img src='images/awards/crimes200.png'/>"; } if($r['offences'] > 400) { $crim="<img src='images/awards/crimes400.png'/>"; } if($r['offences'] > 600) { $crim="<img src='images/awards/crimes600.png'/>"; } if($r['offences'] > 1000) { $crim="<img src='images/awards/crimes800.png'/>"; } ?> Now in your viewuser.php add include "ranking.php"; print "</td></tr></table><table width=50%> <tr><td width=50% class='h'><hr/><center>Awards</center></td></tr> <tr><td width=50% class='h'><center> $levaw $rnk $crim </center></td></tr> <tr><td width=50% class='h'><center>End</center></td></tr></table>"; This is only as an example but the same principal applies..
-
You could always get an IF statement to select from the users DB for say level and add an image that way or crime or anything from the users database
-
I have to say with spending so much time on the old version this one might take some getting used to but i can live with it :)
-
cant remember how the inv works but this should work <div id="weapon_spot"></div> <div id="helmet_spot"></div> <div id="inventory"> <--- need this in text not image. </div> dot quote me on the use of $itm it could be something else on your script..
-
Redux as a new word dont really give it justice... Redux may refer to: Redux (literary term), a term used in literature and film Redux (The X-Files), a two-part episode of The X-Files Apocalypse Now Redux, an extended version of the epic war film Apocalypse Now Redux (adhesive), an aircraft adhesive Redux (album), an album by Adam Ant Redux (EP), an EP by the band Amebix Redux (drug) (dexfenfluramine hydrochloride), a weight loss drug withdrawn in 1997 DD68 Redux (stock-class paintball marker) I say we have a comp for the new naming
-
I have to say ive never had any complaints regards Haunteds works and he puts him self out of his way to help others especially with most of my mods for mcc which he lent a great deal of help too. So regards this post i think its between you two and not the whole of MWG to see.
-
Thanks for joining the site Danny your experience with mcc isnt needed its your brains we are after lol
-
If you cant see errors on your script as Alain pointed out your php.ini isnt set up to show them however if you dont have access to php.ini then you can try one of these from http://php.net/manual/en/function.error-reporting.php <?php // Turn off all error reporting error_reporting(0); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Report all errors except E_NOTICE // This is the default value set in php.ini error_reporting(E_ALL ^ E_NOTICE); // Report all PHP errors (see changelog) error_reporting(E_ALL); // Report all PHP errors error_reporting(-1); // Same as error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ?> Just place one from the above list and place in your file just after <?PHP
-
Line 20 >> print "<center>Welcome "$username change to print "<center>Welcome $username</center>"; see if that helps Also line 36 >>> print "<center>Welcome "$username" to ".$games[$_GET['action']]['name']."</center> "; change to print "<center>Welcome $username to ".$games[$_GET['action']]['name']."</center> ";
-
Every script ive done on here has been trial and error we learn from this (well i dont cos i still have to do it) but some people pick it up quite fast :)
-
Nice to see some decent staff choices being made :)
-
I wish people would read full posts before jumping the gun. If this is going to get MWG back on track im all for it so quit your moaning or i'll have to set cecil the hamster loose :)
-
******************************************************** **** NO LONGER FOR SALE OR TAKING ORDERS FOR THIS MOD **** ******************************************************** This schooling Mod will allow the Owner to Create as many Courses as they wish and add Modules to each course. ADMIN SIDE Staff can set up percentage gains for each course so easy courses can be done faster than harder courses Modules can be added to Any Course. Retake ability on some courses can be set to retake or just view ones that cannot be retaken Link in Explore.php will open up Courses passed for the given reward of that course. Or No link appears and user is updates instantly without a link.. LINKS: when a link is used in explore.php this means that the user can use it once per day each day Brave is used for each course turn.. 3 Courses can be taken at any one time. What ever mod you add to your game you could add a schooling course to secure its completion.. Paypal = NO LONGER FOR SALE Zipped folder will not be sent until paypal has Authorised Full Payment... I will need the site you will be hosting this mod on and an email to which i can send the zipped files...
-
How about a lottery mod that can be set to run at any time hourly daily or weekly that doesnt need a Cron :)
-
<< COMMENT REMOVED >> And appologise to both Robert and Alex... The script above is true to form and does work correctly My misadventure was i was testing on myelf and couldnt see any outcomes from it.. When the script itself updates users other than yourself... So again apologise to both...
-
Farts Burps and Coughs Well I have to say im Shocked stunned and need to fart ;) Cheers guys for this.. Yes ive read them since yesterday and really didnt know what to put to thank you all.. I hope my mods regardless of their uses has brought you some fun or even some piece of mind knowing that not all Paid mods cant be free.. Iv'e probably pissed off a lot of people making my mods free and being able to make them unique.. But a few years ago I was at the brunt of a rip off from a paid mod and i got stung so to thank them i made their lives hell so they couldnt piss me off again :)