OSRS Plugin API
    Preparing search index...

    Function npcSay

    • Generates a message above the specified npc, as if sent through chat.

      Parameters

      • npcId: number

        the id of the npc to display the message over

      • message: string

        the message to print to the screen

      • lifetime: number

        how long to display the message on the screen for in render frames (e.g. a value of 60 will display for 1 second if running at 60 fps).

      Returns void

      npc = osrs.ClientOp.getNpcIdByName("Emblem Trader")
      osrs.ClientOp.npcSay(npc, "Example Message", 100)