--==<< 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! ;) --0x9B526C+598+EC+B4 <<-- OFFSETS --local charPtr_offset = 0x598 --local skillbuffFlag_offset = 0xEC --local swim_offset = 0xB4 NOP=144; local swimfunction_ptr = 0x449A70 local staticcharbase_address = 0x9B526C; 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(), 0x449A70, NOP); memoryWriteByte(getProc(), 0x449A71, NOP); memoryWriteByte(getProc(), 0x449A72, NOP); memoryWriteByte(getProc(), 0x449A73, NOP); memoryWriteByte(getProc(), 0x449A74, NOP); memoryWriteByte(getProc(), 0x449A75, NOP); registerTimer("flyTimer", 5, memoryfreeze); printf("Swimhack ACTIVATED!\n"); end function flyoff() memoryWriteByte(getProc(), 0x449A70, 137); memoryWriteByte(getProc(), 0x449A71, 131); memoryWriteByte(getProc(), 0x449A72, 180); memoryWriteByte(getProc(), 0x449A73, 0); memoryWriteByte(getProc(), 0x449A74, 0); memoryWriteByte(getProc(), 0x449A75, 0); unregisterTimer("flyTimer"); --memoryWriteIntPtr(getProc(), staticcharbase_address, offsets, 0); printf("Swimhack DEactivated.\n"); end