-
Posts
2,464 -
Joined
-
Last visited
-
Days Won
8
Content Type
Profiles
Forums
Events
Everything posted by rulerofzu
-
Re: [mccode v2] Ajax Chat my edition The w.php on the first page thats what you need to specify there.
-
Re: [mccode v2] Attack :) http://criminalexistence.com/ceforums/i ... ic=28218.0
-
Re: [mccode V1 V2] Chat Mod After looking into this today there is more config that most users may need to have in the chat index.php to get this to work. You will need to alter the paths to suit your hosting. $params = array(); $params["title"] = "Quick chat"; $params["isadmin"] = false; // do not use it on production servers ;) $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat $params["server_script_url"] = "http://www.domain.com/chat/"; $params["server_script_path"] = "/home/user/chat/src/"; $params['theme_path'] = '/home/user/chat/themes'; $params['theme_url'] = 'http://www.domain.com/chat/themes'; $params['data_public_path'] = '/home/user/chat/data/public'; $params['data_private_path'] = '/home/user/chat/data/private'; $params['client_script_path'] = '/home/user/chat'; $params['prototypejs_url'] = 'http.//www.domain.com/chat/data/public/js/prototype.js'; $params["data_public_url"] = 'http://www.domain.com/chat/data/public'; $params['theme_default_path'] = '/home/user/src/chat/themes'; $params['theme_default_url'] = 'http://www.domain.com/chat/themes'; $params["nick"] = $username; // setup the intitial nickname $params['channels'] = array('General','Pirate Help','Black Market'); /// amount of channels you like $params["theme"] = "default";
-
Re: [mccode V1 V2] Chat Mod i get a white page with a box saying chat is loading and thats it.
-
Re: Levels yeah well thats what i put in 'my' leveling code to resolve the problem which. As i stated.
-
mccode-v2 Humans vs. Zombies EVENT mod [done, v1.0]
rulerofzu replied to seanybob's topic in Free Modifications
Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] :-D the v1.0 means version 1.0 of the mod not mccodes v1 you can run this on mccodes v2 -
Re: Levels Happens in a lot of games. Player keeps their stats low but plays the game for a long time to become high lvl bunny not much you can do about that. The problem you have is that $ir is controlling the update which as you mention doesnt update instantly and waits for the user to click click click You should be able to remedy this in global_func.php find function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); } } add into it $update_ir="true"; and before the db query if ($update_ir==true) so like this .... if ($update_ir=="true") { $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); } it should work ...i use a different leveling code so thats not tested on the original code.
-
Re: New Houses Mod [Mccodes V2] Ive been testing this in my game and it works well the only problem ive found is that if a user is renting a house then when your daily cron runs if the player has no money then they run into $-xxx and the owner of the house still gets credited with the money. Ill have a look into this when i have the time. Other than that ive added the following. Based on if you move out of a house then its a hard job so your will should be zero'd same when you move into a house. So... Find in mysql_query(sprintf("UPDATE `users` SET `house` = '%d', `maxwill` = '%d' WHERE (`userid` = '%u')", abs((int) $_GET['id']), $r['uhouseMood'], $ir['userid'])); echo 'You have moved into the '.stripslashes($r['hNAME']).', You now have a maximum will of '.number_format($r['uhouseMood']).'.'; } Change to $yourwill = 0; mysql_query(sprintf("UPDATE `users` SET `house` = '%d', `will` = ".$yourwill.", `maxwill` = '%d' WHERE (`userid` = '%u')", abs((int) $_GET['id']), $r['uhouseMood'], $ir['userid'])); echo 'You have moved into the '.stripslashes($r['hNAME']).', You now have a maximum will of '.number_format($r['uhouseMood']).'.'; } Then find mysql_query(sprintf("UPDATE `users` SET `house` = '0', `maxwill` = '100' WHERE (`userid` = '%u')", $ir['userid'])); echo 'You have moved out of the '.stripslashes($r['hNAME']).', You now have a maximum will of 100.'; } Change to $willreset = 0; mysql_query(sprintf("UPDATE `users` SET `house` = '0', `will` = ".$willreset.", `maxwill` = '100' WHERE (`userid` = '%u')", $ir['userid'])); echo 'You have moved out of the '.stripslashes($r['hNAME']).', You now have a maximum will of 100.'; }
-
[MCCODES V2+V1] Easiest Editing System you will ever need...
rulerofzu replied to Uridium's topic in Free Modifications
Re: [MCCODES V2+V1] Easiest Editing System you will ever need... lol thats what i thought on first glance but after a cuppa coffee and realising i just added a load of items last night into the wrong place this is gonna save a whole lotta time! nice work! -
Re: FREE Bug Tracker Mod Ive installed this and works great. If you change the hidden td tags you can keep the player name hidden but still show the bug report. print "<tr style='background:darkred'><center> <td align=center>".number_format($x)."</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>".$r['bt_description']."</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>".$r[bt_status]."</td> </center></tr>"; Will stop people reporting the same bug over n over again (hopefully!) They can also see the status on the bug report. I think this will work better if you have a busy game introduce something new and have people rushing to report that spelling mistake :D Ive also placed this at the top if($ir['daysold'] < 5) { die("This feature is for regular players only."); } Which does what it says
-
Removed........................................
-
[MCcode v2] Advanced spying script [$10 USD]
rulerofzu replied to radio_active's topic in Paid Modifications
Re: [MCcode v2] Advanced spying script [$10 USD] Just got this mod. Excellent service from radio_active. Really like the mod. All my test players are currently mawled and in the hospital lol Damn guard dogs....i will spy your stats in 40mins when im back on my feet! -
Re: Bandwidth Issues Im assuming your host is doing 2GB in and out which isnt that much. Id suggest moving to a larger package if your maxing your bandwidth. Id also investigate to if your site is compressed or not. gzip compression will save a large amount of bandwidth and also make your site faster.
-
Re: [mccode V2] Chat Mod NEW That works great now thanks! Now to look at getting in the png's if a user has them :D I noticed this $_SESSION['mute'] = $row['mute']; //check if user is able to type in chat Banned from chat is a excellent option.
-
Re: Gang Tags Ill take you up on that. Ive sent you a email.
-
Removed........................................
-
Re: [mccode V2] Chat Mod NEW This works well. I had a T PARSE error in the header but when i removed the code which you have said place in there the chat room works fine. The only problems ive found so far is that the users online refreshes and then doesnt reload just goes blank. Also....and this maybe connected to layout else where. This doesnt work (and neither have any of the ajax chat ive tried) in Firefox 3 Im using your earlier version with the same resize option so that I can use PNG's so ill be looking forward to the admin end. :-D