hello, thanks for plugin <3
i have message about 5 minutes after start quarry with 1 diesel, but it work 2 minutes 10 seconds, yeah?
hello, thanks for plugin <3
i have message about 5 minutes after start quarry with 1 diesel, but it work 2 minutes 10 seconds, yeah?
and when, in the presence of a cool down, I press to start the engine, the names of the quarries are displayed according to the selected client language, I would like to pull them up from the language file as well:
"Mining Quarry":
"Pump Jack":
There is a message to the player when the quarry start or stop,
And there is a broadcast message a few minutes later, after the cooldown.
Cooldown is to allow some time to loot before it unlock.
for one diesel, its around 5 min for the broadcast.
These value can be modified in the config file
For the lang. file, those 2 are already in the language. so you can customize them to your preference in the oxide/lang/?? folder
"Mining Quarry": "Mining quarry",
"Pump Jack": "pump jack",
I'm sorry, I didn't express myself correctly.
when I start a quarry with 1 diesel, a message is displayed that the quarry has been running for 5 minutes, on the next attempt, a message was displayed that the quarry has been running for 3 minutes, but the quarry with 1 diesel barrel should work for 2 minutes 10 seconds.
about messages, yes, everything works, except for displaying a message to the player when trying to start a quarry, when he has an active cooldown to use, check the code, please, I think you will immediately see what I mean, thanks :)
The plugin does not run the quarry or detemine how long it will run.
It just Lock the looting to the player using it. and display value based on internal FP variables
If there is some diesel left in the engine (not in loot storage), it will run for more the 2m10 with one barrel.
Not sure why you are arguing about 3m vs 2m10, it was my choice to round up . If you put 10 diesel it will run for 21 minutes (if engine was empty)
var FuelTime = (quarry.processRate * (quarry.pendingWork + quarry.workPerFuel * (float)itemcnt) / (quarry.workToAdd * 60f));
in that calculation, (quarry.workPerFuel * (float)itemcnt) is the fuel put in the reservoir
and quarry.pendingWork is the fuel remaining in the engine (not visible).
I will have a look at the messages. I will update in the next revision.
okey, thanks.
but in minute 60 seconds, not 100 :D
2.10 = 130 sec -> 130 seconds * 10 diesel = 1300 seconds = 21.66 minutes
130 seconds * 6 diesel = 780 seconds = 13 minutes (its work fine)
thanks a lot for update <3