Jump to content
TrinityCore

Data5 (maxRestock) usage for GameObjects type 3


InsanityPeppers
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...