--==<< Tsutomu's Swimhack function >>==-- --==<< By Tsutomu Version 1.0a >>==-- --==<< Requirements: Rom bot. >>==-- --==<< Usage: fly(); OR flyoff(); >>==-- -- When u need to activate the flyhack you put "fly();" without quotes inside the waypoint -- When u don't need it anymore, you put "flyoff();" without quotes inside the waypoint -- That's it. Happy flying from SERBIA! ;) --9BC394+598+EC+B4 <<-- OFFSETS --local charPtr_offset = 0x598 --local skillbuffFlag_offset = 0xEC --local swim_offset = 0xB4 NOP=144; local swimfunction_ptr = 0x449620; local staticcharbase_address = 0x9BC394; offsets = {0x598, 0xEC, 0xB4}; local active = 4; local proc=getProc(); function memoryfreeze() memoryWriteIntPtr(getProc(), staticcharbase_address, offsets, active); --swim = memoryReadIntPtr(getProc(), staticcharbase_address, offsets); --printf("Swim value: %d\n", swim); end function fly() memoryWriteByte(getProc(), 0x449620, NOP); memoryWriteByte(getProc(), 0x449621, NOP); memoryWriteByte(getProc(), 0x449622, NOP); memoryWriteByte(getProc(), 0x449623, NOP); memoryWriteByte(getProc(), 0x449624, NOP); memoryWriteByte(getProc(), 0x449625, NOP); registerTimer("flyTimer", 5, memoryfreeze); printf("Swimhack ACTIVATED!\n"); end function flyoff() memoryWriteByte(getProc(), 0x449620, 137); memoryWriteByte(getProc(), 0x449621, 131); memoryWriteByte(getProc(), 0x449622, 180); memoryWriteByte(getProc(), 0x449623, 0); memoryWriteByte(getProc(), 0x449624, 0); memoryWriteByte(getProc(), 0x449625, 0); unregisterTimer("flyTimer"); --memoryWriteIntPtr(getProc(), staticcharbase_address, offsets, 0); printf("Swimhack DEactivated.\n"); end