Jump to content

InstantButcher giving 10x the amount of Reward

Pending 2.1.31

Rust Admin
  • in Skills
Rust Admin

Posted

We use RustRewards and when a player has instant butchering skill, they are being given 10x the amount of reward when skinning an NPC.
 

 

  • Administrator
Steenamaroo

Posted

Are they getting the expected reward but ten times,
or one single reward which is 10X what's expected?

I don't know what instant butchering skill is.

  • Curator
Mevent

Posted

@Rust Admincan u send me ur configs from Skills & Rust Rewards? 

  • Like 1
Rust Admin

Posted

1 hour ago, Steenamaroo said:

Are they getting the expected reward but ten times,
or one single reward which is 10X what's expected?

I don't know what instant butchering skill is.

They are getting the expected reward 10x in a row.

  • Like 1
Rust Admin

Posted (edited)

I have done additional testing.

The additional RP reward ONLY happens with a (Jackhammer or chainsaw) + Instant Butchering skill.

image.png.030331ae89315f3a9d01a435465faa8f.png


Here is the RustRewards config:
 

"Harvest": {
      "Flesh": {
        "Airfield": 5.0,
        "anchovy.item": 0.0,
        "APCScientist": 0.0,
        "APCScientistHeavy": 0.0,
        "ArcticResearchBase": 5.0,
        "BanditTown": 0.0,
        "bear.corpse": 5.0,
        "bear_tutorial.corpse": 0.0,
        "boar.corpse": 0.0,
        "BotReSpawn": 5.0,
        "CargoShip": 5.0,
        "catfish.item": 0.0,
        "chicken.corpse": 0.0,
        "chicken.corpse.tutorial": 0.0,
        "CompoundScientist": 5.0,
        "crocodile.corpse": 0.0,
        "DesertScientist": 5.0,
        "DungeonScarecrow": 0.0,
        "Excavator": 5.0,
        "frankensteinpet_corpse": 0.0,
        "Gingerbread": 0.0,
        "gingerbread_corpse_female": 0.0,
        "gingerbread_corpse_male": 0.0,
        "HeavyScientist": 5.0,
        "herring.item": 0.0,
        "horse.corpse": 1.0,
        "JungleScientist": 0.0,
        "JunkPileScientist": 5.0,
        "LaunchSite": 5.0,
        "MilitaryTunnelScientist": 5.0,
        "MountedScientist": 5.0,
        "NuclearMissileSilo": 0.0,
        "OilRig": 5.0,
        "orangeroughy.item": 0.0,
        "panther.corpse": 0.0,
        "player_corpse": 2.0,
        "player_corpse_new": 0.0,
        "polarbear.corpse": 5.0,
        "salmon.item": 0.0,
        "sardine.item": 0.0,
        "ScareCrow": 0.0,
        "scientist2.corpse": 5.0,
        "scientist2.heavy.corpse": 5.0,
        "shark.corpse": 0.0,
        "smallshark.item": 0.0,
        "smalltrout.item": 0.0,
        "snake.entity": 0.0,
        "stag.corpse": 5.0,
        "tiger.corpse": 5.0,
        "Trainyard": 5.0,
        "TunnelDweller": 5.0,
        "UnderwaterDweller": 5.0,
        "wolf.corpse": 5.0,
        "yellowperch.item": 5.0
}

 

Edited by Rust Admin
  • Administrator
Steenamaroo

Posted (edited)

I'm not sure if I can help here or not.
I still don't know what butchering skill is, but I know RustRewards waits for a small amount of time then checks if the corpse is gone
to give out the reward.

If you hit a corpse and it finds the corpse is still there, a fraction of a second later, it won't reward you.


That means you can't get the reward twice because the sequence has to be hit corpse - wait - corpse is gone...give reward.

The only way that could go wrong is if something "hits" the corpse for you loads of times at the same moment,
which I guess some plugin you have is doing?

Edited by Steenamaroo
Rust Admin

Posted

7 minutes ago, Steenamaroo said:

I'm not sure if I can help here or not.
I still don't know what butchering skill is, but I know RustRewards waits for a small amount of time then checks if the corpse is gone
to give out the reward.

If you hit a corpse and it finds the corpse is still there, a fraction of a second later, it won't reward you.


That means you can't get the reward twice because the sequence has to be hit corpse - wait - corpse is gone...give reward.

The only way that could go wrong is if something "hits" the corpse for you loads of times at the same moment,
which I guess some plugin you have is doing?

Yeah i suppose using NextTick() is causing this to fire multiple times before the dispenser is destroyed...or some scenario like that.
An option to disable jackhammer and/or chainsaw in the HandleInstantSkillGather function is ideal at this point.

 

  • Administrator
Steenamaroo

Posted

No, I'm not sure you follow me.
NextTick isn't causing anything to fire multiple times.
NextTick is the way of preventing that - Waiting for a moment to ensure the corpse is gone before giving a reward.

For it to break, something must be simulating hitting the corpse multiple times in the same tick.
There are better ways to do it.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.6k
Customers served
Files Sold
165.3k
Total sales
Payments
3.6m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.