Page 1 of 1

Orion Checking If A Container Is Open

Posted: Sat May 14, 2022 12:30 am
by MagicUser
I was poking around, trying to find out how to see if a given bag is open. I finally figured it out. It was not intuitive.

Code: Select all

//Check if bag is open.
function bagOpen(bagSerial) {
	return Orion.GumpExists('container', bagSerial)
}
Once I realized that they were probably considered gumps, I looked in the gump type list. There it was :).