Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement