shadowrecon Posted June 20, 2012 Share Posted June 20, 2012 (edited) 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 June 20, 2012 by shadowrecon Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted June 22, 2012 Share Posted June 22, 2012 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) Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted June 22, 2012 Author Share Posted June 22, 2012 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. Quote Link to comment Share on other sites More sharing options...