Anonymous

In-game Functions: Difference between revisions

From Melvor Idle
m
Line 181: Line 181:
  <syntaxhighlight lang="js">
  <syntaxhighlight lang="js">
game.thieving.addXP(1000);
game.thieving.addXP(1000);
game.astrology.setAbyssalXP(game.astrology._abyssalXP - 700); // For XP, use game.astrology.xp with the addXP command
game.astrology.setAbyssalXP(game.astrology.abyssalXP - 700); // For XP, use game.astrology.xp with the addXP command
game.attack.setXP(exp.levelToXP(120) + 1); // For Abyssal XP, use abyssalExp.levelToXP with the setAbyssalXP command
game.attack.setXP(exp.levelToXP(120) + 1); // For Abyssal XP, use abyssalExp.levelToXP with the setAbyssalXP command
</syntaxhighlight>
</syntaxhighlight>