In-game Functions: Difference between revisions

m
(→‎Add Mastery XP to Pool: Updated for v1.3)
Line 200: Line 200:
|}
|}
=== Examples ===
=== Examples ===
  <syntaxhighlight lang="js">game.woodcutting.addMasteryPoolXP(600);</syntaxhighlight>
  <syntaxhighlight lang="js">game.woodcutting.addMasteryPoolXP(game.realms.getObjectByID('melvorD:Melvor'), 600);</syntaxhighlight>
The above code will result in 600 [[Mastery#The_Mastery_Pool|Mastery Pool]] XP being added to {{Skill|Woodcutting}}.
The above code will result in 600 [[Mastery#The_Mastery_Pool|Mastery Pool]] XP being added to {{Skill|Woodcutting}} in the Melvor Realm.


== Unlock Pet ==
== Unlock Pet ==