Level

There are 2 types of Levels: the Mastery Level and the Character Level. These are both heavily used throughout the game.

Mastery Level
Each Weapon has its own Mastery Level requirement.

Each item's Tier has a different Mastery Level requirement for you to be able to interact with it. For example, if you wanted to use the Tier 2 Chipped Broadsword, you would need to use the Tier 1 Wooden Sword until you reach Mastery Level 10.

In order to gain Mastery XP; therefore, leveling up your mastery, you need to kill Creatures using the specific weapon that you want to level up.

Character Level
To advance your character's level, you need to kill Creatures, but unlike with Mastery, you will always gain Character XP no matter what Weapon you're using.

Each time you level up your character, you earn 3 Stat Points.

XP penalty system
MeloBlox has its own "XP penalty system" which takes place in different locations: dying and levelling up.

When leveling up, weaker Creatures such as the Level 1 Pink Blob will give less XP if you are a significantly higher Level than them (as seen in the table below). You will always earn 1 or more XP after killing a Creature, no matter your penalty.

The XP penalty system also prevents you from killing Creatures that are significantly higher Level than you. This is to prevent an easy method of "XP boosting", in which higher level players would party up with lower level players and help them kill high leveled Creatures.

When dying in MeloBlox, you will lose 20% of your current XP (For example, if you have 1000/25000 XP and die, you will lose 200 XP). You cannot "Level down".

How XP is calculated
The way you earn XP and level in MeloBlox is determined by 3 main formulas, to understand those 3 we will use the Blob King as an example.

The first formula is: $$\text{TotalXP} = \left\lceil{\frac{\text{CreatureLevel}}{2} \cdot \frac{\text{TotalDamage}}{30} + 1}\right\rceil$$ Note that the result gets rounded up.

Where:
 * CreatureLevel is the level of the Creature
 * TotalDamage is the damage you dealt to the Creature

The Blob King has 2740 Health. For this scenario, you will deal all the damage yourself. We replace the variables in the formula above (CreatureLevel=10; TotalDamage=2740), and then we get back 457.(6). Finally, after we round that up, we get 458 XP.

The second formula for the penalty is: $$\text{TotalXP} = \left\lfloor{\text{TotalXP} - \text{TotalXP} \cdot \text{LevelPenalty}}\right\rfloor$$ Note that the result gets rounded down.

For this example, if you are level 18 a penalty of 20% will affect you. Now your TotalXp gets multiplied with your LevelMalus, which is your penalty written out as a decimal number. So 462* 0.2 = 92.4. Now we subtract our Total from the penalty XP: 462 - 92.4= 369.6. and again with math.ceil(369.6) we round up so that makes 370xp if you would have a 20% penalty.

The third formula is: $$\text{TotalXP} = \left\lfloor{(\text{baseXP} \cdot \text{level}^\text{exponent}}\right\rfloor$$ Note that the result gets rounded down.

The baseXP is the LVL 1's XP requirement (50). From levels 1-20, the exponent is 1.5. If you levels 21-50, the exponent is 1.9. Levels 51-80 has an exponent of 2.2, and levels 81+ to 2.5. So for our level 18 example, for us to get to level 19 the formula would look like this, math.floor(130 * (18 ^ 1.1). So we would need math.floor(3.124,23)XP. Math.floor rounds down, so we would need 3.124 XP to get to level 19 from 18.

Fun fact
If you farm from level 18 to 19 with only the Blob king you would need to kill it 9 times. The boss respawns every 5 minutes, so that would take you 45 minutes non stop farming for a single level up. (of course only if you can slay the blob king within 7s each time. If you did it in 7s, then it would be about 00:05:07*9 = 00:46:03 -bongAkid)