dominus icon

Untitled

dominus | PRO | 02/28/22 06:43:03 PM UTC | 0 ⭐ | 762 👁️ | Never ⏰ | []
text |

550 B

|

None

|

0 👍

/

0 👎

void Invisibility_Ring shape#(0x128) ()
{
	var cont;
	if (event == READIED)
	{
		UI_close_gumps();
		//Get ring container:
		cont = get_container();
		if (cont->is_npc() && (item == cont->get_readied(BG_LEFT_RING) || item == cont->get_readied(BG_RIGHT_RING)))
			//If the container is an NPC, and if the item is equipped in a finger,
			//make user invisible:
			cont->set_item_flag(INVISIBLE);
	}
	else if (event == UNREADIED)
	{
		UI_close_gumps();
		//Stop invisibility:
		cont = getOuterContainer(item);
		cont->clear_item_flag(INVISIBLE);
	}
}

Comments