Jump to content
MakeWebGames

shrek1609

Members
  • Posts

    310
  • Joined

  • Last visited

    Never

Everything posted by shrek1609

  1. Re: Will Modification this isn't tested but should work ;) in nyna's gym mod... find   $sql2 = sprintf("UPDATE users SET will = %u, energy = %d WHERE (userid = %u)", $row['will'], $row['energy'], $userid);   replace with if ($ir['willtime'] > 0) { $sql2 = sprintf("UPDATE users SET energy = %d WHERE (userid = %u)", $row['energy'], $userid); } else { $sql2 = sprintf("UPDATE users SET will = %u, energy = %d WHERE (userid = %u)", $row['will'], $row['energy'], $userid); }
  2. Re: Energy not going up? * * */5 * * curl http://www.mylifetherpg.com/cron_fivemi ... xxxxxxxxxx shouldn't that be... */5 * * * * curl http://www.mylifetherpg.com/cron_fivemi ... xxxxxxxxxx
  3. Re: just restarted my game fresh and wondering right click on the class folder and check the permissions if i remember right it should be 755
  4. Re: just restarted my game fresh and wondering you should have a folder called class which should have inside class_db_mysql.php and class_db_mysqli.php make sure you have a folder called class and also these two files inside it...
  5. Re: cron_day.php i'm really not understanding this at all... have you actually bought mccodes ? if you have deleted all your files then you should only have deleted them from the server, surely you have the original zip file with the script in when you purchased it... hence you just upload the files again ?
  6. Re: cron_day.php ok so go into your cron panel find the cron_day url then copy and paste it into the url bar on your browser... this will run it manually... ignore the curl part just copy the link from http://yourgame.com etc including all the long number code at the end of the url... if it runs correctly you will only see a blank white page, if it errors you will get text... if it runs currectly then your error is server side NOT script side
  7. Re: cron_day.php i assume you have set up the cron jobs in cpanel ?
  8. Re: cron_day.php try running the cron manually... ie take the full link out of your cron panel not the curl bit just the http://yourgame.com etc if it runs with out erroring manually then your problem is in the cron panel in cpanel... perhaps ask your hosts for help if it is that
  9. Re: cron_day.php i think there is a missing { here:   while($r=$db->fetch_row($q)) $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd);   try   while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd);
  10. Re: cron_day.php mate what people are trying to say is you are asking for help but making it really difficult for anyone to help you... if you get an error such as you have stating a certain line number in this case line number 43... just post that line and 5 to 10 lines above it... no one is going to sit and count the lines of code till they reach the problem line... posting just these lines (the last line you post being the error line people are more likely to help... when you post if you look at the buttons above where you are typing in your post you will see a button with a # on it... click this THEN post the code between the [code*] and [/code*] (*'s will not show i have put these into to stop the code box showing...
  11. Re: [Mc Codes V2] Loanshark Mod ($7) i had a mod similar to this and removed it from my site... not knocking your mod but a few things you may want to think about... what is to stop me making loads of multi's levelling them to level 5 then borrowing money and sending cash to main... (may want to think about blocking money transfers while they have a loan) what happens if they do not have $100 at 30 days... if its taken from bank, bank disappears at less than $0 (perhaps think about preventing access to certain areas after 30 days till they pay it off) what about a member using gang vault as his bank and just borrowing the cash and never paying it back... its a great idea but i know it caused issues on my game...
  12. Re: [mccode v2] Item needed to perform crime. ok not tested this but just from reading through the code appears it will only work if an item is needed for the crime to be done... try this should fix it, as long as you set the crimeITEM as 0 in database when you don't want an item needed for the crime...   $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); $qi=$db->query("SELECT inv_itemid FROM inventory where inv_itemid={$r['crimeITEM']} AND inv_userid=$userid"); $n=$db->fetch_row($qn); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else if ($r['crimeITEM']) > 0 and ($n['inv_itemid'] != $r['crimeITEM'])) { print "You do not have the required item needed to perform this crime."; } else {   that should work... :)
  13. Re: [mccode v2] Item needed to perform crime.   I've just tried it out. It's just this bit that's bugging me it alway's say's invalid item even when its set to None EDIT:Works when there is an item just not when its set to None :S Any help around lol   typo this bit of code...   $qi=$db->query("SELECT inv_itemid FROM inventory where inv_itemid={$r['crimeITEM']} AND inv_userid=$userid"); $n=$db->fetch_row($qn);   should be   $qi=$db->query("SELECT inv_itemid FROM inventory where inv_itemid={$r['crimeITEM']} AND inv_userid=$userid"); $n=$db->fetch_row($qi);   $n=$db->fetch_row($qi); was $n=$db->fetch_row($qn); so it was trying to fetch something that hadn't been declared hence erroring out with saying no item
  14. Re: Will Modification   just different item number and then add the edit into itemuse again. with the new item number...
  15. Re: Will Modification just change the sql query useitem to update willtime=willtime+5 if its going down faster after that then your cron_minute is set up wrong on in cpanel
  16. Re: Will Modification   $db->query("UPDATE `userstats` SET `{$stat}` = `{$stat}` + $gain WHERE `userid` = $userid"); if ($ir['willtime'] > 0) { $db->query("UPDATE `users` SET energy = energy - {$_POST['amnt']} WHERE `userid` = $userid"); } else { $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$_POST['amnt']} WHERE `userid` = $userid"); }   the [/ shouldn't have been there dunno where it came from :?
  17. Re: Will Modification     what you on about mate i've just posted this for anyone to use lol not using any will while using this item i have just posted
  18. Re: Will Modification ok i think this is what you mean... open gym.php find   $db->query("UPDATE `userstats` SET `{$stat}` = `{$stat}` + $gain WHERE `userid` = $userid"); $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$_POST['amnt']} WHERE `userid` = $userid");   change to   $db->query("UPDATE `userstats` SET `{$stat}` = `{$stat}` + $gain WHERE `userid` = $userid"); if ($ir['willtime'] > 0) { $db->query("UPDATE `users` SET energy = energy - {$_POST['amnt']} WHERE `userid` = $userid"); } else { $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$_POST['amnt']} WHERE `userid` = $userid");[/ }
  19. Re: Will Modification you mean you don't want it to lower when they are training at all ?
  20. Re: Will Modification which gym are you using ?
  21. Re: Will Modification to make it so only one drink can be used at a time... change   if($r['itmid']==999) { $db->query("UPDATE users SET will=will+will/2,willtime=10 WHERE userid={$userid}"); }   to   if($r['itmid']==999) { if($ir['willtime'] > 0){die("Sorry only one drink can be drank at a time");} else { $db->query("UPDATE users SET will=will+will/2,willtime=10 WHERE userid={$userid}"); } }
  22. Re: Will Modification this is very simple to do... create an item called whatever you want ie Will Drink... set the effect 1 to on but leave the rest of the effect options blank... make a note of what the item number is... create a new field in the users table of database...   ALTER TABLE users ADD willtime INT(11) NOT NULL DEFAULT 0   open itemuse find   if($r['effect1_on']) {   add below it... change 999 to the item number you just made...   if($r['itmid']==999) { $db->query("UPDATE users SET will=will+will/2,willtime=10 WHERE userid={$userid}"); }   note. will=will+will/2 will increase their will by 50% will=will+will/4 will increase their will by 25% willtime=10 will be 10 minutes (change to suit) open up your cron_minute... add   $db->query("UPDATE users SET willtime=willtime-1 WHERE willtime>0"); $db->query("UPDATE users SET will=maxwill WHERE willtime=0");   there you go job done...
  23. Re: [mccodes v2] sendcash.php / Same IP Stop this is a deterrant and will stop a large amount of the multi's... i have similar on my games... however it will not stop the experienced cheating player... simple login through a proxy do dailies on multi's send to main account... what i have done as well as this is put a level restriction on being able to send crystals and money...   another problem i have come across which is harder to prevent the cheats is the gang vault... eg. i make my gang go on proxy make a load of multi's join same gang as main... donate dailies to vault... main account takes them out... much harder to detect... anyone with a good idea how to limit this happening would be appreciated... only idea i have had is to run a check on gang members ip's when they join gang and do a if num row > 1 print sorry a member of this gang has your ip you cannot join... at least they would need to use various proxies to over come this issue... any better ideas please reply and i will have a go at coding it and posting back here...
  24. Re: Need help with simple sql please hmm can't see anything from those have you edited anything in globals.php or global_function.php
  25. Re: Need help with simple sql please post your index page and job page ;)
×
×
  • Create New...