local scan = createMemScan(true)
memscan_returnOnlyOneResult(scan, true)
memscan_firstScan(scan, soExactValue, vtByteArray, rtTruncated, "A2 E8 50 69 00 00 00 00", nil, 0x00000000, 0xFFFFFFFF, "*W", fsmNotAligned, nil, true, false, false, false)
memscan_waitTillDone(scan)
local result = memscan_getOnlyResult(scan)
writeBytes(result,{0xA2, 0xE8, 0x50 ,0x69, 0xFF, 0x90, 0x90, 0xFF})
place an element and watch the magic unfold.
-- Also, if you don't know what to do with the script paste it in cheat engine lua table --