Eclipse
January 05, 2009, 07:51:17 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Disparity Recruiting by Peter
Today at 07:50:58 PM

Last one to post Wins by Hikaru
Today at 07:46:39 PM

Sig please :) by The BanHammer! [Thor!]
Today at 07:44:03 PM

The New Eclipse Raid on Runscape by ʇıunpp ʎqɹıʞ࣭
Today at 07:42:39 PM

Spike's Adminishness! by Marsh
Today at 07:36:56 PM

My Game by Sʎ|3><(_)z
Today at 07:36:22 PM

THE Cult by ‪‫‬‭‮‪‫‬‭The Admiral
Today at 07:34:15 PM

Server Issue by Xavi
Today at 07:33:20 PM

Azkanan's Workshop (Graphics) by Devogen
Today at 07:28:02 PM

New DezireSoft forums by The BanHammer! [Thor!]
Today at 07:27:15 PM

Members Online +-
17 Guests, 21 Users
Peter,
Southern,
2guns,
l0lz!,
SoiWilliamSoi,
grenegg1,
westin444,
Hikaru,
Amperglyph,
Teh_General,
Echo ♥ Pie,
The BanHammer! [Thor!],
Sʎ|3><(_)z,
ʇıunpp ʎqɹıʞ࣭,
Niko,
‪‫‬‭‮‪‫‬‭The Admiral,
Marsh,
Dr. Who Cares,
Xavi,
Dimx,
Airscar
Pages: [1]
  Print  
Author Topic: Mining script  (Read 1385 times)
0 Members and 1 Guest are viewing this topic.
Ilnair
The Uber-Scriptor
Advanced Member
****
Offline Offline

Posts: 592


The Uber-Scriptor


View Profile WWW Email
« on: March 19, 2006, 11:13:08 AM »

Level: 2/5 (you have to edit a few numbers in the code)

Ok, I know baron made the best script ever for mining, but it's way to complicated, and way to expanded if you just want a simple mining script.

In the game me and my friends are currently making we just want a "gem mine" where you just have to walk around, and if ur lucky, you'll get a gem. To do this, I got the following script. If anyone else wants to use it, good luck.

Quote

Case 0
Dim Rndi
Dim Ply
Dim It

Rndi = Int((500 - 1 + 1) * Rnd) + 1
Ply = 499

If Rndi > Ply Then
   Call PlayerMsg(index, "You just mined a gem!", 1)
   If GetPlayerInvItemNum(index, 24) = 75 Then
      Call SetPlayerInvItemValue(index, 24, GetPlayerInvItemValue(index, 24) + 1)
      Call SendInventoryUpdate(index, 24)
Else
      Call SetPlayerInvItemNum(index, 24, 75)
      Call SetPlayerInvItemValue(index, 24, 1)
      Call SendInventoryUpdate(index, 24)
   End If
End If


To get it working, you first need to replace 75 by the item number you want to reward a lucky player. Also, you will need to replace 499 by the chance the player WON'T get lucky (x/500).
After that, just place scripted tiles 0 in the area where you want the mine, and ur done!

Good luck, I know the script isn't that good (so no use flaming me for it ^_^). If you are gonna use it, good luck.
unixfr3ak
Member
**
Offline Offline

Posts: 74


Green Dixy The Source is Your End


View Profile Email
« Reply #1 on: October 25, 2007, 11:42:50 PM »

looks to be a great script going to try it  question thoe is there a way to set it to money instead  have one for jems and one for money?
the_best_flash
Programmer
Active Member
****
Offline Offline

Posts: 317


View Profile Email
« Reply #2 on: October 26, 2007, 04:29:54 PM »

I don't mean to say my script is better, but...

I have a mining script in the Scripting Database that will randomly give you an item (Can be money or anything) along with an ore while mining... And you can have as many extra items as you want with different chances, and you can set which items can be found with which ores...

Check here.
nava822
Newb
*
Offline Offline

Posts: 9


View Profile Email
« Reply #3 on: Today at 12:55:51 PM »

Level: 2/5 (you have to edit a few numbers in the code)

Ok, I know baron made the best script ever for mining, but it's way to complicated, and way to expanded if you just want a simple mining script.

In the game me and my friends are currently making we just want a "gem mine" where you just have to walk around, and if ur lucky, you'll get a gem. To do this, I got the following script. If anyone else wants to use it, good luck.



To get it working, you first need to replace 75 by the item number you want to reward a lucky player. Also, you will need to replace 499 by the chance the player WON'T get lucky (x/500).
After that, just place scripted tiles 0 in the area where you want the mine, and ur done!

Good luck, I know the script isn't that good (so no use flaming me for it ^_^). If you are gonna use it, good luck.

Well yeah it looks awsome, but i dont know were to put the code :sad:
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.292 seconds with 33 queries.