Silber

Joined 13 June 2021
1,449 bytes added ,  21 November 2021
no edit summary
No edit summary
No edit summary
Line 50: Line 50:
  <nowiki>removeItemFromBank(1);</nowiki>
  <nowiki>removeItemFromBank(1);</nowiki>
The above code will result in item ID 1 (Oak Logs) to be removed from the bank.
The above code will result in item ID 1 (Oak Logs) to be removed from the bank.
== player.addGP ==
The player.addGP function can be used to add gp to a player.
<nowiki>player.addGP(quantity, source)</nowiki>
=== Attributes ===
{| class="wikitable"
|-
! Attribute !! Type !! Optional? !! Default Value !! Description
|-
| quantity || int || No || || The quantity of GP to add
|-
| source || string || No || || The source of the GP being added. If set to "Combat" it will add the gp to the players gp received in combat stat for tracking.
|}
=== Examples ===
<nowiki>player.addGP(1,"");</nowiki>
The above code will add 1 gp to the player, and not place the info into the players stats for tracking.
<nowiki>player.addGP(1,"Combat");</nowiki>
The above code will add 1 gp to the player, and place the info into the players stats for tracking.
== player.removeGP ==
The player.removeGP function can be used to remove gp from a player.
<nowiki>player.addGP(quantity)</nowiki>
=== Attributes ===
{| class="wikitable"
|-
! Attribute !! Type !! Optional? !! Default Value !! Description
|-
| quantity || int || No || || The quantity of GP to remove
|}
=== Examples ===
<nowiki>player.removeGP(1);</nowiki>
The above code will remove 1 gp from the player.
== player.addPrayerPoints ==
The player.addGP function can be used to add prayer points to a player.
=== Attributes ===
=== Examples ===
== player.addSlayerCoins ==
The player.addGP function can be used to add slayer coins to a player.
=== Attributes ===
=== Examples ===


== player.addXP ==
== player.addXP ==
166

edits