RATDOG/_module/nss/pc_room_onexit.nss
Jaysyn904 72eb2cfdc9 Auto close storage on room exit.
Auto close storage on room exit.
2023-03-06 17:50:08 -05:00

18 lines
328 B
Plaintext

#include "inc_perchest"
void main()
{
object oPlayer = GetExitingObject();
int nToken = NuiFindWindow(oPlayer, PC_NUI_WINDOW_ID);
//:: Murder the poor window
NuiDestroy(oPlayer, nToken);
nToken = NuiFindWindow(oPlayer, PC_NUI_GOLD_WINDOW_ID);
if (nToken)
NuiDestroy(oPlayer, nToken);
}