Michael_notfromCCG
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by Michael_notfromCCG
-
-
Doing this from memory, at work so you may need to alter a couple of bits:
"unlock" vehicles after 10 days:
UPDATE object_data SET charID = 0 WHERE `datestamp` < DATE_SUB(NOW(), INTERVAL 10 DAY);
Delete vehicles that are 14 days old:
DELETE FROM object_data WHERE `datestamp` < DATE_SUB(NOW(), INTERVAL 14 DAY);
As for the last one, I would need to be at my actual PC for that. Hope those other 2 queries help
-
Don't quote me on this, but i think if you set it to "-1", you won't have any decay
-
Hey bud, found this post:
Might help you add in some skins for you and your buddies
-
Nice. I have actually been working on something similar for my un-named community.
Example - http://mtcaldwell.co.uk/newCCG.php
Features:
- Live Killboard
- Top Hero
- Top Bandit
- Wealthiest player*
Still a big work in progress, as I never knew any HTML, CSS, PHP or Javascript before I started, now I am using it all :D
*Quite a smart query works this out. (obviously specific to our servers, due to currency). But it looks at how much money you have on you at the moment, how much you have in the bank and calculates the value of all your stored gold and briefcases. Does this and works how who is the richest on the server. (Broken just now, so won't load. I accidentally broke it when trying to do some optimizing to make the query responsible work quicker). This query could be adapted to servers that use the standard currency, assuming you have playerID attached to objects.
I'd be happy to exchange notes.
-
UPDATE character_data SET `inventory` = REPLACE(`inventory`,'BAF_AS50_scoped_DZ','MR43'); UPDATE character_data SET `backpack` = REPLACE(`backpack`,'BAF_AS50_scoped_DZ','MR43'); UPDATE object_data SET `inventory` = REPLACE(`inventory`,'BAF_AS50_scoped_DZ','MR43');
Run a query with the above in it.
It is difficult to remove something from the database, due to the way that the inventory system works in the database. The SQL code above will replace the AS50 with MR43 (Double Barrel Shotgun). There are numerous variants of AS50 though, so make sure you have the right one.
Hope that helps :)
Need help with lowering the amount of locked vehicles
in Scripting
Posted
It will be characterID (sorry, wasn't at home PC). That stores the vehicle key number.
Also worth trying, is the No Key cleanup. It comes in the recommended mysql events. It "should" delete all vehicles, where the key has been lost. It can be buggy from time to time, but is generally awesome. Run these 2 to create the functions, then simply run "SELECT DeleteNonKeyVehicles();" to delete those vehicles.