Skip to main content

ExtendedItemSetOption

Callable


  • Sets an extended item's type and properties to the option provided.


    Type parameters

    Parameters

    • data: TypedItemData | ModularItemData | VibratingItemData

      The extended item data

    • C: Character

      The character on whom the item is equipped

    • item: Item

      The item whose type to set

    • newOption: OptionType

      The to-be applied extended item option

    • previousOption: OptionType

      The previously applied extended item option

    • push: boolean = false

      Whether to push to changes to the server

    • refresh: boolean = true

      Whether to refresh the character. This should generally be true, with custom script hooks being a potential exception.

    Returns void