Skip to content

BUILDIN(getunits) BL_MOB returns 0 if no coordinates specified #2330

@bWolfie

Description

@bWolfie

Describe the bug
As title says. Unless you specify the coordinates, getunits(BL_MOB, ....) will return 0.

To Reproduce
Returns 0 even if mobs on the map.
.@count = getunits(BL_MOB, .@md, false, .@map$);

Returns expected count.
.@count = getunits(BL_MOB, .@md, false, .@map$, 0, 0, 100, 100);

Expected behavior

Screenshots

System specs (please complete the following information):

  • OS: [CentOS7]
  • Hercules Version [latest as of post]
  • Mode: [pre-renewal]
  • Packet version: [20160113]
  • Client type: [main]

Plugins used or source modifications

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:confirmedIssue is valid and can be reproducedtype:bugIssue is a bug or describes an incorrect behavior that should be fixed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions