Skip to content

bot.castSpellOnNpc API is confusing #24

@MaxBittker

Description

@MaxBittker

The method signature takes a spellComponent: number but nothing tells you what number to use. You have to dig through test files to find that Wind Strike = 1152. The test file imports from a Spells constant, but that's not exported from the SDK.

Wish: Either export a Spells enum from the SDK (import { Spells } from 'sdk'), or accept a spell name string (bot.castSpellOnNpc(target, 'Wind Strike')), or at minimum document the component IDs in API.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions