Hi,
Is it possible to edit resources without multiplying it ? Like oxide, I want a woodpile to give 20 wood a hit.
Is it possible to edit resources without multiplying it ? Like oxide, I want a woodpile to give 20 wood a hit.
Yeah possibleHi,
Is it possible to edit resources without multiplying it ? Like oxide, I want a woodpile to give 20 wood a hit.
Can you make a plugin for it please ? If you can do it I want to use fougerite on my server.Yeah possible
Try this.Can you make a plugin for it please ? If you can do it I want to use fougerite on my server.
__author__ = 'DreTaX'
__version__ = '1.0'
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
"""
Config
"""
Wood = 1
Sulfur = 1
MetalOre = 1
Stone = 1
Leather = 1
Cloth = 1
Chicken = 1
AnimalFat = 1
Blood = 1
"""
Class
"""
class GatherChanger:
def On_PlayerGathering(self, Player, GatherEvent):
if GatherEvent.Item == "Wood":
GatherEvent.Quantity = Wood
elif GatherEvent.Item == "Sulfur Ore":
GatherEvent.Quantity = Sulfur
elif GatherEvent.Item == "Metal Ore":
GatherEvent.Quantity = MetalOre
elif GatherEvent.Item == "Stones":
GatherEvent.Quantity = Stone
elif GatherEvent.Item == "Leather":
GatherEvent.Quantity = Leather
elif GatherEvent.Item == "Cloth":
GatherEvent.Quantity = Cloth
elif GatherEvent.Item == "Raw Chicken Breast":
GatherEvent.Quantity = Chicken
elif GatherEvent.Item == "Animal Fat":
GatherEvent.Quantity = AnimalFat
elif GatherEvent.Item == "Blood":
GatherEvent.Quantity = Blood
I think this will give what I assigned to variables with any item. Means if I hit with a rock it will give 5 wood and if I hit with a hatchet it will give the same. I want to change a woodpile's total amount of wood and gather rate. Like this plugin in oxide: http://oxidemod.org/plugins/gather-multiplier.974/Try this.
It's untested, but It should work. It will give exactly the same number to the player what you set at the config area
Name: GatherChanger.py
Python:__author__ = 'DreTaX' __version__ = '1.0' import clr clr.AddReferenceByPartialName("Fougerite") import Fougerite """ Config """ Wood = 1 Sulfur = 1 MetalOre = 1 Stone = 1 Leather = 1 Cloth = 1 Chicken = 1 AnimalFat = 1 Blood = 1 """ Class """ class GatherChanger: def On_PlayerGathering(self, Player, GatherEvent): if GatherEvent.Item == "Wood": GatherEvent.Quantity = Wood elif GatherEvent.Item == "Sulfur Ore": GatherEvent.Quantity = Sulfur elif GatherEvent.Item == "Metal Ore": GatherEvent.Quantity = MetalOre elif GatherEvent.Item == "Stones": GatherEvent.Quantity = Stone elif GatherEvent.Item == "Leather": GatherEvent.Quantity = Leather elif GatherEvent.Item == "Cloth": GatherEvent.Quantity = Cloth elif GatherEvent.Item == "Raw Chicken Breast": GatherEvent.Quantity = Chicken elif GatherEvent.Item == "Animal Fat": GatherEvent.Quantity = AnimalFat elif GatherEvent.Item == "Blood": GatherEvent.Quantity = Blood
GatherPlus?I think this will give what I assigned to variables with any item. Means if I hit with a rock it will give 5 wood and if I hit with a hatchet it will give the same. I want to change a woodpile's total amount of wood and gather rate. Like this plugin in oxide: http://oxidemod.org/plugins/gather-multiplier.974/
This just multiplies the gathered items. I need to edit a woodpile's total amount of woods or any other resources.
I seeThis just multiplies the gathered items. I need to edit a woodpile's total amount of woods or any other resources.
You could implement this by adding the Resource Spawn event to the plugin and modifying the stuffs there
Will most likely setup a Fougerite test server for myself in the next few days.@Jakkee
def On_ResourceSpawn(self, ResourceTarget):
ResourceTarget is a rust class, you might need to look in the Assembly.
Whehehe. Come on, just get a dotpeek and decompile that class xdWill most likely setup a Fougerite test server for myself in the next few days.
Maybe. That might be possible. Hold on. I will build you a debug version.http://prntscr.com/81heyr
Maybe it equals null?
It should give a lot more info.http://prntscr.com/81heyr
Maybe it equals null?
def On_ResourceSpawned(self, ResourceTarget):
Util.Log("RESOURCE SPAWNED")