View Full Version : Level up every 12 hours?
SilverDragonTears
08-16-2011, 05:37 AM
How can I change it so that adopts can be leveled up every 12 hours instead of 24?
Teshia
08-17-2011, 01:09 AM
<3 I'm also interested in this. Age leveling would provide a lot of optional features that I like better than click leveling.
Hall of Famer
08-18-2011, 09:31 AM
Well the best way to accomplish this is to use cronjob. A mark will be placed on your adoptables once it is clicked, and it is removed after 12 hours. If you have PHP 5.3.x, then congratulations, you can manipulate date calculation functions such as "date add", which makes your life much easier. It is recommended only for advanced users with at least VPS hosting package.
SilverDragonTears
08-18-2011, 02:55 PM
ummm... have a detailed way of doing this? :D
Chibi_Chicken
08-19-2011, 03:27 AM
one tutorial that I found was
http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/
I know the kitto script used them to check if the pets were hungry or not, you can look and see how that works and try and adapt it for pets levels.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.