Make sure you're using the latest version of the plugin.
OilCrate
Brings the pump jack back into the game
Total Downloads: 2,961 - First Release: Feb 20, 2017 - Last Update: Apr 19, 2018
- 5/5, 16 likes
-
Wulf Community Admin
-
Hello! I tried to read some of your code to understand what it does. To enable players to deploy their pump jacks i have to grant them permission:
`grant permission default oilcrate.allow`? otherwise they won't be able to place pumps jacks? because they also then get access to the chatcommands which should only be useable by admins? -
@Wulf I currently have the latest version of the plugin
-
Wulf Community Admin
-
@Wulf you were right, i was not running the current version of the plugin, thank you
-
-
-
Thank you for the fast fix! @Kaleidos
I also suggest a small function so a player can "craft" the pump jack. I tried to enqueue an `ItemCraftTask` but one needs an `ItemBlueprint` for this. I tried different version to get one but I always got null. If someone knows more than me here please give me your input. Otherwise I propose the following addition:
Code:[ChatCommand("craftPJ")] private void craftPumpJack(BasePlayer player, string command, string[] args) { if(player.inventory.containerMain.IsFull()) { SendReply(player, "Your inventory is full"); return; } // 3655341 Wood 10000 // 688032252 Metal Fragments 1750 // 98228420 Gears 15 int amount = player.inventory.GetAmount(3655341); int amount2 = player.inventory.GetAmount(688032252); int amount3 = player.inventory.GetAmount(98228420); if (amount < 10000 || amount2 < 1750 || amount3 < 15) { SendReply(player, "You don't have the necessary items to craft the PumpJack! You need:\n- 10000 Wood\n- 1750 Metall Fragments\n- 15 Gears"); return; } var pumpJack = ItemManager.CreateByName("mining.pumpjack", 1); if ( pumpJack == null ) { SendReply(player, "Can't create the pump jack! Please contact an admin!"); return; } player.inventory.Take(null, 3655341, 10000); player.inventory.Take(null, 688032252, 1750); player.inventory.Take(null, 98228420, 15); player.inventory.GiveItem(pumpJack, player.inventory.containerMain); SendReply(player, "Pump Jack is in your inventory!"); }
P.P.S.: It probably would also be good to have a seperate permission for this function( e.g. "cancraftpumpjack") & if the price of the PJ is adjustable via config. But atm I think this function would help a lot of servers.
P.P.S.: Pump Jacks can't be repaired right now? I think this would be also a good think if it's possible but I think it isn't! Can someone proof me wrong please?Last edited by a moderator: Mar 14, 2017 -
Wow! Thanks for your amazing support!
I know about this possibility but i hate to use chat commands for something like this. (it just feels unnatural)
I'll implement this anyways. But i'll also will create a possibility to craft a pump jack without using any command. -
-
on my server we have put pumpjacks in the airdrops and also have the feature in the config file turned on so if you strike oil it pops a pumpjack out of the ground too.
-
-
-
-
-
-
Wow that pickaxe thing is really smart ... BawsKaleidos
[DOUBLEPOST=1489569386][/DOUBLEPOST]Maybe u should do it like that = Having an Quarry with 100Crued Oil in invetory and hitting it than changes this into a Pumpjack...
And when a surveycharge finds cruedoil a message should be printed to the plaqyer like u Need quarry + 100oil to create a pumpjack... guess u know what i mean. -
Maybe the simplest solution (for the user) would be to just use a normal quarry to automatically transform to a pump jack on deploy on a oil puddle???? Would somebody else also prefer this behaviour? -
-
Pode dar-me uma ajuda i tempo para colocar o petroleiro que fala que eu não estou autorizado a usá-lo tanto quanto os meus jogadores ..