Jump to content
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
Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...