Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length


News:

Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.


Pages: [1] 2

AuthorTopic: [MCCode] Remove Energy/Brave/Will Cron  (Read 2303 times)

Cronus

  • Administrator
  • Excellent Member
  • *****
  • Reputation Power: 1946
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 479
    • View Profile
    • WWW
[MCCode] Remove Energy/Brave/Will Cron
« on: March 16, 2009, 03:17:20 AM »
Remove Energy/Brave/Will Cron

This will allow you to have your users energy only updated when the user loads a page.
Everything is done instantly and it acts as though the cron is still running at 5 minute intervals.
There is absolutely no lag when updating, updates at exactly 00,05,10,15,20,25,etc.
It only updates the user loading the page according to what they need from when they last got updated.
This stops from searching through thousands of rows of users at one time, reducing lag IMMENSELY.
Works for only Version 1 at the moment, I could not figure out how to make it work on Version 2, yet.
If anyone converts it to Version 2 please send it to me, bug free, so I can upload it.

Obviously this is set up for my game so you will have to set the amount that refills according to your wishes.

The file is attached in .rar form.
You will need to be registered and logged in to access it.
« Last Edit: March 16, 2009, 04:39:34 AM by Cronus »
Logged

Hitman 15

  • Basic Member
  • *
  • Reputation Power: 8
  • Hitman 15 has no influence.
  • Offline Offline
  • Posts: 34
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #1 on: March 16, 2009, 05:00:52 AM »
Definetly works tested on my game after a few updates well done cronus
Logged

Bluedemon

  • Basic Member
  • *
  • Reputation Power: 2
  • Bluedemon has no influence.
  • Offline Offline
  • Posts: 5
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #2 on: September 08, 2009, 08:47:55 AM »
hm when i do all the mysql edits i try to load it and it says *Table 'seanl_mccodes.gangs' doesn't exist* any ideas?
Logged

dominion

  • Basic Member
  • *
  • Reputation Power: 69
  • dominion has no influence.
  • Offline Offline
  • Posts: 88
    • View Profile
    • Email
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #3 on: September 08, 2009, 11:09:19 AM »
ummm if your on lite find and take out this line

$is=mysql_query("SELECT u.*,us.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.userid=$userid",$c) or die(mysql_error());

should work its just cos u dont have the gangs data base
Logged

arcticfang

  • Basic Member
  • *
  • Reputation Power: 0
  • arcticfang has no influence.
  • Offline Offline
  • Posts: 1
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #4 on: October 20, 2009, 07:26:48 PM »
Has this been converted to V2 yet? I really need this. Please email arcticfang93@gmail.com :D
Logged

zootycoon65

  • Basic Member
  • *
  • Reputation Power: 0
  • zootycoon65 has no influence.
  • Offline Offline
  • Posts: 2
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #5 on: November 20, 2009, 05:08:19 PM »
uh how does it really work because you could just give the users the code you got from the install.php and that works too.
Logged

Cronus

  • Administrator
  • Excellent Member
  • *****
  • Reputation Power: 1946
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 479
    • View Profile
    • WWW
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #6 on: November 20, 2009, 09:21:21 PM »
uh how does it really work because you could just give the users the code you got from the install.php and that works too.
Uhm, adding a code from the install.php will not accomplish what we are doing here whatsoever, sorry.
Logged

Danny696

  • Excellent Member
  • ***
  • Reputation Power: 284
  • Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.
  • Offline Offline
  • Posts: 473
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #7 on: November 21, 2009, 03:18:57 AM »
Give me about 10 mins, ill put it  into V2.
Logged
My Game: GraveYard; Madness || Projects; N/A -  Available for work. Please IM/PM me.

Danny696

  • Excellent Member
  • ***
  • Reputation Power: 284
  • Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.
  • Offline Offline
  • Posts: 473
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #8 on: November 21, 2009, 03:22:45 AM »
Just looked at it, on instructions, miss out number 2,4,5,
Logged
My Game: GraveYard; Madness || Projects; N/A -  Available for work. Please IM/PM me.

Diesel

  • Basic Member
  • *
  • Reputation Power: 6
  • Diesel has no influence.
  • Offline Offline
  • Posts: 14
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #9 on: November 22, 2009, 06:01:36 AM »
Thanks Cronus  8)
Logged

catles

  • Basic Member
  • *
  • Reputation Power: 20
  • catles has no influence.
  • Offline Offline
  • Posts: 25
    • View Profile
    • Email
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #10 on: January 11, 2010, 03:35:53 AM »
can i ask what the full sql part should be?
Logged

dmkmonkey

  • Basic Member
  • *
  • Reputation Power: 21
  • dmkmonkey has no influence.
  • Offline Offline
  • Posts: 8
    • View Profile
    • Email
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #11 on: January 11, 2010, 12:06:13 PM »
Is this in V2 yet? If so PM me please :)
Logged

mentaljason

  • Basic Member
  • *
  • Reputation Power: 7
  • mentaljason has no influence.
  • Offline Offline
  • Posts: 17
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #12 on: January 14, 2010, 08:05:40 AM »
hm when i do all the mysql edits i try to load it and it says *Table 'seanl_mccodes.gangs' doesn't exist* any ideas?

Read you error, that table does exist, you have 2 choices find where the script calls for that table and remove/update to suit your db if you just dont have a gangs table then just add it ... im sure someone has a copy of the db.txt, find the gangs and c&p it into your sql manager.
Logged

Jordan

  • Active Member
  • **
  • Reputation Power: 55
  • Jordan has no influence.
  • Offline Offline
  • Posts: 103
  • Website Developer for hire;
    • MSN Messenger - Pudda2008@hotmail.co.uk
    • View Profile
    • WWW
    • Email
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #13 on: February 24, 2010, 03:08:13 AM »
This is pretty good. It's easier and a more "sercure" way as people cannot run the files manually

Logged

Pudda2008@hotmail.co.uk - Feel free to add me on MSN

irsammy

  • Basic Member
  • *
  • Reputation Power: 0
  • irsammy has no influence.
  • Offline Offline
  • Posts: 2
    • View Profile
Re: [MCCode] Remove Energy/Brave/Will Cron
« Reply #14 on: April 01, 2010, 07:42:16 AM »
has this been converted to v2 yet? i'd really like to know how to do this script
Logged
Pages: [1] 2
« previous next »