
Godhand
Members-
Posts
448 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Godhand
-
Re: Money,crystals cap haha you haven't hit that 2.xx bill cap then. And for fixing that up for a while heres ALTER TABLE `users` CHANGE `money` `money` bigint( 92 ) NOT NULL DEFAULT '0', CHANGE `crystals` `crystals` bigint( 92 ) NOT NULL DEFAULT '0', CHANGE `bankmoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0', CHANGE `cybermoney` `crystals` bigint( 92 ) NOT NULL DEFAULT '0' ALTER TABLE `userstats` CHANGE `strength` `strength` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `IQ` `IQ` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `agility` `agility` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `guard` `guard` bigint( 92 )NOT NULL DEFAULT '0', CHANGE `labour` `labour` bigint( 92 )NOT NULL DEFAULT '0', That should last you a good while. While your at it fixing up the bank, sending money, etc change (int) into (float)
-
Re: [mccodes][V2] owner`s pannel shouldn't it kick out users that are user level one.... heh <?php include("globals.php"); if($ir['user_level'] ==1) { die("Excuse me but I think your not allowed here."); } else { echo"Welcome {$ir['username']} [url='staff.php']staff panel[/url] <a href='secpanel.php'>Secretary Panel<a/> [url='asspanel.php']Assistant Panel[/url]"; include("smenu.php"); } $h->endpage(); ?>
-
Re: Emergency Broadcast System (Spam Thread) Haha either way you still cheated :-D
-
Re: door shoot Yea... I rarely add mods that I see on CE onto mine though. I mean obv. I did the crystal bank and then revamped it some for personal use. but yea it looks like now it should be easy to edit for people.
-
Re: Delete pft in the database all you had to do was change int (21) into big int(92) and in the corresponding files change (int) into (float)
-
Re: V2 battle tent error How many challenge bots you have? because if its like 20 change it into $times=$db->fetch_single($q20); at least it should be something similar to that. All I did was look at it from my game without pasting all of it.
-
Re: V2 battle tent error I could've sworn there was a patch for this.... Never mind I found it here try this out change $times=$db->fetch_single($q); into $times=$db->fetch_single($q2);
-
Re: [Free V2] taxes pft not that hard change that stuff once someone else actually gets the base code done WHICH I did without looking at any one else's coding thank you. Sure I got the concept from TC, but at least I coded it on my own along with the sql. :wink:
-
Re: New And Improved Register haha thats funny.... 8 pages and doesn't remind you what page your on.... heh
-
Re: Emergency Broadcast System (Spam Thread) haha because you quoted me and cheated :wink:
-
Re: New exploit found! Thats exactly what I did. I did it in settings though because it was easier. Except for the password. I didn't bother with the minute cron because I figured it would be worthless to run protection on it... As for the hour I prevented pay from being exploitable and theres not very many gangs and I renamed my hourly cron to something else. I was thinking of making a 10 minute cron with a new stat in my game and also a 15 minute cron (both custom) to lessen the regular 5 minute crons load. As for why I'd want to do that as you know I have a new gym code I've been trying to patch up. Reading over the code you'll notice it doesn't use energy or currency. But I'm not quite sure if it would be worth it or not.....
-
Re: New exploit found! I know but the problem there is I having to code hour by hour. or every 5 minutes or every minute depending on the cron... thats why I ran those and customized my cron site name so they will not be able to exploit it too badly if they do :wink:
-
Re: Crystal market exploit? Well a better way to check is check if you have abs(somecodehere) in there. Could also check if$post<0 {die"Stop trying to cheat"} else [ at the end of the page before the end page function or ?> (being lazy) add ]
-
Re: New exploit found! And well you could always take preventative measure... thats why I have mine. So the people who get pissed off aren't me; its the players as I make it foolproof to not be abusable. I'm half tempted to make another cron_hour.php/day/ etc and set it to fed the player who launches it. haha
-
Re: New exploit found! And if they get lucky and decrypt it? Yea.. I know I also changed my crons quite a bit. So they don't get launched by anyone except myself and my automated server
-
Re: [mccode] Whore House Mod FREE :-D trying to make it fall off... haha thats priceless I should add it to mine just for kicks... haha
-
Re: door shoot heh obviously I don't I haven't installed it yet to my site; I don't think I will.
-
Re: Tabbed Browsing Well then put it in gym.php and any other portion you don't want them opening more than one at a time. Ie- inventory.php, bank.php.
-
I was just you know doing my own thing. I then realized my crons were being launched 2x more then they SHOULD be. I also know they don't know my cron code. But I did take the time to create a way to block it. I figured... since its not really worth it to run it every minute... all I did was change my minute cron... but heres the rest of it in cron_fivemin.php Find <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } 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']; } add RIGHT after if($set['cronfiveminprotect'] >= 1) { then FIND $db->query("UPDATE users SET verified=0"); } add RIGHT after } Now go into cron_hour.php find event_add($rm['userid'],"Your Gang's Organised Crime Failed. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } } add RIGHT after $db->query("UPDATE settings SET conf_value=12 WHERE conf_id=105"); and well since your in cron_hour.php already you might as well fix there as well. find if(date('G')==17) { replace with if(date('G')==17 && $set['cronhourprotection'] == 1) { $db->query("UPDATE settings SET conf_value=0 WHERE conf_id=22"); In cron_day.php add somewhere $db->query("UPDATE settings SET conf_value=1 WHERE conf_id=22"); now for the sql five min INSERT INTO `yourdatabasename_Main`.`settings` ( `conf_id` , `conf_name` , `conf_value` ) VALUES ( '105', 'cronfiveminprotect', '12' ); Now for hour protection INSERT INTO `yourdatabasename_Main`.`settings` ( `conf_id` , `conf_name` , `conf_value` ) VALUES ( '1', 'cronhourprotection', '22' ); Notice that part of cron_hour.php is still exploitable I just did not think it was worth adding in as I prevented players from getting their pay twice and insured that they got their job money no matter what. as for the fix well it isn't that hard just create another setting and correspond the information and set it up in cron_day.php. Also changing file names avoid this exploit as well. :-D edit: I noticed one small mistake that would fix itself by the end of the day haha
-
Re: bank cap shesh in your db you need to change the related bank to big int 92 and in the corresponding page change (int) into (float) Whats so hard about that unless of course you bought illegal codes....
-
Re: door shoot Thanks except the only reason I fixed it was because I was curious how something like that would run. And then when looking over I caught Where should be WHERE and I also thought maybe the game owner wanted to change how many times a day they could do doorshoot so I edited it to set doorshoot=doorshoot-1 so they could have just 1 doorshot a day if they change it to 1 in the cron day portion. Also the karma/respect feature has been removed. I originally noticed a typo so thats why I edited before. The real credit should go to iseeyou94056 for taking the time to start it out. All I did was fine tune it.
-
Re: Slower Crons better yet put it in a portion that people who abuse glitches go to. Like make the setting so it LOOKS like it worked. Then make it sleep for a few seconds and send them to the hospital after like 10 seconds and making some sort of scream. Now that would be perfect along with changing the actual site and stuff. heh be like print("Did you really think I would let you abuse that?") show up
-
Re: Slower Crons lmao now that would be a good idea... That would be perfect for spoofing someone.
-
Re: Tabbed Browsing maybe this will work if (!isset($_SESSION['time_of_last_page_load'])) { $_SESSION['time_of_last_page_load'] = time(); } else { if (!isset($_SESSION['time_of_last_page_load'])) { $_SESSION['time_of_last_page_load'] = time() AND $user_level>1; } else { if ($_SESSION['time_of_last_page_load'] == time()) { Echo "Pages cannot be loaded faster than one page per second." die; } } $_SESSION['time_of_last_page_load'] = time(); } just a thought. expanding the coding some :wink: I might have done it wrong but I believe something like that *should* work.