Garry's Mod Leaks

[LEAK] Zeros RetroMiner (Mining Script)

Submitted by ForTrueGmod, , Thread ID: 158773

Thread Closed
15-02-2020, 07:44 PM
#1
https://www.gmodstore.com/market/view/5119

This is the ultimate mining and refining script! In this Addon you can harvest, melt and sell many ores!

[Image: nBAW6ig.png]
You can harvest diffrent Ores with a pickaxe or a mineshaft and collect them in a gravelcrate. The collected Ores are then put in a RockCrusher were they get crushed and moved to a Refinery via a conveyorbelt were they get refined and collected in a Refiner Crate.
The refined ore and coal can now be filled in the Melter were it gets melted in to Bars. The finished Bars get now put in a fancy Storagecrate and sold by a Metal Buyer.


[Image: OALU7fn.png]
Public Pipeline Tutorial
English Tutorial by Ratatouille: Click Here
French Tutorial by KADABRA: Click Here

  1. Take the job "Retro Miner"

  2. Choose your Pickaxe and smash it on the rocks

  3. Purchase a RockCrusher, a Conveyorbelt and a Refinery

  4. Put a Refiner - Crate under the Refinery

  5. Purchase a Melter and fill it with Coal and refined ore

  6. Wait for your ore to be molten in to Ingots and put them in a Storage Crate

  7. Go to a Metal Buyer and sell your StorageCrate

[Image: HMZRzPj.png]
Please take the time to review my script. Negative and Positive critic is welcome.

[Image: Q7yZldD.png]
If you found some bugs please use the gmod ticket system to contact me.
Thanks.


[Image: pOOaXZE.png]
[Image: giphy.gif]
[Image: giphy.gif]
[Image: giphy.gif]
[Image: giphy.gif]

[b]Dev[/b]
// Here are some Hooks you can use for Custom Code

// Called when the player hits a ore entity
hook.Add("zrmine_OnPickaxeHit", "zrmine_OnPickaxeHit_Vrondakis", function(ply, HitPos, OreEntity)
if IsValid(ply) and (LevelSystemConfiguration or manolis) then
ply:addXP(zrmine.config.Vrondakis["Mining_pickaxe"].XP, " ", true)
end
end)

// Call when a Mine Entrance produces ore entities
// *Note* The player variable can be nil if the MineEntrance is public
hook.Add("zrmine_OnOreMined", "zrmine_OnOreMined_Vrondakis", function(ply, MineEntity)
if IsValid(ply) and (LevelSystemConfiguration or manolis) then
ply:addXP(zrmine.config.Vrondakis["Mining_mine"].XP, " ", true)
end
end)

// Called when Ore gets Crushed
hook.Add("zrmine_OnOreCrushing", "zrmine_OnOreCrushing_Vrondakis", function(ply, Crusher, OreType, OreAmount)
if IsValid(ply) and (LevelSystemConfiguration or manolis) then
ply:addXP(zrmine.config.Vrondakis["Crushing"].XP, " ", true)
end
end)

// Called when a refinery refines ore
hook.Add("zrmine_OnOreRefined", "zrmine_OnOreRefined_Vrondakis", function(ply, Refinery, OreType, OreAmount)
if IsValid(ply) and (LevelSystemConfiguration or manolis) then
ply:addXP(zrmine.config.Vrondakis["Refining"].XP, " ", true)
end
end)

// Called when the player produces metal bars
hook.Add("zrmine_OnMelting", "zrmine_OnMelting_Vrondakis", function(ply, Melter, BarType)
if IsValid(ply) and (LevelSystemConfiguration or manolis) then
ply:addXP(zrmine.config.Vrondakis["Melting"].XP, " ", true)
end
end)

// Called when the player produces metal bars
hook.Add("zrmine_OnSelling", "zrmine_OnMelting_Vrondakis", function(ply, BuyerNPC, SellProfit, MetalBarsTable, Earnings)
if IsValid(ply) and (LevelSystemConfiguration or manolis) then
ply:addXP(zrmine.config.Vrondakis["Selling"].XP, " ", true)
end
end)






Content locked
This content has been locked. Please login or register in order to unlock it.
The link in this hidden content has been reported as down 0 times this month.
1 times in total

RE: [LEAK] Zeros RetroMiner (Mining Script)

#2
Thank You!

I really appreciate you,
Your helpful, giving ways,
And how your generous heart
Your unselfishness displays.

I thank you for your kindness,
I will not soon forget;
Youre one of the nicest people
I have ever met.

Users browsing this thread: 1 Guest(s)