Jump to content

ibag

Pending 2.0.19

NEXT
NEXT

Posted

The meat you put in the ibag is
There is a phenomenon in which products spoil before the expiration date.

NEXT

Posted

It would be a good idea to record a video,
but I don't want to go that far.
It's just a minor bug.
Other admins may also have similar inquiries.

I'll leave it up to you to decide whether to fix it or not.

NEXT

Posted

Just to confirm, is it true that "food in an ibag will not spoil"?

imthenewguy

Posted

I spawned some raw bear meat. Added it to my ibag. Closed the bag, opened it, and it was fine.

imthenewguy

Posted

It's impossible to determine from such a short clip.
The bag restores items with the correct spoil time, but the issue may occur if the first item of a certain type has a lower spoil time than others.

The logic:

  • Player closes their ibag.
  • Plugin goes through each slot 1 by 1 to add them to the dictionary which stores the values such as quantity, spoil times, skin ids, names etc.
  • In our imaginary scenario, the first item is raw bear meat with a spoilage timer of 200 seconds. This gets added to the dictionary and its spoilage value stored.
  • The second item in the list is the same item (raw bear meat). Since we already have raw bear meat added to the dictionary, it will automatically add the bear meat to the existing entry and simply increase the count. It does not take into consideration the spoilage timer of the second bear meat as we have already have a value.
  • Each time the bag gets opened, the items spoilage will begin counting down.
  • Eventually the stack of bear meat will get to 0 and will spoil.
NEXT

Posted

Okay.
I will inform players that the food in the ibag will not spoil, but it will spoil occasionally.
Thank you

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • 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.