The above code will remove 1 GP from the player. If the amount specified is greater than the amount the player currently has, then no GP will be removed. The player.removeGP function can be used to remove GP from a player. The above code will add 1 gp to the player, and place the info into the players stats for tracking. The above code will add 1 gp to the player, and not place the info into the players stats for tracking. If set to "Combat" it will add the GP to the players "GP received in combat" stat for tracking. The player.addGP function can be used to add GP to a player. The above code will result in item ID 1 (Oak Logs) being removed from the bank. If true, the count of glove charges will be set to 0 if the itemID is for a pair of gloves with charges. RemoveItemFromBank(itemID, deactiveGloves) The removeItemFromBank function can be used to remove any item from the bank The above code will result in 10 items with item ID 1 (Oak Logs) being added to the Bank without them appearing in the item completion log, but with notification. If true, the item will be added to the bank even if the bank is already full Will remove items from the bank if a negative value is specifiedĭetermines if it will show in item completion log The addItemToBank function can be used to add any item in the game to the bank.ĪddItemToBank(itemID, quantity, found, showNotification, ignoreBankSpace)įor a complete list of items and their IDs, see: Table of Items Players should refer to the Scripting and Extensions Instructions page for a step-by-step guide on using these functions with the Steam version of Melvor Idle.
0 Comments
Leave a Reply. |