Sound Area
Sound area packed is sent to play a sound effect at a specific coord. Any players within range tiles of the destination coord will hear this sound effect played, if they have sound effects enabled. The volume will change according to the player's distance to the origin coord of the sound effect itself. It is worth noting there is a maximum quantity of 50 area sound effects that can play concurrently in the client across all the zones. Therefore, a potential optimization one can do is prevent appending any more area sound effects once the quantity has reached 50 in a zone.
Constructors
Properties
the size of the origin. In most cases, this should be a value of 1. However, if a larger value is provided, it means the client will treat the south-western coord provided here as the south-western corner of the 'box' that is made with this size in mind, for the purpose of having an evenly-spreading volume around this element. This size property is primarily used for larger NPCs, to make their sound effects flow out smoothly from all sides.