Levels2 – YML Dokumentation

This guide shows you how to add new Perks, Quest Rewards in Levels2.

Exp-typer:

MONSTERHEART // Kill the monsters.
FARMING // Farma by hand or auto-crop.
MINING // Destroy stone ores or.
WOOD CUTTING // Destroy tree.
FISHING // Fishing
MELEE // lock with sword, axes, trident.
Ranged // shooting arrows, throw trident.
ARMOR // Take injury
SHIELD // Take injury
MAGIC // Using magic items
DUNGEON // Kill the monsters and bosses, clear dungeons
RIFT // Kill rifts and clear rifts
Raiding // Start the raids and destroy the blocks

Perks:
Each perk has an Exp-type parent, and names key. All perks come at a price, chance, multiplier (Strength), description as well as the material to be displayed in the menu.

MONSTER:
  Monster_Hunter:
    Price: 3
    Chance: 1.0
    Multiplier: 1.05
    PrestigeBonusChance: 0
    PrestigeBonusMultiplier: 0.05
    DescriptionLore:
    - §eDeal more damage to all monsters.
    UnlockedPlayers: {}
    EnabledPlayers: {}
    Material: WITHER_SKELETON_SKULL

Types of Quest:

DESTROY // Destroy blocks. requires Materials.
SELL // Sell items. requires Materials, or ItemDisplay
OBTAIN // Pick up items. requires Materials, or ItemDisplay
PLACE // Place blocks. requires Materials.
RIFT_COMPLETE // Complete a rift.
DUNGEON_COMPLETE // Clear a dungeon. Dungeon Name kan ges.
BOSS_KILL // Kill a MythicMob, requires MythicInternal
MOB_KILL // Kill a monster / entity. requires EntityType.
BREED // Breeda two animals. Requires EntityType
RAID_START // Start a raid in clans.
INTERACT_BLOCK // Interacta with a block, requires Materials.
AUTO_CROP        //Autocrop, requires Materials.
STATISTIC // Uses Statistic as an event. Can take EntityType and materials where needed.
NPC_TALK // Occurs when a player talks to an NPC. Requires NpcId and can take IsLastNpcMessage.

A list of statistics can be found here.

A list of materials can be found here.

A list of entity type can be found here.

questobjectives.yml:
Key used that name. Underscore to Space.

Goal // Number of times it must be performed.
QuestType // The type of quest.
InHand // The type of material that the player must have in the main hand.
OffHand // The type of material that the player must have in the offhand.
Statistic // Which statistic to listen to.
ExpTypes // List of ExpTypes that can get this quest randomly.
RewardTypes // List of random rewards.
Description // List of information about the quest. Tar color codes med §.
Materials        //Lista med material.
ItemDisplay // String with display name on an item.
EntityType // Type of entity. T.ex SPIDER.
MythicInternal // Internal boss name.
DungeonName // Internal dungeon name.
NpcId            //NPC ID, a string.
IsLastNpcMessage // If it is required that all messages have been said by the NPC

questrewards.yml:
Key functions as internal name in RewardTypes.

Exp // Levels-exp to be given.
Money // Money to be given.
Xp // Regular xp to be given.
ItemAmount   //Item-antal.
ItemInternal //MythicMobs-item.

Examples of Quest and Reward:

questrewards.yml:
In this case, emeralds a special value, otherwise it is a MythicMobs-value expected in ItemInternal.

Example_Reward:
Exp: 100
Money: 500
Xp: 50
ItemAmount: 1
ItemInternal: SPECIAL_EMERALD

questobjectives.yml:

Destory_Logs:
Goal: 10
QuestType: DESTROY
ExpTypes:
- WOODCUTTING
RewardTypes:
- Example_Reward
Description:
- §eDestroy oak 10 logs
Materials:
- OAK_LOG
ItemDisplay: ''
EntityType: ''
MythicInternal: ''
DungeonName: ''
NpcId: ''
IsLastNpcMessage: false

Admin commands:

/lev clearactivequests – clears active quests
/lev loadquestdata – Load quest data from yml and validates active quests
/lev generatequest <exptype/misc> <player> – Generate a quest
/lev save – Save the current state to configs
/lev load – Load yml state to ram
/lev reset – Reset all players and active quests
/lev addexp <exptype> <player> <amount> – Add exp
/lev setexp <exptype> <player> <amount> – Set exp