超级玩家
 
- 贡献度
- 43
- 金元
- 7781
- 积分
- 950
- 精华
- 0
- 注册时间
- 2008-8-7
|
时间全浪费在晶石怪和蜜蜂对V当中了.挂一下午才出五只蜂王.郁闷中
以前1.02时有个养蜂脚本.到1.11后可能是基址变了.不能用了.我把基址改了下.点扏行脚本没出错提示.就是变蜂王时提示发现 513563 怪物.可是就是不变蜂王.求个脚本.要是有大神告诉个基址也行啊.谢谢了.下面另附我改了1.11基址的 1.0.2养蜂脚本. 求大神
ObjScan = createMemScan()
BaseAddress = getAddress('[[[[["Borderlands2.exe"+013A9448]+38]+2BC]+358]+1E4]+0')
Count = 0
ObjResult = {}
CurrentObj = 0
AdultVarkidAddress = 0
function DenFind()
memscan_firstScan(ObjScan,soExactValue,vtDword,"",BaseAddress,"0","0x00000000","0x70000000","",fsmAligned,"4",false,false,true,false)
memscan_waitTillDone(ObjScan)
ObjResult = createFoundList(ObjScan)
foundlist_initialize(ObjResult)
Count = foundlist_getCount(ObjResult) - 1
CurrentObj = 1
showMessage("Found " .. Count .. " Enemy Spawns")
end
createHotkey("DenFind",45)
function KillReset()
for i=1,Count do
local offset = foundlist_getAddress(ObjResult,i)
local address = getAddress(offset .. "+84")
writeInteger(address,0)
end
end
function MaxUp()
for i=1,Count do
local offset = foundlist_getAddress(ObjResult,i)
local address = getAddress(offset .. "+60")
local CurVal = readInteger(address)
writeInteger(address,CurVal + 1)
end
end
function MaxDown()
for i=1,Count do
local offset = foundlist_getAddress(ObjResult,i)
local address = getAddress(offset .. "+60")
local CurVal = readInteger(address)
if CurVal > 1 then
writeInteger(address,CurVal - 1)
end
end
end
createHotkey("KillReset",36)
createHotkey("MaxUp",33)
createHotkey("MaxDown",34)
function VarkidSwap()
for i=3,Count-2 do
local offset = foundlist_getAddress(ObjResult,i)
if readInteger(getAddress("[" .. offset .. "+24]+44")) == 2 then
if readInteger(getAddress("[[" .. offset .. "+24]+40]+2c")) == 990057071 then
AdultVarkidAddress = "[[" .. offset .. "+24]+40]+0"
--showMessage("AdultVarkidFound = " .. AdultVarkidAddress)
end
end
end
local VarScan = createMemScan()
local Varkid = readInteger('[' .. AdultVarkidAddress .. ']+0')
memscan_firstScan(VarScan,soExactValue,vtDword,"",Varkid,"0","0x00000000","0x70000000","",fsmAligned,"4",false,false,true,false)
memscan_waitTillDone(VarScan)
local VarResult = createFoundList(VarScan)
foundlist_initialize(VarResult)
local VarCount = foundlist_getCount(VarResult) - 1
--showMessage("Found " .. VarCount .. " Enemy Spawns")
for i=1,VarCount do
local offset = foundlist_getAddress(VarResult,i)
if readString(getAddress("[[[" .. offset .. "+AC]+44]+4]+0"),10,true) == "Vermi" then
showMessage("Adult Varkids Replaced with Vermi")
writeInteger(getAddress(AdultVarkidAddress),getAddress(offset))
end
end
end
createHotkey("VarkidSwap",35)
基址怎么算的啊不懂啊.求大神 |
|