Skip to content

RESOURCE_GATHERED ​

Fired when a player gathers from a resource node.

Payload ​

lua
{
  resourceName = string,             -- "Fel Iron Ore"
  resourceId = number,               -- Item ID
  gatherType = Enums.GatherType,     -- .Mining, .Herbalism, .Skinning
  zone = string,                     -- "Hellfire Peninsula"
  count = number                     -- How many gathered
}

Examples ​

Zone Gathering ​

lua
{
  id = 620,
  name = "Terokkar Herbalist",
  description = "Gather 500 herbs in Terokkar Forest",
  points = 20,
  category = 3,
  icon = 136065,
  cadence = Enums.Cadence.AllTime,
  trigger = {
    event = "RESOURCE_GATHERED",
    conditions = {
      gatherType = Enums.GatherType.Herbalism,
      zone = "Terokkar Forest"
    }
  },
  progress = {
    type = "count",
    required = 500
  }
}

Specific Resource ​

lua
{
  id = 621,
  name = "Adamantite Miner",
  description = "Mine 1000 Adamantite Ore",
  points = 30,
  category = 3,
  icon = 136065,
  cadence = Enums.Cadence.AllTime,
  trigger = {
    event = "RESOURCE_GATHERED",
    conditions = {
      resourceName = "Adamantite Ore"
    }
  },
  progress = {
    type = "count",
    required = 1000
  }
}

Weekly Gathering ​

lua
{
  id = 622,
  name = "Weekly Miner",
  description = "Mine 200 ore this week",
  points = 25,
  category = 3,
  icon = 136065,
  cadence = Enums.Cadence.Weekly,
  trigger = {
    event = "RESOURCE_GATHERED",
    conditions = {
      gatherType = Enums.GatherType.Mining
    }
  },
  progress = {
    type = "count",
    required = 200
  }
}