PRC8/trunk/scripts/xchst_hb.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

11 lines
247 B
Plaintext

#include "xchst_inc"
void main()
{
// dismiss chest if player left the game or left chests area
object oChest = OBJECT_SELF;
if(GetArea(oChest) != GetArea(GetLocalObject(oChest, XCHST_OWN)))
{
DismissChest(oChest);
}
}