Djinni Wiki
Advertisement

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
Advertisement