on_location_change

Response Typescript
EntitiesMobiles, Items
Parameters-

    This trigger will fire when an item or mobile moves or is moved to
a new location. This is a very low level trigger and the method in which
the item or mobile is moved is not considered. One should be very
careful when changing the location of the item or mobile within the
handling script. The trigger will fire once the entity is in the new
location.

@n - The mobile that has changed location (if a mobile changed
location)

@o - The container object that has changed location (if an object
changed location)

@oldRoom - Pointer to the originating room if available.

@newRoom - Pointer to the destination room.