I own a house:

As this was implemented in vanilla 10.92, it is currently not implemented here.
I understand and look for a solution to this problem, I do not know if it's something in the LUA or in c ++
You will have to find out which packet is sent by the client and then decide what to do with that. It could be in C++ or Lua.
@Tarliton
static const CTOGGLEWRAPSTATE:int = 139;
probably this should be handled with parseUseItem, it seems to send the same thing, position and item id.
@Tarliton I can not much of Lua and C ++ support means let the bug might be able to go the dissolution
Which way should it be implemented? action onWrap or xml-sided like rotate?
@Zbizu, should be on the same way of rotate.
2 options:
-change rotate to onRotate and make onWrap and onUnwrap;
-or all in xml
Most helpful comment
@Tarliton I can not much of Lua and C ++ support means let the bug might be able to go the dissolution