# Missions

{% code lineNumbers="true" %}

```lua
---@alias MissionTypes
---| "KILL"
---| "COLLECT"
---| "DELIVER"

Config.Missions = {
	Active = true, -- Show/Hide Missions Button in Menu
	RefreshList = {
		Time = 60, -- in Minutes
		Size = 6 -- Mission List Size
	},
	List = {
		{
			title = "Kill %s Players in FFA", -- Title of the Mission
			type = "KILL",											-- Mission Type, see: @alias MissionTypes
			goal = 5,														-- The Goal to reach
			listeners = {
				"wise_faction:ffa:mission:kill"	-- The Events to listen to, per Trigger counts +1
			},
			rewards = {													-- Rewards when Mission rewards getting claimed
				xp = 40500,
				money = 4000,
				items = {
					{ label = "Phone", name = "phone", amount = 100},
					{ label = "Bread", name = "bread", amount = 2}
				}
			}
		},
		{
			title = "Kill %s Players in Gangwar",
			type = "KILL",
			goal = 5,
			listeners = {
				"wise_faction:gangwar:mission:kill"
			},
			rewards = {
				xp = 4500,
				money = 200000,
				items = {
					{ label = "Phone", name = "phone", amount = 500}
				}
			}
		},
		{
			title = "Deliver %s Fish",
			type = "DELIVER",
			goal = 5,
			listeners = {
				"wise_faction:mission:deliver:fish"
			},
			rewards = {
				xp = 2500,
				money = 3000,
				items = {
					{ label = "diamond", name = "Diamant", amount = 25}
				}
			}
		},
		{
			title = "Win %s Gangwar",
			type = "COLLECT",
			goal = 5,
			listeners = {
				"wise_faction:mission:gangwar:win"
			},
			rewards = {
				xp = 2500,
				money = 322000,
				items = {
					{ label = "diamond", name = "Diamant", amount = 125}
				}
			}
		}
	},

	LevelMissions = {
		["Level-50"] = {
			{
				title = "Deliver %s Fish",
				type = "DELIVER",
				goal = 20,
				listeners = {
					"wise_faction:mission:deliver:fish"
				},
				rewards = {
					xp = 2500,
					money = 32000,
					items = {}
				}
			},
			{
				title = "Win %s Gangwar",
				type = "COLLECT",
				goal = 15,
				listeners = {
					"wise_faction:mission:gangwar:win"
				},
				rewards = {
					xp = 22500,
					money = 3000,
					items = {
						{ label = "diamond", name = "Diamant", amount = 125}
					}
				}
			}
		},

		["Level-80"] = {
			{
				title = "Kill %s People in FFA",
				type = "KILL",
				goal = 15,
				listeners = {
					"wise_faction:ffa:mission:kill"
				},
				rewards = {
					xp = 2500,
					money = 3000,
					items = {
						{ label = "diamond", name = "Diamant", amount = 25}
					}
				}
			}
		}
	}
}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wise-scripts.vip/scripts/wise-faction/example-configs/missions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
