
shrek1609
Members-
Posts
310 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by shrek1609
-
Re: Need help on gym, change the field in stats table to big int 13,4 should do it
-
[mccode v2] Humans vs. Zombies EVENT mod
shrek1609 replied to seanybob's topic in Free Modifications
Re: [mccode v2] Humans vs. Zombies EVENT mod thanks all who participated in the creation of this... installed it on my game last night and members love it hospital count was over 100 in minutes full of future zombies :lol: -
Re: Pot Of Gold $15 [mccode v2] what would be a nice addition to this mod would be it stating who the last weeks winner was on the raffle page... i'm going to add this later should just be a small database table and a quick edit to the raffle page and cron page :)
-
Re: Pot Of Gold $15 [mccode v2] This mod is brilliant and my members love it... it was drawn for the first time last night and i won it (with a test ticket i bought) :lol: they were not amused :lol: Its very nicely coded and the very first mod i have ever purchased where i have had to do NOTHING but install it
-
Re: [mccodes] Advanced Pet Mod [$15] i did purchase this but to be honest not bothered to install after a quick look through the code its VERY insecure...
-
Found out yesterday that members can manipulate the url of the mailbox and read other members messages... so here is the fix... open mailbox.php find the function mail_view() and under the sql query that fetches the mails... add if ($ir['userid'] != $r['mail_to']) { $db->query("UPDATE users SET fedjail=1 WHERE userid={$ir['userid']}"); $db->query("INSERT INTO fedjail VALUES('',{$ir['userid']},1000,1,'(Auto Detected as Mailbox Abuser)')"); }
-
[mccodes v2] Crafting System Mod - players can craft items! ($65)
shrek1609 replied to acwebs's topic in Paid Modifications
Re: [mccodes v2] Crafting System Mod - players can craft items! ($65) purchased will review over weekend :-D -
Re: Hospital Java Countdown Wouldn't this let them use it more than once? no because you put it inside the effect if statement if($r['effect1_on']) { if($r['itmid']==31) { $db->query("UPDATE users SET hostime=hostime-300 WHERE userid={$userid}"); } you can edit the item and set the effect 1 to on and just leave the other settings ie it updates energy with 0 or as you are not using the hospital field anymore just leave it and dont bother editing it... so it will update hospital field with x amount of minutes... but you dont use it so dont matter really
-
Re: Inventory pic, 2 bucks for a small fix. why have you kept adding <?php thoughtout the script... thats not helping your problem
-
Re: rewrite of monorail needed why not leave the explore page as it is and just edit the links if ($ir['location'] ==3) { print" Search the Streets "; }
-
Re: Hospital Java Countdown i agree its not tricky for someone who has some knowledge of coding, but for noobs who don't really understand what each bit of code does its not so easy... hardest bit was actually modifying the javascript to actuall countdown using unix_timestamps as most countdown scripts countdown to a specific date in the future
-
Re: Hospital Java Countdown exactly what i've done... if($r['itmid']==31) { $db->query("UPDATE users SET hostime=hostime-300 WHERE userid={$userid}"); } the hospital countdown is now working 100% on my game, there were a few bugs as i forgot a few places that sent members to hospital...
-
Re: Help with email validation the user will be put into the database by register.php before they validate it by email, the problem will be with the validate.php that will update a field in the users to say they have validated... normally changing a 0 to 1
-
Re: Hospital Java Countdown i disagree, personally i think its a big addition to a game, although not so much as to what the members can see but to how the game runs... for starters you can get rid of the 1 minute crons, this will be handy people on webhosts... second it now makes the hospital time 100% accurate whereas before if they attacked someone 5 seconds before cron ran, hospital time would drop 1 minute... in effect them gaining 55 seconds where they should have been in hospital... third there is now no more refreshing of pages to see how long you have left in hospital (again kinder on the server) fourth it looks alot nicer... so sorry but i think it is a pretty big change to a game... i don't think i will be doing the tutorial for it as only one person has expressed interest and it is quite a tricky one to install (tricky in the fact there are so many edits needed) and everything you need to get this working on your site is already in this post... barring the need to change any items that reduce hospital time
-
Re: Error with coding need help please no problem :-)
-
Re: Error with coding need help please did you go into phpmyadmin and check the events table... thats where your problem is you've either added an extra field or deleted one... check the table there should be 5 fields if not delete the events table and run that query i gave you...
-
Re: Help with email validation it won't be in the register file there should be another file but you cant post it if its a paid mod... another thing your register file is not secure... do a search on here for security or you will be hacked... for register find $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; replace with $IP = $_SERVER['REMOTE_ADDR']; you will need to do this in other files too, do a search on here and you will find more info...
-
Re: error with attacktake.php replied to this in your other post
-
Re: Error with coding need help please if you don't have those five events then delete the events table and run this in the sql query... CREATE TABLE IF NOT EXISTS `events` ( `evID` int(11) NOT NULL auto_increment, `evUSER` int(11) NOT NULL default '0', `evTIME` int(11) NOT NULL default '0', `evREAD` int(11) NOT NULL default '0', `evTEXT` text NOT NULL, PRIMARY KEY (`evID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
-
Re: Error with coding need help please function event_add($userid,$text,$connection=0) { global $db; $text=mysql_escape($text); $db->query("INSERT INTO events VALUES('',$userid,UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}"); return 1; } this is my events function... go into phpmyadmin and check the events table you should have these fields `evID` int(11) NOT NULL auto_increment, `evUSER` int(11) NOT NULL default '0', `evTIME` int(11) NOT NULL default '0', `evREAD` int(11) NOT NULL default '0', `evTEXT` text NOT NULL,
-
Re: Complete new gang system... i'm still working on this but got a lot of other commitments at moment, but i will release it for free when its done...
-
Re: Pot Of Gold $15 [mccode v2] i did forget to say its very securely coded too... members really love it and already a massive items pot after 24 hours
-
Re: Hospital Java Countdown This just started out as a cosmetic change (nice countdown numbers) i've now realised that this is quite a massive addition to a game... i am currently in the process of changing everything to the javascript countdown... Which will result in there being no need for the 1 minute cron anymore... now if people are interested i will create a new thread with details on how to change everything in the game to this... so you can ditch your 1 minute cron...
-
Re: Hospital Java Countdown When i said it was impossible to make it 100% accurate i was wrong... its actuall possible to use this unix_timestamp to make hospital time 100% accurate... eg... some one attacks someone 5 seconds before the minute cron runs they will only only end up with 19 minutes and 5 seconds in hossy instead of 20 minutes if you change the attack.php (where it checks if you are in hossy or not to these) else if($odata['hostime'] >time()) { print "This player is in hospital. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($ir['hostime'] > time()) { print "While in hospital you can't attack. [url='hospital.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } [/code] then the members will be in hospital for exactly 1,200 seconds (20 minutes) you will need to change places like main menu as well so anywhere the code says if ($ir['hospital']) or if ($r['hospital']) change to if ($ir['hostime'] > time()) or if ($r['hostime'] > time()) and there you have a 100% accurate java countdown times... and remember you can just follow the exact same process for jail times
-
Re: Pot Of Gold $15 [mccode v2] great mod, very well coded and works great... very easy to install and my members love it :)