Data5 (maxRestock) usage for GameObjects type 3

Hello all, would someone be able to tell me what the maxRestock value (data5 for GAMEOBJECT_TYPE_CHEST) does?

From the wiki page it is seem allow multiple loots on the GO, similar to mining in vanilla and tbc (I think the original field was called maxSuccessfulOpens) but changes to the value of Data4 and Data5 don’t seem to have any effect. After the edits the GO is still only lootable once before despawning. Is there a core edit that is required for this or am I misinterpreting this field?

I am running a recent compile of the 3.3.5 branch.

A great tool to use when working with Trinity is “Finding in files” or basically being able to find uses of variables, names, etc in the code.

If you search for “maxSuccessOpens” (current name of TYPE_CHEST Data5) you will find this comment: “Deprecated, pre 3.0 was used for mining nodes but since WotLK all mining nodes are usable once and grant all loot with a single use” and you will also see that it is never used.

Thanks Nay,

I saw that maxSuccessOpens was decprecated but the fishing_node type 25 utilizes maxRestock for a similar function, I just wanted to confirm that it was only active for fishing_node and that I was missing some other obscure usage of that value. Thanks for the help.