function SetItemCharges (object oItem, int nCharges)

Sets charges left on an item.

  • oItem: item to change
  • nCharges: number of charges. If value below 0 is passed, # charges will be set to 0. If value greater than maximum is passed, the number of charges will be set to maximum. If the number of charges drops to 0 the item will be destroyed.
  • Return type: void
  • Include file: nwscriptdefn

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.