按键精灵 写脚本 高手进! 热血江湖
.哪个高手写按键的帮忙写个没药自己回城的脚本^告诉我回成F设置F几谢谢^^^^^就写这里我复制就行了谢谢谢谢给个好用的啊谢谢我的习惯是F1群G技能F2红F3蓝其它随便请写...
.哪个 高手 写 按键的 帮忙 写个 没药自己回城的脚本^ 告诉我 回成F 设置 F几 谢谢 ^^^^^就写 这里 我复制就行了 谢谢 谢谢 给个好用的啊 谢谢
我的习惯 是 F1 群G技能 F2红 F3蓝 其它 随便
请写好了 告诉我 F几 放 回成F 最好 这个脚本 启动和停止键 设置成 F6
谢谢 展开
我的习惯 是 F1 群G技能 F2红 F3蓝 其它 随便
请写好了 告诉我 F几 放 回成F 最好 这个脚本 启动和停止键 设置成 F6
谢谢 展开
5个回答
展开全部
VBS Dim zRedPos,zBluePos,zRunPos,MaxFightCount,MaxFindCount,BlueCheckDC,AutoCheckMp
VBS Dim CurMapID,FightHere,DoctorDistance,AutoRun,GroupMembers,mGrayValue,mBlackValue
VBS Dim TakeRedNum,TakeBlueNum,TakeCharmNum,TakeArrowNum,StartSN,AutoShutOff
VBS Dim RunToFightType,BackToSupply,AutoSale,AutoPick,RecPlaceNum,BackSay,BackCode
VBS Dim DeadNoSupply,WgFirst,WgLatter,FullToBack,AutoWS,AutoGF,AutoPlus
VBS Dim MapMaxRed,MapMaxGreen,MapMaxBlue,MapMinRed,MapMinGreen,MapMinBlue
VBS Dim lngF1CJ,lngF2JN,lngF3JQ,lngF4JF,lngF5BH,NoWsNoSupply,PreTime
VBS Dim lngF6BL,lngF7TF,lngF8HC,lngF9QG,lngF10Z,MinFightTime,CharmBforRun
//相关配置文件定义
KeyPress 13 1
VBS Dim strIniFile,strDotFile,strRecFile,strMySetFile
VBS strDotFile="ScanDot.ini":strIniFile="Fight.ini":strMySetFile="Set.ini"
VBS PreTime=Now
//读写用户自定义配置
VBSCall ReadMySet()@<FindMon.vbs>
VBSCall ReadWriteMySet()@<FindMon.vbs>
//全局变量定义
VBS Dim objFM,lngCount,lngScanDots,lngMonFile,strMonFile1,strMonFile2
VBS Dim lngFirstJN,CurMapName,zSay,blnzSay,zR,zB,zT,zY,strTagKey,WgCount
VBS Dim PreBluePos,CurBluePos,BlueCheckIgnore,blnBlock,lngFull,lngInitPick
VBS Dim ActionFlag,lngOffsetX,lngOffsetY,FightX,FightY,strUserJN1,strUserJN2
VBS Dim ScreenWidth,ScreenHeight,CenterX,CenterY,lngBhBlX(35),lngHold,blnBack
VBS Dim strRndSay(10),strSay512(10),lngTakeNum(5),lngShortTimes,IsClickSale
VBS Dim MonX,MonY,MonFound,x,y,mN,IsDead,nNotFound,InCity,lngErr,lngTotalMons
VBS Dim DotX(1000),DotY(1000),MonPreColor(1000),MonColor(1000)
//全局变量初始化
VBS Set objFM=CreateObject("QMDispatch.QMFunction")
VBS CurMapName="未知":FightX=0:FightY=0
VBS blnBack=0:blnzSay=0:zR=0:zB=0:zT=0:zY=0
VBS blnBlock=0:PreBluePos=0:CurBluePos=0:BlueCheckIgnore=1
VBS lngOffsetX=0:lngOffsetY=0:mN=0:WgCount=0
//读取屏幕分辨率
VBSCall GetScreenResolution(ScreenWidth,ScreenHeight)@<FindMon.vbs>
//记录设置信息到日志文件
VBSCall RecordUserSet()@<FindMon.vbs>
//血条预处理函数
VBSCall InitHpMp()@<FindMon.vbs>
//判断一下血值
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
//获取扫描点
VBSCall GetDotFromTXT(strDotFile)@<FindMon.vbs>
//判断一下当前血值
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
//图像判断变量定义
VBS Dim picRED,picBlue,picQG,picWS,picPlus,picFY,picGJ,picGF,lngEatOrGF
VBS Dim picBag(36),blnStoreFull,BagN,BagX,BagY,lngEmpty
VBS Dim WgColor(3),WgPreColor(3)
//行走变量定义
VBS Dim TargetX,TargetY,DirectSIN,DirectCOS,MouseX,MouseY
VBS Dim CurX,CurY,lngPreX,lngPreY,blnWalk,blnRunWithMon
VBS Dim WalkNpcX,WalkNpcY,TempCurX,TempCurY
//补给变量定义
VBS Dim ToNpcStoreX(4),ToNpcStoreY(4),ToNpcSaleX(4),ToNpcSaleY(4)
VBS Dim NpcSaleX,NpcSaleY,NpcStoreX,NpcStoreY
VBS Dim lngCurNum,lngLen,lngI,lngChar,lngMaxBuJi,lngRunBack
VBS Dim vfso,vfile,vfText,vfi,vfTemp
//变量初始化
VBS lngLen=0:lngI=0:lngCurNum=0:lngChar=0
VBS InCity=0:ActionFlag="FightOrSupply":lngRunBack=0
VBS MonX=0:MonY=0:mFound=0:nNotFound=0:mN=0
VBS x=0:y=0:CurX=0:CurY=0
VBS blnzSay=0:TargetX=0:TargetY=0
VBS picRed=0:picBlue=0:picQG=0:IsDead=0
VBS DirectSIN=0:DirectCOS=1
//调整为俯视并拖聊天栏
Gosub DragChat
Gosub LookDown
//判断一下当前血值
VBSCall GetCurHP()@<FindMon.vbs>
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
//判断玩家位置,记录当前战斗点
VBSCall JudgeInCity()@<FindMon.vbs>
If InCity=0 And FightHere=1
VBS FightX=CurX
VBS FightY=CurY
Else
VBSCall GetFightDot(strIniFile)@<FindMon.vbs>
EndIf
//获取脚本运行信息
VBSCall GetScriptStatus()@<FindMon.vbs>
Delay 32
SayExpression BackSay
Delay 32
KeyPress 145 1
Delay 32
//判断一下当前血值
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
//***************************************************************挂机主程序开始
//***************************************************************挂机主程序开始
//***************************************************************挂机主程序开始
Rem Begin
If InCity=0
KeyPress 145 1
Delay 16
VBSCall FindMonIsDie(0.9)@<FindMon.vbs>
If MonFound>0
If MonFound<WgCount
KeyPress lngFirstJN 1
ElseIf WgLatter=1
KeyPress lngF2JN 1
EndIf
Delay 64
EndIf
If BlueCheckIgnore=0
Gosub CheckMP
EndIf
If MonFound>MaxFightCount
Gosub WalkRandom
EndIf
KeyPress 145 1
Delay 16
While MonFound=0 And nNotFound<=MaxFindCount
If zR=1
KeyPress lngF5BH 1
Delay 256
EndIf
If AutoPick=1 And nNotFound<3
KeyPress lngF3JQ 1
EndIf
Delay 256
VBSCall JudgeCurDistance()@<FindMon.vbs>
VBSCall FindMonster(CurMapID)@<FindMon.vbs>
If MonFound=1
LeftClick 1
Delay 32
VBSCall FindMonBeClicked(0.9)@<FindMon.vbs>
If MonFound=1
KeyPress lngFirstJN 1
Delay 64
EndIf
EndIf
VBSCall JudgeCurState()@<FindMon.vbs>
EndWhile
VBSCall GetCurAll()@<FindMon.vbs>
If zT=1 Or IsDead>0
KeyPress lngF8HC 1
Gosub StopWait
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 432
ElseIf zB=1
KeyPress lngF6BL 1
Delay 320
EndIf
If lngEatOrGF=1
Gosub EatOrGf
EndIf
Delay 32
If nNotFound>MaxFindCount
Gosub NoMonProcess
EndIf
Else
Gosub InCityProcess
EndIf
Goto Begin
EndScript
//***************************************************************挂机主程序结束
//***************************************************************挂机主程序结束
//***************************************************************挂机主程序结束
//*
//*
//************************************************************
//*************判断血蓝、轻功、药品剩余子程序*****************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub JudgeAll
VBSCall GetCurAll()@<FindMon.vbs>
If zT=1 Or IsDead>0
KeyPress lngF8HC 1
Gosub StopWait
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 256
ElseIf zB=1
KeyPress lngF6BL 1
Delay 256
EndIf
If lngEatOrGF=1
Gosub EatOrGf
EndIf
If picQG<0
KeyPress lngF9QG 1
Delay 128
VBS picQG=1
EndIf
Return JudgeAll
//************************************************************
//********************停止所有攻击并等待**********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub StopWait
VBS blnBack=1
Delay 128
If IsDead=1
MoveTo CenterX+60 245
Delay 64
LeftClick 1
Delay 640
EndIf
For 20
KeyDown 17 1
Delay 64
KeyPress 67 1
Delay 64
KeyUp 17 1
Delay 640
EndFor
If InCity=1
VBS BackSay=TransBackCode(BackCode)
VBS BackSay=BackSay+"回城..."
VBSCall RecordINI(BackSay)@<FindMon.vbs>
Delay 64
VBS vfText=strRndSay(Int(10*Rnd))
SayExpression vfText
KeyPress 13 1
Delay 128
EndIf
VBSCall JudgeInCity()@<FindMon.vbs>
If CurX=0 And CurY=0
InCity=1
EndIf
MoveTo 23 13
Delay 64
LeftClick 1
Delay 256
MoveTo CenterX CenterY+12
Delay 64
For 6
KeyPress lngFirstJN 1
Delay 512
EndFor
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 256
EndIf
For 3
VBS MonX=0:MonY=0
While MonX<=0 Or MonY<=0
VBSCall WalkLittleInCity()@<FindMon.vbs>
If MonX>0 And MonY>0
MoveTo MonX MonY
Delay 64
LeftDoubleClick 1
Delay 500
EndIf
EndWhile
VBSCall FindPic(320,580,390,610,"Images\_User关闭.bmp",0.9,MonX,MonY)@<FindMon.vbs>
If MonX>0 And MonY>0
MoveTo MonX+8 MonY+6
Delay 96
LeftClick 1
Delay 900
EndIf
EndFor
Return StopWait
//************************************************************
//******************自动五色、GF、糖子程序********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub EatOrGf
If picWS<-4
MoveTo 270 ScreenHeight-22
Delay 64
LeftClick 1
Delay 320
KeyPress lngF5BH 1
Delay 320
VBSCall FindPic(ScreenWidth-50,173,ScreenWidth-5,191,"Images\_Bag关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
VBSCall FindPic(ScreenWidth-233,350,ScreenWidth-25,555,"Images\_User五色0.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
MoveTo x+10 y+6
Delay 64
RightClick 1
Delay 256
VBS picWS=1
Else
VBS AutoWS=0
If NoWsNoSupply=1
VBS IsDead=2
VBS BackToSupply=0
EndIf
EndIf
KeyPress 27 1
Delay 256
EndIf
KeyPress lngF5BH 1
Delay 128
EndIf
If picPlus<-4
MoveTo 270 ScreenHeight-22
Delay 64
LeftClick 1
Delay 320
KeyPress lngF5BH 1
Delay 320
VBSCall FindPic(ScreenWidth-50,173,ScreenWidth-5,191,"Images\_Bag关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
VBSCall FindPic(ScreenWidth-233,350,ScreenWidth-25,555,"Images\_User辅助0.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
MoveTo x+10 y+10
Delay 64
RightClick 1
Delay 256
VBS picPlus=1
Else
VBS AutoPlus=0
EndIf
KeyPress 27 1
Delay 256
EndIf
KeyPress lngF5BH 1
Delay 128
EndIf
If picFY=0
KeyPress lngF5BH 1
Delay 128
MoveTo 23 13
Delay 64
LeftClick 1
Delay 128
KeyPress lngF4JF 1
Delay 512
VBS picFY=1
Delay 384
KeyPress lngF5BH 1
Delay 128
ElseIf picGJ=0
KeyPress lngF5BH 1
Delay 128
MoveTo 23 13
Delay 64
LeftClick 1
Delay 128
KeyPress lngF1CJ 1
Delay 512
VBS picGJ=1
Delay 384
KeyPress lngF5BH 1
Delay 128
EndIf
If PicGF<1
VBS vfText=strSay512(Int(10*Rnd))
SayExpression vfText
Delay 64
KeyPress 13 1
Delay 256
KeyPress lngF5BH 1
Delay 128
EndIf
Return EatOrGf
//************************************************************
//**********************坐标行走子程序************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub WalkToXY
Gosub JudgeAll
VBS lngPreX=0:lngPreY=0:lngHold=0
VBS MouseX=0:MouseY=0:lngErr=0
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBSCall SetWalkClick()@<FindMon.vbs>
If blnzSay=1
Gosub ExtSay
EndIf
While blnWalk=1 And IsDead=0
VBSCall FindPic(320,580,390,610,"Images\_User关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
MoveTo x+8 y+6
Delay 64
LeftClick 1
Delay 900
EndIf
If InCity=1
VBSCall FindPic(CenterX+70,CenterY-220,CenterX+105,CenterY-190,"Images\_NPC对话.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
Delay 64
KeyPress 27 1
Delay 900
EndIf
If lngRunBack=0
VBSCall JudgeInCity()@<FindMon.vbs>
EndIf
If InCity=0
VBS lngErr=lngErr+1
VBS InCity=1
Else
VBS lngErr=0
EndIf
If lngErr>5
KeyPress lngF8HC 1
Delay 128
VBS BackSay="22491549"
VBSCall RecordINI(BackSay)@<FindMon.vbs>
VBS BackCode="000000"
Gosub StopWait
VBS blnBack=0
EndIf
EndIf
MoveTo MonX MonY
Delay 64
LeftClick 1
Delay 384
If InCity=1
Delay 128
VBS TempCurX=0:TempCurY=0
While TempCurX<>CurX Or TempCurY<>CurY
VBS TempCurX=CurX
VBS TempCurY=CurY
Delay 192
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
EndWhile
EndIf
Gosub JudgeAll
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBSCall SetWalkClick()@<FindMon.vbs>
EndWhile
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 100
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 100
EndIf
VBS nNotFound=0
Return WalkToXY
//************************************************************
//************************随机移动子程序**********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub WalkRandom
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBS TempCurX=CurX
VBS TempCurY=CurY
While TempCurX=CurX And TempCurY=CurY
VBSCall WalkLittle()@<FindMon.vbs>
MoveTo MonX MonY
Delay 64
LeftClick 1
Delay 384
Gosub JudgeAll
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
EndWhile
VBS MonFound=0
Return WalkRandom
//************************************************************
//**********************内力检测防卡子程序********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub CheckMP
VBSCall CurBluePos=GetCurBluePos()@<FindMon.vbs>
If CurBluePos>=PreBluePos And zB=0
VBS blnBlock=blnBlock+1
Else
VBS blnBlock=0
EndIf
If blnBlock>1
SayExpression "卡"
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBS lngPreX=CurX
VBS lngPreY=CurY
While lngPreX=CurX And lngPreY=CurY And CurBluePos>=PreBluePos
VBS PreBluePos=CurBluePos
VBSCall WalkLittle()@<FindMon.vbs>
MoveTo MonX MonY
Delay 64
LeftDoubleClick 1
Delay 256
KeyPress lngFirstJN 1
Delay 256
Gosub JudgeAll
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBSCall CurBluePos=GetCurBluePos()@<FindMon.vbs>
EndWhile
VBS blnBlock=0:MonFound=0
EndIf
VBS PreBluePos=CurBluePos
Return CheckMP
//************************************************************
//************************引怪子程序**************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub NoMonProcess
If nNotFound<999
Gosub WalkRandom
EndIf
If nNotFound<999 And AutoRun>0
If AutoRun=1
Gosub RunWithMon01
EndIf
If AutoRun=2
Gosub RunWithMon02
EndIf
VBS blnRunWithMon=1
VBS nNotFound=0:MonFound=0
VBS TargetX=FightX:TargetY=FightY
Gosub WalkToXY
Else
VBS blnRunWithMon=0
VBS nNotFound=0:MonFound=0
VBS TargetX=FightX:TargetY=FightY
Gosub WalkToXY
EndIf
VBS blnRunWithMon=0
Return NoMonProcess
//************************************************************
//***********************引怪子01程序*************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub RunWithMon01
MoveTo CenterX+300 0
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 0
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
Return RunWithMon01
//************************************************************
//***********************引怪子02程序*************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub RunWithMon02
VBS mN=0:MonX=0:MonY=0:MonFound=0
VBS Set vfso=CreateObject("Scripting.FileSystemObject")
VBS Set vfile=vfso.OpenTextFile(strIniFile, 1)
VBS vfText="00000000"
While vfText<>"[Run]"
VBS vfText=vfile.ReadLine
EndWhile
VBS vfText=vfile.ReadLine
While blnBack=0 And vfText<>"[Over]"
VBS vfi=InStr(vfText, ".")
VBS TargetX=CLng(Left(vfText, vfi - 1))
VBS TargetY=CLng(Mid(vfText, vfi + 1))
Gosub WalkToXY
VBS vfText=vfile.ReadLine
EndWhile
VBS vfile.Close
VBS Set vfile=Nothing
VBS Set vfso=Nothing
Return RunWithMon02
//************************************************************
//*********************清理包裹中的盒子***********************
//************************************************************
Sub ClearBag
VBS BackSay="开饭盒..."
VBSCall RecordINI(BackSay)@<FindMon.vbs>
MoveTo 270 ScreenHeight-22
Delay 100
LeftClick 1
Delay 900
Delay 900
Delay 900
VBSCall GetBoxOfBag()@<FindMon.vbs>
VBS BagN=StartSN-1
VBS BagX=0:BagY=0
While BagN<36
VBS BagX=(BagN Mod 6)*33+(ScreenWidth-210)
VBS BagY=(BagN\6)*33+366
MoveTo BagX BagY
Delay 64
If picBag(BagN)=1
Delay 128
RightClick 1
Delay 512
EndIf
VBS BagN=BagN+1
EndWhile
MoveTo CenterX CenterY
Delay 500
VBSCall FindPic(ScreenWidth-50,173,ScreenWidth-5,191,"Images\_Bag关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
KeyPress 27 1
Delay 500
EndIf
Delay 900
Return ClearBag
Sub ExtS
VBS Dim CurMapID,FightHere,DoctorDistance,AutoRun,GroupMembers,mGrayValue,mBlackValue
VBS Dim TakeRedNum,TakeBlueNum,TakeCharmNum,TakeArrowNum,StartSN,AutoShutOff
VBS Dim RunToFightType,BackToSupply,AutoSale,AutoPick,RecPlaceNum,BackSay,BackCode
VBS Dim DeadNoSupply,WgFirst,WgLatter,FullToBack,AutoWS,AutoGF,AutoPlus
VBS Dim MapMaxRed,MapMaxGreen,MapMaxBlue,MapMinRed,MapMinGreen,MapMinBlue
VBS Dim lngF1CJ,lngF2JN,lngF3JQ,lngF4JF,lngF5BH,NoWsNoSupply,PreTime
VBS Dim lngF6BL,lngF7TF,lngF8HC,lngF9QG,lngF10Z,MinFightTime,CharmBforRun
//相关配置文件定义
KeyPress 13 1
VBS Dim strIniFile,strDotFile,strRecFile,strMySetFile
VBS strDotFile="ScanDot.ini":strIniFile="Fight.ini":strMySetFile="Set.ini"
VBS PreTime=Now
//读写用户自定义配置
VBSCall ReadMySet()@<FindMon.vbs>
VBSCall ReadWriteMySet()@<FindMon.vbs>
//全局变量定义
VBS Dim objFM,lngCount,lngScanDots,lngMonFile,strMonFile1,strMonFile2
VBS Dim lngFirstJN,CurMapName,zSay,blnzSay,zR,zB,zT,zY,strTagKey,WgCount
VBS Dim PreBluePos,CurBluePos,BlueCheckIgnore,blnBlock,lngFull,lngInitPick
VBS Dim ActionFlag,lngOffsetX,lngOffsetY,FightX,FightY,strUserJN1,strUserJN2
VBS Dim ScreenWidth,ScreenHeight,CenterX,CenterY,lngBhBlX(35),lngHold,blnBack
VBS Dim strRndSay(10),strSay512(10),lngTakeNum(5),lngShortTimes,IsClickSale
VBS Dim MonX,MonY,MonFound,x,y,mN,IsDead,nNotFound,InCity,lngErr,lngTotalMons
VBS Dim DotX(1000),DotY(1000),MonPreColor(1000),MonColor(1000)
//全局变量初始化
VBS Set objFM=CreateObject("QMDispatch.QMFunction")
VBS CurMapName="未知":FightX=0:FightY=0
VBS blnBack=0:blnzSay=0:zR=0:zB=0:zT=0:zY=0
VBS blnBlock=0:PreBluePos=0:CurBluePos=0:BlueCheckIgnore=1
VBS lngOffsetX=0:lngOffsetY=0:mN=0:WgCount=0
//读取屏幕分辨率
VBSCall GetScreenResolution(ScreenWidth,ScreenHeight)@<FindMon.vbs>
//记录设置信息到日志文件
VBSCall RecordUserSet()@<FindMon.vbs>
//血条预处理函数
VBSCall InitHpMp()@<FindMon.vbs>
//判断一下血值
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
//获取扫描点
VBSCall GetDotFromTXT(strDotFile)@<FindMon.vbs>
//判断一下当前血值
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
//图像判断变量定义
VBS Dim picRED,picBlue,picQG,picWS,picPlus,picFY,picGJ,picGF,lngEatOrGF
VBS Dim picBag(36),blnStoreFull,BagN,BagX,BagY,lngEmpty
VBS Dim WgColor(3),WgPreColor(3)
//行走变量定义
VBS Dim TargetX,TargetY,DirectSIN,DirectCOS,MouseX,MouseY
VBS Dim CurX,CurY,lngPreX,lngPreY,blnWalk,blnRunWithMon
VBS Dim WalkNpcX,WalkNpcY,TempCurX,TempCurY
//补给变量定义
VBS Dim ToNpcStoreX(4),ToNpcStoreY(4),ToNpcSaleX(4),ToNpcSaleY(4)
VBS Dim NpcSaleX,NpcSaleY,NpcStoreX,NpcStoreY
VBS Dim lngCurNum,lngLen,lngI,lngChar,lngMaxBuJi,lngRunBack
VBS Dim vfso,vfile,vfText,vfi,vfTemp
//变量初始化
VBS lngLen=0:lngI=0:lngCurNum=0:lngChar=0
VBS InCity=0:ActionFlag="FightOrSupply":lngRunBack=0
VBS MonX=0:MonY=0:mFound=0:nNotFound=0:mN=0
VBS x=0:y=0:CurX=0:CurY=0
VBS blnzSay=0:TargetX=0:TargetY=0
VBS picRed=0:picBlue=0:picQG=0:IsDead=0
VBS DirectSIN=0:DirectCOS=1
//调整为俯视并拖聊天栏
Gosub DragChat
Gosub LookDown
//判断一下当前血值
VBSCall GetCurHP()@<FindMon.vbs>
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
//判断玩家位置,记录当前战斗点
VBSCall JudgeInCity()@<FindMon.vbs>
If InCity=0 And FightHere=1
VBS FightX=CurX
VBS FightY=CurY
Else
VBSCall GetFightDot(strIniFile)@<FindMon.vbs>
EndIf
//获取脚本运行信息
VBSCall GetScriptStatus()@<FindMon.vbs>
Delay 32
SayExpression BackSay
Delay 32
KeyPress 145 1
Delay 32
//判断一下当前血值
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 128
EndIf
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
//***************************************************************挂机主程序开始
//***************************************************************挂机主程序开始
//***************************************************************挂机主程序开始
Rem Begin
If InCity=0
KeyPress 145 1
Delay 16
VBSCall FindMonIsDie(0.9)@<FindMon.vbs>
If MonFound>0
If MonFound<WgCount
KeyPress lngFirstJN 1
ElseIf WgLatter=1
KeyPress lngF2JN 1
EndIf
Delay 64
EndIf
If BlueCheckIgnore=0
Gosub CheckMP
EndIf
If MonFound>MaxFightCount
Gosub WalkRandom
EndIf
KeyPress 145 1
Delay 16
While MonFound=0 And nNotFound<=MaxFindCount
If zR=1
KeyPress lngF5BH 1
Delay 256
EndIf
If AutoPick=1 And nNotFound<3
KeyPress lngF3JQ 1
EndIf
Delay 256
VBSCall JudgeCurDistance()@<FindMon.vbs>
VBSCall FindMonster(CurMapID)@<FindMon.vbs>
If MonFound=1
LeftClick 1
Delay 32
VBSCall FindMonBeClicked(0.9)@<FindMon.vbs>
If MonFound=1
KeyPress lngFirstJN 1
Delay 64
EndIf
EndIf
VBSCall JudgeCurState()@<FindMon.vbs>
EndWhile
VBSCall GetCurAll()@<FindMon.vbs>
If zT=1 Or IsDead>0
KeyPress lngF8HC 1
Gosub StopWait
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 432
ElseIf zB=1
KeyPress lngF6BL 1
Delay 320
EndIf
If lngEatOrGF=1
Gosub EatOrGf
EndIf
Delay 32
If nNotFound>MaxFindCount
Gosub NoMonProcess
EndIf
Else
Gosub InCityProcess
EndIf
Goto Begin
EndScript
//***************************************************************挂机主程序结束
//***************************************************************挂机主程序结束
//***************************************************************挂机主程序结束
//*
//*
//************************************************************
//*************判断血蓝、轻功、药品剩余子程序*****************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub JudgeAll
VBSCall GetCurAll()@<FindMon.vbs>
If zT=1 Or IsDead>0
KeyPress lngF8HC 1
Gosub StopWait
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 256
ElseIf zB=1
KeyPress lngF6BL 1
Delay 256
EndIf
If lngEatOrGF=1
Gosub EatOrGf
EndIf
If picQG<0
KeyPress lngF9QG 1
Delay 128
VBS picQG=1
EndIf
Return JudgeAll
//************************************************************
//********************停止所有攻击并等待**********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub StopWait
VBS blnBack=1
Delay 128
If IsDead=1
MoveTo CenterX+60 245
Delay 64
LeftClick 1
Delay 640
EndIf
For 20
KeyDown 17 1
Delay 64
KeyPress 67 1
Delay 64
KeyUp 17 1
Delay 640
EndFor
If InCity=1
VBS BackSay=TransBackCode(BackCode)
VBS BackSay=BackSay+"回城..."
VBSCall RecordINI(BackSay)@<FindMon.vbs>
Delay 64
VBS vfText=strRndSay(Int(10*Rnd))
SayExpression vfText
KeyPress 13 1
Delay 128
EndIf
VBSCall JudgeInCity()@<FindMon.vbs>
If CurX=0 And CurY=0
InCity=1
EndIf
MoveTo 23 13
Delay 64
LeftClick 1
Delay 256
MoveTo CenterX CenterY+12
Delay 64
For 6
KeyPress lngFirstJN 1
Delay 512
EndFor
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 128
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 256
EndIf
For 3
VBS MonX=0:MonY=0
While MonX<=0 Or MonY<=0
VBSCall WalkLittleInCity()@<FindMon.vbs>
If MonX>0 And MonY>0
MoveTo MonX MonY
Delay 64
LeftDoubleClick 1
Delay 500
EndIf
EndWhile
VBSCall FindPic(320,580,390,610,"Images\_User关闭.bmp",0.9,MonX,MonY)@<FindMon.vbs>
If MonX>0 And MonY>0
MoveTo MonX+8 MonY+6
Delay 96
LeftClick 1
Delay 900
EndIf
EndFor
Return StopWait
//************************************************************
//******************自动五色、GF、糖子程序********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub EatOrGf
If picWS<-4
MoveTo 270 ScreenHeight-22
Delay 64
LeftClick 1
Delay 320
KeyPress lngF5BH 1
Delay 320
VBSCall FindPic(ScreenWidth-50,173,ScreenWidth-5,191,"Images\_Bag关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
VBSCall FindPic(ScreenWidth-233,350,ScreenWidth-25,555,"Images\_User五色0.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
MoveTo x+10 y+6
Delay 64
RightClick 1
Delay 256
VBS picWS=1
Else
VBS AutoWS=0
If NoWsNoSupply=1
VBS IsDead=2
VBS BackToSupply=0
EndIf
EndIf
KeyPress 27 1
Delay 256
EndIf
KeyPress lngF5BH 1
Delay 128
EndIf
If picPlus<-4
MoveTo 270 ScreenHeight-22
Delay 64
LeftClick 1
Delay 320
KeyPress lngF5BH 1
Delay 320
VBSCall FindPic(ScreenWidth-50,173,ScreenWidth-5,191,"Images\_Bag关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
VBSCall FindPic(ScreenWidth-233,350,ScreenWidth-25,555,"Images\_User辅助0.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
MoveTo x+10 y+10
Delay 64
RightClick 1
Delay 256
VBS picPlus=1
Else
VBS AutoPlus=0
EndIf
KeyPress 27 1
Delay 256
EndIf
KeyPress lngF5BH 1
Delay 128
EndIf
If picFY=0
KeyPress lngF5BH 1
Delay 128
MoveTo 23 13
Delay 64
LeftClick 1
Delay 128
KeyPress lngF4JF 1
Delay 512
VBS picFY=1
Delay 384
KeyPress lngF5BH 1
Delay 128
ElseIf picGJ=0
KeyPress lngF5BH 1
Delay 128
MoveTo 23 13
Delay 64
LeftClick 1
Delay 128
KeyPress lngF1CJ 1
Delay 512
VBS picGJ=1
Delay 384
KeyPress lngF5BH 1
Delay 128
EndIf
If PicGF<1
VBS vfText=strSay512(Int(10*Rnd))
SayExpression vfText
Delay 64
KeyPress 13 1
Delay 256
KeyPress lngF5BH 1
Delay 128
EndIf
Return EatOrGf
//************************************************************
//**********************坐标行走子程序************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub WalkToXY
Gosub JudgeAll
VBS lngPreX=0:lngPreY=0:lngHold=0
VBS MouseX=0:MouseY=0:lngErr=0
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBSCall SetWalkClick()@<FindMon.vbs>
If blnzSay=1
Gosub ExtSay
EndIf
While blnWalk=1 And IsDead=0
VBSCall FindPic(320,580,390,610,"Images\_User关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
MoveTo x+8 y+6
Delay 64
LeftClick 1
Delay 900
EndIf
If InCity=1
VBSCall FindPic(CenterX+70,CenterY-220,CenterX+105,CenterY-190,"Images\_NPC对话.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
Delay 64
KeyPress 27 1
Delay 900
EndIf
If lngRunBack=0
VBSCall JudgeInCity()@<FindMon.vbs>
EndIf
If InCity=0
VBS lngErr=lngErr+1
VBS InCity=1
Else
VBS lngErr=0
EndIf
If lngErr>5
KeyPress lngF8HC 1
Delay 128
VBS BackSay="22491549"
VBSCall RecordINI(BackSay)@<FindMon.vbs>
VBS BackCode="000000"
Gosub StopWait
VBS blnBack=0
EndIf
EndIf
MoveTo MonX MonY
Delay 64
LeftClick 1
Delay 384
If InCity=1
Delay 128
VBS TempCurX=0:TempCurY=0
While TempCurX<>CurX Or TempCurY<>CurY
VBS TempCurX=CurX
VBS TempCurY=CurY
Delay 192
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
EndWhile
EndIf
Gosub JudgeAll
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBSCall SetWalkClick()@<FindMon.vbs>
EndWhile
VBSCall GetCurHP()@<FindMon.vbs>
If zT=1
KeyPress lngF5BH 1
Delay 100
EndIf
If zR=1
KeyPress lngF5BH 1
Delay 100
EndIf
VBS nNotFound=0
Return WalkToXY
//************************************************************
//************************随机移动子程序**********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub WalkRandom
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBS TempCurX=CurX
VBS TempCurY=CurY
While TempCurX=CurX And TempCurY=CurY
VBSCall WalkLittle()@<FindMon.vbs>
MoveTo MonX MonY
Delay 64
LeftClick 1
Delay 384
Gosub JudgeAll
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
EndWhile
VBS MonFound=0
Return WalkRandom
//************************************************************
//**********************内力检测防卡子程序********************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub CheckMP
VBSCall CurBluePos=GetCurBluePos()@<FindMon.vbs>
If CurBluePos>=PreBluePos And zB=0
VBS blnBlock=blnBlock+1
Else
VBS blnBlock=0
EndIf
If blnBlock>1
SayExpression "卡"
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBS lngPreX=CurX
VBS lngPreY=CurY
While lngPreX=CurX And lngPreY=CurY And CurBluePos>=PreBluePos
VBS PreBluePos=CurBluePos
VBSCall WalkLittle()@<FindMon.vbs>
MoveTo MonX MonY
Delay 64
LeftDoubleClick 1
Delay 256
KeyPress lngFirstJN 1
Delay 256
Gosub JudgeAll
VBSCall GetCurXY(CurX,CurY)@<FindMon.vbs>
VBSCall CurBluePos=GetCurBluePos()@<FindMon.vbs>
EndWhile
VBS blnBlock=0:MonFound=0
EndIf
VBS PreBluePos=CurBluePos
Return CheckMP
//************************************************************
//************************引怪子程序**************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub NoMonProcess
If nNotFound<999
Gosub WalkRandom
EndIf
If nNotFound<999 And AutoRun>0
If AutoRun=1
Gosub RunWithMon01
EndIf
If AutoRun=2
Gosub RunWithMon02
EndIf
VBS blnRunWithMon=1
VBS nNotFound=0:MonFound=0
VBS TargetX=FightX:TargetY=FightY
Gosub WalkToXY
Else
VBS blnRunWithMon=0
VBS nNotFound=0:MonFound=0
VBS TargetX=FightX:TargetY=FightY
Gosub WalkToXY
EndIf
VBS blnRunWithMon=0
Return NoMonProcess
//************************************************************
//***********************引怪子01程序*************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub RunWithMon01
MoveTo CenterX+300 0
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 0
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX-300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY+300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
MoveTo CenterX+300 CenterY-300
Delay 64
LeftClick 1
Delay 600
Gosub JudgeAll
Return RunWithMon01
//************************************************************
//***********************引怪子02程序*************************
//************************************************************
//自由猎手之打手全自动挂机脚本,免费发布
//官方地址:http://fhok.spaces.msn.com
Sub RunWithMon02
VBS mN=0:MonX=0:MonY=0:MonFound=0
VBS Set vfso=CreateObject("Scripting.FileSystemObject")
VBS Set vfile=vfso.OpenTextFile(strIniFile, 1)
VBS vfText="00000000"
While vfText<>"[Run]"
VBS vfText=vfile.ReadLine
EndWhile
VBS vfText=vfile.ReadLine
While blnBack=0 And vfText<>"[Over]"
VBS vfi=InStr(vfText, ".")
VBS TargetX=CLng(Left(vfText, vfi - 1))
VBS TargetY=CLng(Mid(vfText, vfi + 1))
Gosub WalkToXY
VBS vfText=vfile.ReadLine
EndWhile
VBS vfile.Close
VBS Set vfile=Nothing
VBS Set vfso=Nothing
Return RunWithMon02
//************************************************************
//*********************清理包裹中的盒子***********************
//************************************************************
Sub ClearBag
VBS BackSay="开饭盒..."
VBSCall RecordINI(BackSay)@<FindMon.vbs>
MoveTo 270 ScreenHeight-22
Delay 100
LeftClick 1
Delay 900
Delay 900
Delay 900
VBSCall GetBoxOfBag()@<FindMon.vbs>
VBS BagN=StartSN-1
VBS BagX=0:BagY=0
While BagN<36
VBS BagX=(BagN Mod 6)*33+(ScreenWidth-210)
VBS BagY=(BagN\6)*33+366
MoveTo BagX BagY
Delay 64
If picBag(BagN)=1
Delay 128
RightClick 1
Delay 512
EndIf
VBS BagN=BagN+1
EndWhile
MoveTo CenterX CenterY
Delay 500
VBSCall FindPic(ScreenWidth-50,173,ScreenWidth-5,191,"Images\_Bag关闭.bmp",0.9,x,y)@<FindMon.vbs>
If x>0 And y>0
KeyPress 27 1
Delay 500
EndIf
Delay 900
Return ClearBag
Sub ExtS
展开全部
别用按键6
有木马
用按键3
安全,我会做脚本
把你自己舒服的键位告诉我
我给你做,呵呵
我的邮箱mrwylp@163.com
我是网1赤峰的
呵呵,
有木马
用按键3
安全,我会做脚本
把你自己舒服的键位告诉我
我给你做,呵呵
我的邮箱mrwylp@163.com
我是网1赤峰的
呵呵,
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
//--------红放F1,蓝放F3,回城放F8----------
Rem 开始
IfColor 636,746,b5ffde,2
KeyPress 119,1
Delay 900
EndIf
IfColor 709 746 b5ffe7,2
KeyPress 119,1
Delay 900
EndIf
Delay 256
Goto 开始
Rem 开始
IfColor 636,746,b5ffde,2
KeyPress 119,1
Delay 900
EndIf
IfColor 709 746 b5ffe7,2
KeyPress 119,1
Delay 900
EndIf
Delay 256
Goto 开始
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
楼上哪个哥们是网通一区赤峰的啊?偶也是啊!不过现在赤峰太垃圾了,偶都跑电信去玩了,
虽然偶学过编程可是偶对这还是一窍不通!!
嘿嘿不好意识啊
虽然偶学过编程可是偶对这还是一窍不通!!
嘿嘿不好意识啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
下个按键精灵 里面带有一个 简单游的软件 里面什么也不用注册就能用大多数游戏 里面都有 类似于按键的脚本 共享站 这里我不提供 下载地址 以免说有木马 推荐个 新浪软件下载中心 上百度上搜 什么都有
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询