I've succeeeded after many hours of try&error: Script_StartAuction makes a call to CGGameUI::CanPerformAction(
whereas '8' is an id specifing the current action.
The following solution will only work for a few methods and will not unlock completly locked function like moving. This method simulates the KeyDown-Flag which is set when you press a button (mouse or keyboard).
summa sumarum: Writing '1' to the following address will allow to call StartAuction without error:
Code:
internal enum BlockedActionUnlockOffsets : uint
{
Ptr = 0xCC9EF4,
Offset = 4704
}
Usage:
Code:
var unlockPtr = WowMem.ReadRebased<uint>(MemEnums.BlockedActionUnlockOffsets.Ptr);
if (unlockPtr != 0)
unlockPtr += (uint)MemEnums.BlockedActionUnlockOffsets.Offset;
//The lua pointer isn't always initialized. Take care of it!
if (unlockPtr != 0)
{
WowMem.Write(unlockPtr, 1);
}