Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-10-2010, 01:56 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Mining Minigame

I made a mining system where you try to dig as deep as possible. Hopefully, this video explains it:


You use a pickaxe to dig, and every few blocks you get a mineral. If you dig on a specific spot, you will find a ladder to a new and often better mining level. To help you, this thing beeps when you get close to a new ladder: Name:  mine_sensor.png
Views: 962
Size:  1.3 KB
The place is dark, so sometimes you need lanterns to reach the next ladder.
If you stay too long in a mine, it will collapse and you will lose your minerals. That's why you should always wear a helmet.

If you dig deep enough you might find one of the special levels.

The minerals and pickaxe graphics where made by some cool people and then posted in the Free Images thread.

You can try the script out without installing it. If you have access to Testbed, you can warp to mine_surface.nw. Otherwise, you can log on Maloria, which has a modified version of this script not too far away from the starting location (at the time of writing).

Name:  mine_robominer_spin.gif
Views: 952
Size:  630 Bytes
Attached Files
File Type: zip miningSystem.zip (125.0 KB, 678 views)
Reply With Quote
  #2  
Old 10-10-2010, 01:57 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Credits to me for ensuring that the levels weren't made of the same tile flood filled! Good job though, really recommend people to check out both the Testbed and Maloria version as they differ quite a bit.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 10-10-2010, 02:08 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
That's VERY nice.
Reply With Quote
  #4  
Old 10-10-2010, 03:21 PM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to allff7chocoboknight is a name known to all
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
Hot stuff.
__________________
Reply With Quote
  #5  
Old 10-10-2010, 04:27 PM
Cloven Cloven is offline
Delteria
Cloven's Avatar
Join Date: Dec 2006
Location: Florida, United States
Posts: 542
Cloven has a spectacular aura about
Send a message via AIM to Cloven
Nice job.
Reply With Quote
  #6  
Old 10-10-2010, 04:33 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Good idea, I like it.
Reply With Quote
  #7  
Old 10-10-2010, 06:15 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
neat
__________________
Reply With Quote
  #8  
Old 10-10-2010, 06:48 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
There better be a Chilean Miner easter egg in this game.
__________________
Quote:
Reply With Quote
  #9  
Old 10-10-2010, 07:19 PM
kia345 kia345 is offline
z0rbi 4 life 🤘
kia345's Avatar
Join Date: Dec 2006
Location: delteria
Posts: 6,737
kia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond repute
That's pretty nifty bro
__________________
pojo
Reply With Quote
  #10  
Old 10-10-2010, 07:58 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
It reminds me of an old flash game I played for a while, don't remember the name. Nice idea. I will definitely be using this concept in some of my future projects. Thanks for this.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #11  
Old 10-10-2010, 08:12 PM
Seeya Seeya is offline
ω
Seeya's Avatar
Join Date: Jul 2007
Location: Seminole, FL
Posts: 1,903
Seeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to behold
Send a message via AIM to Seeya
Very neat, i wish it didn't have a time limit though. Ruins the fun for me being stressed like that. I'd rather just have a set amount of lantern fuel, or something, so if i run out it's not even worth still being in there.
__________________
Kale Vimes

Reply With Quote
  #12  
Old 12-19-2010, 08:34 AM
Demisis_P2P Demisis_P2P is offline
Kanto League Champion
Demisis_P2P's Avatar
Join Date: Jan 2005
Posts: 2,357
Demisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud of
Quote:
Originally Posted by Seeya View Post
Very neat, i wish it didn't have a time limit though. Ruins the fun for me being stressed like that. I'd rather just have a set amount of lantern fuel, or something, so if i run out it's not even worth still being in there.
Would be neat if every level you gained another 10-15 seconds. That should take some of the stress away and make it possible to get much deeper into the mine.
And then to balance it out every 5 or 10 levels make it so the rocks become harder and take an extra hit to break.

So that instead of always getting to levels 5-7 you might only make it to level 6 sometimes, but occasionally you'll make it as far as level 12. Which would create a better distribution of minerals.

And then you could expand it further by making a new pick that takes 500 of a mineral only found above level 10 to make that breaks rocks in level 5-10 in one hit. etc.

I love this mining system though, there is so much that could be done with it.

Heck I'd even consider making it so that you could see where the minerals are in each level, so that people might waste more time in the higher levels trying to get those minerals instead of rushing down into the lower levels.
__________________
Reply With Quote
  #13  
Old 10-11-2010, 12:54 AM
smirt362 smirt362 is offline
Tee Hee
smirt362's Avatar
Join Date: Feb 2005
Location: Texas
Posts: 2,101
smirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant future
Send a message via AIM to smirt362 Send a message via MSN to smirt362
One thing that bothered me about this system was, it has to get REALLY dark in the mine before you place down another lantern. Can you set the threshold a little higher?
__________________

Don Hertzfeldt <3
Reply With Quote
  #14  
Old 10-11-2010, 06:37 AM
Seeya Seeya is offline
ω
Seeya's Avatar
Join Date: Jul 2007
Location: Seminole, FL
Posts: 1,903
Seeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to beholdSeeya is a splendid one to behold
Send a message via AIM to Seeya
make hitting "f" drop a lantern.

and what do the warning birds do? urma ha ha!
__________________
Kale Vimes

Reply With Quote
  #15  
Old 10-11-2010, 05:35 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by smirt362 View Post
One thing that bothered me about this system was, it has to get REALLY dark in the mine before you place down another lantern. Can you set the threshold a little higher?
That never bothered me. It would bother me if lanterns were placed too early.

Quote:
Originally Posted by Seeya View Post
and what do the warning birds do? urma ha ha!
It's a joke item that doesn't do anything.
Reply With Quote
  #16  
Old 12-18-2010, 06:13 PM
Australia Australia is offline
Registered User
Join Date: Dec 2010
Posts: 4
Australia is on a distinguished road
I did all the the instructions. I hit TNT, I then walk to ladder and it says 'Failed'? help please.
Reply With Quote
  #17  
Old 12-18-2010, 06:56 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Australia View Post
I did all the the instructions. I hit TNT, I then walk to ladder and it says 'Failed'? help please.
I believe the author forgot to mention in the installations that you have to give write rights for levels to the NPC Server. Here's how you do that:


1) /openrights (npcserver)
2) Add the following line to it's Folder rights:
PHP Code:
rw levels/mines/*.nw 
3) Hit the Apply button. You're done!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #18  
Old 12-19-2010, 04:06 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by xXziroXx View Post
I believe the author forgot to mention in the installations that you have to give write rights for levels to the NPC Server. Here's how you do that:


1) /openrights (npcserver)
2) Add the following line to it's Folder rights:
PHP Code:
rw levels/mines/*.nw 
3) Hit the Apply button. You're done!
The above, and you also need to:

1) Add "level mines/*.nw" to folderconfig.
2) Give yourself "rw levels/mines/*.nw"
3) Upload a dummy level (any level) into levels/mines and then delete it.

Not sure about the dummy level but it doesn't hurt to try if you're having trouble.
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
  #19  
Old 12-19-2010, 12:45 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by DrakilorP2P View Post
Not sure about the dummy level but it doesn't hurt to try if you're having trouble.
Dummy level is required to physically create the folder before the NPC Server can do anything with it by the use of script.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #20  
Old 12-19-2010, 10:43 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
Dummy level is required to physically create the folder before the NPC Server can do anything with it by the use of script.
Are you sure? I've definitely never had to do this (and neither has anyone who used folders like mudaccounts/c/b/cbk1994.txt).
__________________
Reply With Quote
  #21  
Old 07-03-2012, 02:33 PM
Fanty Fanty is offline
Registered User
Join Date: Mar 2012
Posts: 7
Fanty is on a distinguished road
Quote:
Originally Posted by Australia View Post
I did all the the instructions. I hit TNT, I then walk to ladder and it says 'Failed'? help please.
same to me
__________________
Orangina Lovers not welcome.
Reply With Quote
  #22  
Old 12-19-2010, 02:28 AM
Australia Australia is offline
Registered User
Join Date: Dec 2010
Posts: 4
Australia is on a distinguished road
See doesnt work, here is what RC says: Error: Pickaxe: useLadder error - Couldn't climb to 0
Reply With Quote
  #23  
Old 12-19-2010, 02:39 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by Australia View Post
See doesnt work, here is what RC says: Error: Pickaxe: useLadder error - Couldn't climb to 0
That mostly likely means that the level isn't created. Can you confirm if it is?
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
  #24  
Old 12-19-2010, 02:45 AM
Australia Australia is offline
Registered User
Join Date: Dec 2010
Posts: 4
Australia is on a distinguished road
What do you mean, I uploaded all the levels. I wasnt sure where to upload GANI to so I uploaded it to levels.
Reply With Quote
  #25  
Old 12-19-2010, 02:46 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by Australia View Post
What do you mean, I uploaded all the levels. I wasnt sure where to upload GANI to so I uploaded it to levels.
When you hit the TNT the script creates a fresh new level you can climb down to and dig in.
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
  #26  
Old 12-19-2010, 02:54 AM
Australia Australia is offline
Registered User
Join Date: Dec 2010
Posts: 4
Australia is on a distinguished road
Come on a server called Australia, ill show.
Reply With Quote
  #27  
Old 12-19-2010, 03:42 AM
DemonSpawnn DemonSpawnn is offline
GFX
Join Date: Sep 2010
Location: .
Posts: 218
DemonSpawnn will become famous soon enough
This... This is amazing, thank you for making a mining system that is actually fun!
Reply With Quote
  #28  
Old 12-19-2010, 11:06 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I've used dummy files just so they show up in File Browser for cases where your folder rights consist of mostly wild cards.
__________________
Quote:
Reply With Quote
  #29  
Old 07-03-2012, 02:31 PM
Fanty Fanty is offline
Registered User
Join Date: Mar 2012
Posts: 7
Fanty is on a distinguished road
I added everything but at the level mine_surface.nw when i hit TNT with sword it opens that door then you see the leder but it says failed like Australia said -.- xD Please reply
__________________
Orangina Lovers not welcome.
Reply With Quote
  #30  
Old 07-04-2012, 03:34 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by Fanty View Post
I added everything but at the level mine_surface.nw when i hit TNT with sword it opens that door then you see the leder but it says failed like Australia said -.- xD Please reply
If the rest of the thread didn't help then I'm not sure what the problem is.
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
  #31  
Old 01-13-2013, 09:25 PM
Stowen Stowen is offline
Graalian since '01
Join Date: Sep 2005
Location: Massachusets, USA
Posts: 156
Stowen will become famous soon enough
Send a message via AIM to Stowen Send a message via MSN to Stowen
This is pretty awesome. I've incorporated into my server! The only issue I have found, is that the cave collapse gani keeps dropping the whole sprites.png image. and not just the rock part. I took a peak at the script...it looks fine. Any ideas?
__________________
Quote:
Originally Posted by Felix_Xenophobe View Post
He is no carpenter's son but Stowen will breathe life into pc graal.
Unholy Nation is my home.
Reply With Quote
  #32  
Old 01-21-2013, 07:36 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by Stowen View Post
This is pretty awesome. I've incorporated into my server! The only issue I have found, is that the cave collapse gani keeps dropping the whole sprites.png image. and not just the rock part. I took a peak at the script...it looks fine. Any ideas?
I've seen this happen and couldn't figure out how to fix it. It'll probably be easier to make a new image with just the rock in it and skip the whole partx/y/w/h.
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.