Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Sign in to follow this  
shadowrecon

Ore Respawn calculator

Recommended Posts

This function returns the time it will take for an ore to re spawn depending on how many people are in the world.

 

[scar]

Const

Ore_Clay = 0;

Ore_Tin = 1;

Ore_Copper = 2;

Ore_Iron = 3;

Ore_Silver = 4;

Ore_Coal = 5;

Ore_Gold = 6;

Ore_Mithril = 7;

Ore_Adamant = 8;

Ore_Rune = 9;

 

function OreRespawnTime(Population, Ore: Integer): Extended;

Var

St: Integer;

Begin

Case Ore of

Ore_Clay: St := 2; // Time in seconds to respawn.

Ore_Tin: St := 4;

Ore_Copper: St := 4;

Ore_Iron: St := 10;

Ore_Silver: St := 120;

Ore_Coal: St := 60;

Ore_Gold: St := 120;

Ore_Mithril: St := 240;

Ore_Adamant: St := 480;

Ore_Rune: St := 1500;

end;

Result := St - ((Population * 0.00025) * St);

end;

[/scar]

 

Site i got the chart from to make the formula

 

http://runescape.salmoneus.net/skills/mining.html#ore_respawn_times

 

formula = InitalRespawnTime -((Population * .00025) * InitalRespawnTime)

Edited by shadowrecon

Share this post


Link to post
Share on other sites

Dang that looks really useful:) Um, is there a function or procedure to check how many players are online in the current world? Because then you could call this function as something like:

((GetPlayersOnline), Ore_Iron)

Share this post


Link to post
Share on other sites
Dang that looks really useful:) Um, is there a function or procedure to check how many players are online in the current world? Because then you could call this function as something like:

((GetPlayersOnline), Ore_Iron)

 

Thats the problem, you would need to make a custom login procedure to get the players online in the world you are in =/ But it will give you a rough estimate of ore re spawn times ect.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×