166
edits
Line 113: | Line 113: | ||
== player.addXP == | == player.addXP == | ||
The player.addXP function can be used to add experience to any skill. Note that the game will not visually show the updated XP until after refresh or 1 new action. | The player.addXP function can be used to add experience to any skill. Note that the game will not visually show the updated XP until after refresh or 1 new action. | ||
<nowiki>player.addXP(skillID, xp | <nowiki>player.addXP(skillID, xp)</nowiki> | ||
=== Attributes === | === Attributes === | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 122: | Line 122: | ||
|- | |- | ||
| xp || int || No || || Amount of experience to add. Note that this is the amount of experience added before bonuses such as that from the {{ItemIcon|Firemaking Skillcape}} or {{PetIcon|Pyro}} | | xp || int || No || || Amount of experience to add. Note that this is the amount of experience added before bonuses such as that from the {{ItemIcon|Firemaking Skillcape}} or {{PetIcon|Pyro}} | ||
|} | |} | ||
=== Examples === | === Examples === |
edits