Advertisement
dominus

Untitled

Feb 28th, 2022
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. void Invisibility_Ring shape#(0x128) ()
  2. {
  3. var cont;
  4. if (event == READIED)
  5. {
  6. UI_close_gumps();
  7. //Get ring container:
  8. cont = get_container();
  9. if (cont->is_npc() && (item == cont->get_readied(BG_LEFT_RING) || item == cont->get_readied(BG_RIGHT_RING)))
  10. //If the container is an NPC, and if the item is equipped in a finger,
  11. //make user invisible:
  12. cont->set_item_flag(INVISIBLE);
  13. }
  14. else if (event == UNREADIED)
  15. {
  16. UI_close_gumps();
  17. //Stop invisibility:
  18. cont = getOuterContainer(item);
  19. cont->clear_item_flag(INVISIBLE);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement