-
Posts
144 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by KiX
-
Re: [Mccodes V2] Player Mood Good mod mate. I found a cpl errors, but have fixed em the new code for the function in prefs.php should be function MoodChange() { global $ir, $db; if (isset($_POST['PlayerMood'])) { if (strlen($_POST['PlayerMood'])>10) { print "Sorry, but you cannot pass the 10 characters. [url='prefs.php?act=MoodChange']Go Back[/url] "; exit; }else{ $db->query(sprintf("UPDATE `users` SET `mood`='%s' WHERE `userid`='%d'", $_POST['PlayerMood'], $ir['userid'])); echo sprintf("You're Mood Is Now %s", $_POST['PlayerMood']); exit; } } else { echo '<h3 style="text-decoration: underline;">Mood Change</h3> <form action="prefs.php?act=MoodChange" method="post">'; echo sprintf("<input type='text' name='PlayerMood' value='%s' /> ", $PlayerMood); echo sprintf("You're Mood Is Currently: %s ", stripslashes($ir['mood'])); echo '<input type="submit" value="Mood Change!" /> </form>'; } } Basically the errors I found, was that it was not displaying your Current mood when you go to preferences. I also added a couple to make it a bit more organised. I hope you don't mind, but I restricted it to 10 characters. I didnt want people to write books. :) +1 to you though :)
-
Re: [mccode v2] Stock Market. Working + Secured Havent tried it yet, but I also am sure it is a winner. +1 mate!
-
(MCCODES) V2 Layout For Sale $100 is starting bid
KiX replied to doinkinator's topic in Paid Modifications
Re: (MCCODES) V2 Layout For Sale $100 is starting bid Hmmm, yeah it is quite cool. Shame I have seen this same template being sold on another site. Well the flash intro. The other stuff is just css on top of it. NOt impressed. Don't get me wrong I suck at graphics, but once again, at least make them yourself before you sell them. -
Re: [REVIEW] Underground Evolution (v3.0) lol found it. you can register now. my bad. I left it in "maintenance mode" after i did a few changes last night. sorry bout that folks.
-
Re: [REVIEW] Underground Evolution (v3.0) hmm. I dont know y you cant register. let me take a quick look at it. What browser are you using?
-
Re: [REVIEW] Underground Evolution (v3.0) Thanks for your comments. hmm. I presume your resolution must be quite high. I am using 1024x768 and the text size seems alright. the images that you refer to are converted icons, but the rest are all original. then again, im not the best at creating images.
-
Re: [REVIEW] Underground Evolution (v3.0) hmm 82 views and still no comments. don't know how to interpret that ;)
-
Version 3.0 of Underground Evolution has ben launched today. Check it out at http://www.underground-evolution.com All comments appreciated.
-
Re: LOGD Game Engine... Im running my own version of it. Legend of Lost Souls http://www.legendoflostsouls.com
-
Re: Looking for TOPSITES that use daily votes lol. Well he did say not a lot of games listed.. now we know why ;)
-
Re: [REVIEW] - TopRankinGames lol, yeah sorry bout the gfx.. I am terrible with them. I am trying to get someone to help me re do them asap.
-
Based on the infamous LOGD network, I have released another version of it. The Legend of Lost Souls. Battle against other players, slay dragons to level up, build up your houses, and many many more options to it. Check it out at http://www.legendoflostsouls.com
-
Re: LOGH - Legend of the Green Hydra Well, I have actually just logged into it and it is different. It is not as much TEXT based, there are some graphics in it. not my cup of tea, but I guess ppl can play it.
-
Re: LOGH - Legend of the Green Hydra I haven't logged into the game, but this seems like it is actually from the LOGD. Legend of the Green Dragon. It is a massive community based on the original game called Legond of the Red Dragon. i have the same game enigine with a lot of mods in it. I have changed the name of it, as everyone that is using this engine has. The name of mine is Legend of the Lost Souls and you can check it out at http://www.legendoflostsouls.com I am sure you will prolly see the similarities.
-
Re: Looking for TOPSITES that use daily votes a bit late post hehe but also http://www.toprankingames.com
-
Re: [mccode] RSS Feed for Announcements Hey iamwicked, dont know if its working on your side, but for me still nothing.
-
Re: Businesses Mod [Mccode V2] Well it is very simple, the director owns the business, so all the money in the vault is at his/her disposal. Hence, no need for him or her to be a member. Does the bankrupt show you any error, as it works fine on my site.
-
Re: Businesses Mod [Mccode V2] 1) Nope there is no reason, I presume Richard did it like that to keep it a bit more organised. 2) It is working quite well on my side. could u give us a bit more information please.
-
Re: [mccode] RSS Feed for Announcements hmmm. Mine updated once and never again. I did what u suggested Cronus, but still nothing.
-
Re: [Mccodes V2] Easter Egg Events It was giving me an error whilst editing a holiday. so find this in holiday_creator.php $db->query("UPDATE holiday_event_settings SET 'holiday_event_name' = '{$_POST['holiday_event_name']}', 'holiday_event_description' = '{$_POST['holiday_event_description']}', 'holiday_event_page' = '{$_POST['holiday_event_page']}', 'holiday_event_action' = '{$_POST['holiday_event_action']}', 'holiday_winning_message_1' = '{$_POST['holiday_winning_message_1']}', 'holiday_failed_message_1' = '{$_POST['holiday_failed_message_1']}', 'holiday_event_message_1' = '{$_POST['holiday_event_message_1']}', 'holiday_event_message_2' = '{$_POST['holiday_event_message_2']}', 'holiday_event_message_3' = '{$_POST['holiday_event_message_3']}', 'holiday_event_message_4' = '{$_POST['holiday_event_message_4']}', 'holiday_event_message_5' = '{$_POST['holiday_event_message_5']}', 'holiday_event_message_6' = '{$_POST['holiday_event_message_6']}', 'holiday_event_message_7' = '{$_POST['holiday_event_message_7']}', 'holiday_event_message_8' = '{$_POST['holiday_event_message_8']}', 'holiday_event_message_9' = '{$_POST['holiday_event_message_9']}', 'holiday_event_message_10' = '{$_POST['holiday_event_message_10']}' WHERE holiday_event_id = '{$_POST['holiday_event_id']}'"); and replace it with $db->query("UPDATE `holiday_event_settings` SET `holiday_event_name` = '{$_POST['holiday_event_name']}', `holiday_event_description` = '{$_POST['holiday_event_description']}', `holiday_event_page` = '{$_POST['holiday_event_page']}', `holiday_event_action` = '{$_POST['holiday_event_action']}', `holiday_winning_message_1` = '{$_POST['holiday_winning_message_1']}', `holiday_failed_message_1` = '{$_POST['holiday_failed_message_1']}', `holiday_event_message_1` = '{$_POST['holiday_event_message_1']}', `holiday_event_message_2` = '{$_POST['holiday_event_message_2']}', `holiday_event_message_3` = '{$_POST['holiday_event_message_3']}', `holiday_event_message_4` = '{$_POST['holiday_event_message_4']}', `holiday_event_message_5` = '{$_POST['holiday_event_message_5']}', `holiday_event_message_6` = '{$_POST['holiday_event_message_6']}', `holiday_event_message_7` = '{$_POST['holiday_event_message_7']}', `holiday_event_message_8` = '{$_POST['holiday_event_message_8']}', `holiday_event_message_9` = '{$_POST['holiday_event_message_9']}', `holiday_event_message_10` = '{$_POST['holiday_event_message_10']}' WHERE `holiday_event_id` = '{$_POST['holiday_event_id']}'"); +1 illusions as always.
-
Re: Businesses Mod [Mccode V2] I am working on company specials and also on company staff menu. They will be out soon. Finishing other stuff 1st. :)
-
Re: Businesses Mod [Mccode V2] hehe yeah, on my cron i lowered it significantly to control the economy a bit more.
-
Re: Businesses Mod [Mccode V2] That is correct. I am currently letting that slide on my site until ppl get used to the businesses, but i i will soon only allow them to have either a job or business. If you want I can post it here once i finish it.
-
Re: Businesses Mod [Mccode V2] I also changed a bit the business_home.php file. So when u go into ur business you can see most of the information you see in the Business Listing. I also limited the log to show only the last 25 events. open business_home.php and look for function business_index() { global $ir, $inf; echo '[b]'.stripslashes($inf['busName']).' options:[/b] '; if($inf['busDirector'] == $ir['userid']) { echo '[url="business_manage.php"]Manage business[/url] '; } else { echo '[url="business_home.php?p=view_donate"]Donate to the Business[/url] '; echo '[url="business_home.php?p=leave_business"]Leave the business[/url] '; } echo '[url="business_home.php?p=view_members"]View members[/url] <table width="600" class="table"> <tr> <th>#</th> <th>Alert text</th> <th>Time</th> </tr>'; $business_alerts = mysql_query(sprintf("SELECT * FROM `businesses_alerts` WHERE `alertBusiness` = '%u' ORDER BY `alertTime` DESC", $inf['busId'])); while($ba = mysql_fetch_assoc($business_alerts)) { echo ' <tr> <td width="5%">'.$ba['alertId'].'</td> <td width="65%">'.stripslashes($ba['alertText']).'</td> <td width="30%">'.date('d-m-Y, g:i:s A', $ba['alertTime']).'</td> </tr>'; } echo '</table>'; } function leave_business() { global $ir, $inf; if($inf['busDirector'] != $ir['userid']) { if(!$_GET['confirm']) { echo 'You are about to leave the '.$inf['busName'].' business. Please confirm this action. > [url="business_home.php?p=leave_business&confirm=1"]Leave the business[/url]'; } else { mysql_query(sprintf("DELETE FROM `businesses_members` WHERE (`bmembMember` = '%u')", $ir['userid'])); echo 'You have decided to leave the business.'; } } else { echo 'You cannot leave the business while still the director.'; } } replace it with this code function business_index() { global $ir, $inf; echo '[b]'.stripslashes($inf['busName']).' options:[/b] '; if($inf['busDirector'] == $ir['userid']) { echo '[url="business_manage.php"]Manage business[/url] '; } else { echo '[url="business_home.php?p=view_donate"]Donate to the Business[/url] '; echo '[url="business_home.php?p=leave_business"]Leave the business[/url] '; } echo '[url="business_home.php?p=view_members"]View members[/url] '; $fetch_business = mysql_query(sprintf("SELECT * FROM `businesses` LEFT JOIN `businesses_classes` ON (`classId` = `busClass`) LEFT JOIN `users` ON (`userid` = `busDirector`) WHERE (`busId` = '%u')", abs((int) $inf['busId']))); if(!mysql_num_rows($fetch_business)) { echo 'You cannot view a business that doesn\'t exist.'; } else { $r = mysql_fetch_assoc($fetch_business); echo '<hr width="400"> <table width="400" class="table"> <tr> <th colspan="2">Details of '.stripslashes($r['busName']).' - '.stripslashes($r['className']).'</th> </tr> <tr height="100"> <td colspan="2" valign="middle" align="center">'; if($r['busImage']) { echo '[img='.stripslashes($r['busImage']).']'; } else { echo 'This business has no banner at this time.'; } echo '</td></tr> <tr> <th colspan="2">Further information</th> </tr> <tr height="150"> <td colspan="2" valign="middle" align="center"> <table width="200"> <tr> <td> [b]Class:[/b] '.stripslashes($r['className']).' [b]Director:[/b] [url="viewuser.php?u='.$r['userid'].'"]'.stripslashes($r['username']).'[/url] [b]Latest profit:[/b] G$'.number_format($r['busProfit']).' [b]Previous profit:[/b] G$'.number_format($r['busYProfit']).' [b]Latest customers:[/b] '.number_format($r['busCust']).' [b]Previous customers:[/b] '.number_format($r['busYCust']).' </td> </tr> </table>'; } echo ' <table width="600" class="table"> <tr> <th>#</th> <th>Alert text</th> <th>Time</th> </tr>'; $business_alerts = mysql_query(sprintf("SELECT * FROM `businesses_alerts` WHERE `alertBusiness` = '%u' ORDER BY `alertTime` DESC LIMIT 25", $inf['busId'])); while($ba = mysql_fetch_assoc($business_alerts)) { echo ' <tr> <td width="5%">'.$ba['alertId'].'</td> <td width="65%">'.stripslashes($ba['alertText']).'</td> <td width="30%">'.date('d-m-Y, g:i:s A', $ba['alertTime']).'</td> </tr>'; } echo '</table></table>'; }
-
Re: Businesses Mod [Mccode V2] Ok another update to Richard's mod. The option to change Directors of the company. I think I have added everything this time. Add this to your sql ALTER TABLE businesses ADD busDays BIGINT( 32 ) NOT NULL DEFAULT '0'; ALTER TABLE businesses_members ADD bmembDays BIGINT( 32 ) NOT NULL DEFAULT '0'; open business_manage and look for case 'kick_out': kick_member(); break; add underneath case 'new_Director': new_Director(); break; find this in the same file [url="business_manage.php?p=view_vault"]View the vault[/url] add just after that [url="business_manage.php?p=new_Director"]Change Director of the business[/url] find this in the same file $h->endpage(); ?> add just before that function new_Director() { global $ir, $inf; if(!$_GET['confirm']) { echo '<form action="business_manage.php?p=new_Director&confirm=1" method="post"> <p align="center"> Select a member from the box below to whom you wish to make the new Director Business member: <select name="member">'; $select_members = mysql_query(sprintf("SELECT * FROM businesses_members LEFT JOIN users ON (userid = bmembMember) WHERE (bmembBusiness = '%u') ORDER BY bmembId ASC", $inf['busId'])); while($sm = mysql_fetch_assoc($select_members)) { echo '<option value="'.$sm['userid'].'">'.stripslashes($sm['username']).'</option>'; } echo '</select> <input type="submit" value="Change Director." /> </p> </form>'; } else { if ($ir['userid'] != $inf['busDirector']) { die('You need to be the Director to perform this action.'); }else{ $select_members2 = mysql_query(sprintf("SELECT * FROM businesses_members WHERE (bmembMember = '%u')", $_POST['member'])); $sm2 = mysql_fetch_assoc($select_members2); mysql_query(sprintf("INSERT INTO businesses_members (bmembId, bmembMember, bmembBusiness, bmembMoney, bmembRank, bmembDays) VALUES ('NULL', '%u', '%d', 'NULL', 'NULL', '%d')", $inf['busDirector'], $inf['busId'], $inf['busDays'])); mysql_query(sprintf("UPDATE businesses SET busDirector = ".$_POST['member'].", busDays=".$sm2['bmembDays']." WHERE busId = ".$inf['busId']."")); mysql_query(sprintf("DELETE FROM `businesses_members` WHERE `businesses_members`.`bmembMember` = ".$_POST['member']." LIMIT 1")); business_alert($inf['busId'], "The business has a new Director"); echo 'You have decided to change Directors.'; } } } If you added all of my updates to Richard's mods. Then you will need this new business_crons.php file. So open your existing business_crons.php file and replace everything with this <? include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } include "global_func.php"; $select_businesses = mysql_query("SELECT * FROM `businesses` LEFT JOIN `businesses_classes` ON (`classId` = `busClass`) ORDER BY `busId` ASC"); while($bs = mysql_fetch_assoc($select_businesses)) { $amount = mysql_num_rows(mysql_query(sprintf("SELECT * FROM `businesses_members` WHERE `bmembBusiness` = '%u'", $bs['busId']))); $new_customers = (((($bs['classCost'] / 5000) * ($amount + 1) + rand(-12, 18)) / 2)/1000); $new_profit = ((($new_customers + rand(-4, 8)) * ((($bs['classCost'] / 2500) * rand(2, 8)) / 10) * ($amount + 1))/1000000); mysql_query(sprintf("UPDATE `businesses` SET `busYCust` = `busCust`, `busYProfit` = `busProfit`, `busCust` = '%d', `busProfit` = '%d', `busCash` = `busCash` + '%d' WHERE `busId` = '%u'", $new_customers, $new_profit, $new_profit, $bs['busId'])) OR die('Cron not run'); mysql_query(sprintf("UPDATE `businesses` SET `busTProfit` = `busTProfit` + busProfit,`busTCust` = `busTCust` + busCust, busDays=busDays+1 WHERE `busId` = ".$bs['busId']."")); $fetch_members = mysql_query(sprintf("SELECT * FROM `businesses_members` LEFT JOIN `users` ON (`userid` = `bmembMember`) LEFT JOIN `businesses_ranks` ON (`rankId` = `bmembRank`) WHERE `bmembBusiness` = '%u'", $bs['busId'])); while($fm = mysql_fetch_assoc($fetch_members)) { $fetch_stat = array( 'strength' => 'strength', 'IQ' => 'IQ', 'labour' => 'labour' ); mysql_query(sprintf("UPDATE `users` SET `money` = `money` + '%d' WHERE `userid` = '%u'", $fm['bmembMoney'], $fm['userid'])); mysql_query(sprintf("UPDATE `userstats` SET `{$fetch_stat[$fm['rankPrim']]}` = `{$fetch_stat[$fm['rankPrim']]}` + '%.6f', `{$fetch_stat[$fm['rankSec']]}` = `{$fetch_stat[$fm['rankSec']]}` + '%.6f' WHERE (`userid` = '%u')", $fm['rankPGain'], $fm['rankSGain'], $fm['userid'])); mysql_query(sprintf("UPDATE `businesses_members` SET `bmembDays` = `bmembDays` + 1")); if($bs['busCash'] < $fm['bmembMoney']) { $text = "Member ID {$fm['bmembMember']} was not paid their G$".number_format($fm['bmembMoney'])." due to lack of funds."; mysql_query(sprintf("INSERT INTO `businesses_alerts` (`alertId`, `alertBusiness`, `alertText`, `alertTime`) VALUES ('NULL', '%u', '%s', '%d')", $bs['busId'], $text, time())); mysql_query(sprintf("UPDATE `businesses` SET `busDebt` = `busDebt` + '%d' WHERE `busId` = '%u'", $fm['bmembMoney'], $bs['busId'])); } else { mysql_query(sprintf("UPDATE `businesses` SET `busCash` = `busCash` - '%d' WHERE `busId` = '%u'", $fm['bmembMoney'], $bs['busId'])); } } if($bs['busDebt'] > $bs['classCost']) { $send_event = mysql_query(sprintf("SELECT `bmembMember` FROM WHERE `bmembBusiness` = '%u' ORDER BY `bmembId` DESC", $bs['busId'])); while($se = mysql_fetch_assoc($send_event)) { $text = "The {$bs['busName']} business went bankrupt\, all members have been discharged."; insert_event($se['bmembMember'], $text); } mysql_query(sprintf("DELETE FROM `businesses_members` WHERE (`bmembBusiness` = '%u')", $bs['busId'])); mysql_query(sprintf("DELETE FROM `businesses` WHERE (`busId` = '%u')", $bs['busId'])); } } ?>