You are on page 1of 4

function changeTheWeapons()

keyDown(VK_LSHIFT)
sleep(20);
doKeyPress(VK_Z)
sleep(10);
keyUp(VK_LSHIFT)
end

local atkAddress;
local scan = createMemScan();
local list = createFoundList(scan);
function myAobscan()
if not(isKeyPressed(VK_LCONTROL))then return false end
beep();
local staticAddress = "Game.dll+E26AB8";
local static = readInteger(staticAddress);
local startAddress=0;
local endAddress=0x00000000ffffffff; --0x15ffffffffffffff;

scan.firstScan(soExactValue, vtDword, rtRounded, static, nil, startAddress, endAddress, "+W*X-C",


fsmAligned, "", false, true, false, false);
scan.waitTillDone();
beep();
changeTheWeapons();

for i=1, 50 do
sleep(100);
if(readInteger(staticAddress) ~= static)then

break;
end
end

static = readInteger(staticAddress);
scan.nextScan(soExactValue, rtRounded, static, nil, false, true, false, false, false, nil);
scan.waitTillDone();
list.initialize();
local index = 1

for i=0, list.getCount()-1 do


if(getAddress(list.getAddress(i)) ~= getAddress(staticAddress))then
if(tostring(static) == tostring(list.getValue(i)))then
atkAddress = list.getAddress(i)
break;
end
end
end
beep();
changeTheWeapons();

-- for i=0,list.getCount()-1 do
-- print(i..") address: "..list.getAddress(i).."\t value: "..list.getValue(i))
-- print(i..") address: "..getAddress(list.getAddress(i)).."\t static: "..getAddress(staticAddress))
-- end

-- sleep(50)
-- list.destroy()
-- sleep(50)
-- scan.destroy()
end

function setAtkSpeed()
local value = readInteger(atkAddress)
if((atkAddress)and(value == 2200 or value == 1500))then
local test = writeInteger(atkAddress, 100);
if not(test)then
beep();
sleep(100);
beep();
end
end
end

timer = createTimer(nil,true)
timer_setInterval(timer,500)
timer_onTimer(timer,setAtkSpeed)

function setHotKey(func, hotkey)


local objectHotKey = createHotkey(func, hotkey)
generichotkey_setKeys(objectHotKey, hotkey)
generichotkey_onHotkey(objectHotKey, func)

end
setHotKey(myAobscan, VK_ADD);

You might also like