Getareausers

From Hercules Wiki
Revision as of 00:02, 12 February 2013 by Mysterious (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

  • getareausers("<map name>",<x1>,<y1>,<x2>,<y2>)

Description

This function will return the count of connected characters which are located within the specified area - a x1/y1-x2/y2 rectangle on the specified map.

This is useful for maps that are split into many buildings, such as all the "*_in" maps, due to all the shops and houses.