![]() |
Script: Mining
Here is a mining system, also posted in the interest of education. Since I will probably never use these scripts, it makes sense to post them for other people!
There are two parts to the mining system; you will need to add the mining class (which is the script for the rocks), and you will also require the axe. If you put the mining class in a class called "mining", then use the following to make a rock in a level: PHP Code:
You'll need to edit the mining class though; first, you'll need to put the appropriate images in the right place so the rock looks like it's being mined. Secondly, you'll have to insert your own item adding routine, so that you can actually add the item to the player. The method was different on Rudora, so it's no good putting that in there. It's a fairly old script and could probably do with some work, especially if you want it to be more complex. Enjoy. Axe weapon: PHP Code:
PHP Code:
|
Hahaha. Owner tags. MYSTERIOUS CONCEPT.
|
Oh, thanks, you just saved me about 10 minutes! :D
|
Quote:
The Code Gallery just gets less and less posts/releases as the time goes by, as if scripters jsut want to release big and fancy stuff.. |
Quote:
|
Isn't sleep() GS1 and shouldn't be used in GS2 at all?
It screws up my timers rofl |
no, just don't add a sleep inside a timeout lol
|
| All times are GMT +2. The time now is 05:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.