java游戏外挂Java源代码精品资料.doc

上传人:封****n 文档编号:96697472 上传时间:2024-03-10 格式:DOC 页数:36 大小:116KB
返回 下载 相关 举报
java游戏外挂Java源代码精品资料.doc_第1页
第1页 / 共36页
java游戏外挂Java源代码精品资料.doc_第2页
第2页 / 共36页
点击查看更多>>
资源描述

《java游戏外挂Java源代码精品资料.doc》由会员分享,可在线阅读,更多相关《java游戏外挂Java源代码精品资料.doc(36页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、Java代码 package game; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; /主类 public class Action static int TimeNumber=0; public static void main(String args) ViewFlow vf=new ViewFlow(); vf.addActionlistener(); Java代码 pa

2、ckage game; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; /主类 public class Action static int TimeNumber=0; public static void main(String args) ViewFlow vf=new ViewFlow(); vf.addActionlistener(); package game;impor

3、t javax.swing.*;import java.awt.*;import java.awt.event.*;import javax.swing.event.*;import java.lang.*;import java.io.*; /主类public class Actionstatic int TimeNumber=0;public static void main(String args)ViewFlow vf=new ViewFlow();vf.addActionlistener(); Java代码 package game; import javax.swing.*; im

4、port java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; class MyActionListener2 implements ActionListener/核心类(实现主要功能) static int ip=0; public void actionPerformed(ActionEvent e2) try Robot robot=new Robot(); int x=73,y=23, x2=ViewFlow.slider1.getVa

5、lue(), y2=23, x3=228,y3=26, x4=0,y4=0; /* int i=ViewFlow.slider1.getValue(),j=23,k=0; try Robot rb=new Robot(); while(k1) rb.mouseMove(i,j); rb.getPixelColor(i,j); System.out.print(k+)+: +rb.getPixelColor(i,j)+: ); System.out.println(i=+(i+)+,j=+j+);); catch(AWTException e3) */ if(robot.getPixelColo

6、r(x,y).equals(new Color(255,75,53)&MyActionListener2.ip=1)/自动打怪 robot.keyPress(KeyEvent.VK_5);/捡东西 if(robot.getPixelColor(x3,y3).equals(new Color(255,107,87) |robot.getPixelColor(x3,y3).equals(new Color(255,107,86) robot.keyPress(KeyEvent.VK_1);/技能1 /robot.keyPress(KeyEvent.VK_2);/技能2 /robot.keyPres

7、s(KeyEvent.VK_3);/技能3 /robot.keyPress(KeyEvent.VK_4);/打怪1 else robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_TAB); /System.out.println(MyActionListener.myTimer.getDelay();/改变加血速度测试 if(!robot.getPixelColor(x,y).equals(new Color(255,75,53) ViewFlow.setText1(提示:请启动游戏); /System.out.print

8、ln(ViewFlow.slider1.getValue();/测试1 /System.out.println(ViewFlow.slider2.getValue();/测试2 else if(robot.getPixelColor(x2,y2).equals(new Color(255,75,53) /加血位置与血的颜色相等 |robot.getPixelColor(x,y).equals(robot.getPixelColor(x2,y2) /加血位置与指定的理想的血的位置的颜色相等 /* |robot.getPixelColor(x2,y2).equals(new Color(255,1

9、59,147) /加血位置与指血的颜色1比较 |robot.getPixelColor(x2,y2).equals(new Color(247,193,186) /加血位置与指血的颜色2比较 |robot.getPixelColor(x2,y2).equals(new Color(228,103,88) /加血位置与指血的颜色3比较 |robot.getPixelColor(x2,y2).equals(new Color(245,72,51) /加血位置与指血的颜色4比较 |robot.getPixelColor(x2,y2).equals(new Color(255,183,174) /加血

10、位置与指血的颜色5比较 |robot.getPixelColor(x2,y2).equals(new Color(228,91,75) /加血位置与指血的颜色6比较 |robot.getPixelColor(x2,y2).equals(new Color(248,73,52) /加血位置与指血的颜色7比较 |robot.getPixelColor(x2,y2).equals(new Color(225,195,188) /加血位置与指血的颜色8比较 |robot.getPixelColor(x2,y2).equals(new Color(235,141,130) /加血位置与指血的颜色9比较

11、|robot.getPixelColor(x2,y2).equals(new Color(235,69,49) /加血位置与指血的颜色10比较 |robot.getPixelColor(x2,y2).equals(new Color(239,154,144) /加血位置与指血的颜色11比较 */ ) ViewFlow.setText1(不需加血); else if(robot.getPixelColor(x,y).equals(new Color(255,75,53)/加血 &!robot.getPixelColor(x,y).equals(robot.getPixelColor(x2,y2)

12、 ) robot.keyPress(KeyEvent.VK_F8);/加血的键位 /ViewFlow.setText1(自动加血开始); catch(AWTException eException1) Java代码 package game; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; class MyActionListener2 implements ActionListe

13、ner/核心类(实现主要功能) static int ip=0; public void actionPerformed(ActionEvent e2) try Robot robot=new Robot(); int x=73,y=23, x2=ViewFlow.slider1.getValue(), y2=23, x3=228,y3=26, x4=0,y4=0; /*int i=ViewFlow.slider1.getValue(),j=23,k=0; try Robot rb=new Robot(); while(k1) rb.mouseMove(i,j); rb.getPixelCol

14、or(i,j); System.out.print(k+)+: +rb.getPixelColor(i,j)+: ); System.out.println(i=+(i+)+,j=+j+);); catch(AWTException e3) */ if(robot.getPixelColor(x,y).equals(new Color(255,75,53)&MyActionListener2.ip=1)/自动打怪 robot.keyPress(KeyEvent.VK_5);/捡东西 if(robot.getPixelColor(x3,y3).equals(new Color(255,107,8

15、7) |robot.getPixelColor(x3,y3).equals(new Color(255,107,86) robot.keyPress(KeyEvent.VK_1);/技能1 /robot.keyPress(KeyEvent.VK_2);/技能2 /robot.keyPress(KeyEvent.VK_3);/技能3 /robot.keyPress(KeyEvent.VK_4);/打怪1 else robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_TAB); /System.out.println(MyAc

16、tionListener.myTimer.getDelay();/改变加血速度测试 if(!robot.getPixelColor(x,y).equals(new Color(255,75,53) ViewFlow.setText1(提示:请启动游戏); /System.out.println(ViewFlow.slider1.getValue();/测试1 /System.out.println(ViewFlow.slider2.getValue();/测试2 else if(robot.getPixelColor(x2,y2).equals(new Color(255,75,53) /加血

17、位置与血的颜色相等 |robot.getPixelColor(x,y).equals(robot.getPixelColor(x2,y2) /加血位置与指定的理想的血的位置的颜色相等 /* |robot.getPixelColor(x2,y2).equals(new Color(255,159,147) /加血位置与指血的颜色1比较 |robot.getPixelColor(x2,y2).equals(new Color(247,193,186) /加血位置与指血的颜色2比较 |robot.getPixelColor(x2,y2).equals(new Color(228,103,88) /加

18、血位置与指血的颜色3比较 |robot.getPixelColor(x2,y2).equals(new Color(245,72,51) /加血位置与指血的颜色4比较 |robot.getPixelColor(x2,y2).equals(new Color(255,183,174) /加血位置与指血的颜色5比较 |robot.getPixelColor(x2,y2).equals(new Color(228,91,75) /加血位置与指血的颜色6比较 |robot.getPixelColor(x2,y2).equals(new Color(248,73,52) /加血位置与指血的颜色7比较 |

19、robot.getPixelColor(x2,y2).equals(new Color(225,195,188) /加血位置与指血的颜色8比较 |robot.getPixelColor(x2,y2).equals(new Color(235,141,130) /加血位置与指血的颜色9比较 |robot.getPixelColor(x2,y2).equals(new Color(235,69,49) /加血位置与指血的颜色10比较 |robot.getPixelColor(x2,y2).equals(new Color(239,154,144) /加血位置与指血的颜色11比较 */ ) View

20、Flow.setText1(不需加血); else if(robot.getPixelColor(x,y).equals(new Color(255,75,53)/加血 &!robot.getPixelColor(x,y).equals(robot.getPixelColor(x2,y2) ) robot.keyPress(KeyEvent.VK_F8);/加血的键位 /ViewFlow.setText1(自动加血开始); catch(AWTException eException1) package game;import javax.swing.*;import java.awt.*;im

21、port java.awt.event.*;import javax.swing.event.*;import java.lang.*;import java.io.*;class MyActionListener2 implements ActionListener/核心类(实现主要功能)static int ip=0;public void actionPerformed(ActionEvent e2) try Robot robot=new Robot(); int x=73,y=23, x2=ViewFlow.slider1.getValue(), y2=23, x3=228,y3=2

22、6, x4=0,y4=0;/*int i=ViewFlow.slider1.getValue(),j=23,k=0; try Robot rb=new Robot(); while(k1) rb.mouseMove(i,j); rb.getPixelColor(i,j); System.out.print(k+)+: +rb.getPixelColor(i,j)+: ); System.out.println(i=+(i+)+,j=+j+);); catch(AWTException e3) */ if(robot.getPixelColor(x,y).equals(new Color(255

23、,75,53)&MyActionListener2.ip=1)/自动打怪 robot.keyPress(KeyEvent.VK_5);/捡东西 if(robot.getPixelColor(x3,y3).equals(new Color(255,107,87) |robot.getPixelColor(x3,y3).equals(new Color(255,107,86) robot.keyPress(KeyEvent.VK_1);/技能1 /robot.keyPress(KeyEvent.VK_2);/技能2 /robot.keyPress(KeyEvent.VK_3);/技能3 /robo

24、t.keyPress(KeyEvent.VK_4);/打怪1 else robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_TAB); /System.out.println(MyActionListener.myTimer.getDelay();/改变加血速度测试 if(!robot.getPixelColor(x,y).equals(new Color(255,75,53) ViewFlow.setText1(提示:请启动游戏); /System.out.println(ViewFlow.slider1.getValu

25、e();/测试1 /System.out.println(ViewFlow.slider2.getValue();/测试2 else if(robot.getPixelColor(x2,y2).equals(new Color(255,75,53) /加血位置与血的颜色相等 |robot.getPixelColor(x,y).equals(robot.getPixelColor(x2,y2) /加血位置与指定的理想的血的位置的颜色相等 /* |robot.getPixelColor(x2,y2).equals(new Color(255,159,147) /加血位置与指血的颜色1比较 |rob

26、ot.getPixelColor(x2,y2).equals(new Color(247,193,186) /加血位置与指血的颜色2比较 |robot.getPixelColor(x2,y2).equals(new Color(228,103,88) /加血位置与指血的颜色3比较 |robot.getPixelColor(x2,y2).equals(new Color(245,72,51) /加血位置与指血的颜色4比较 |robot.getPixelColor(x2,y2).equals(new Color(255,183,174) /加血位置与指血的颜色5比较 |robot.getPixel

27、Color(x2,y2).equals(new Color(228,91,75) /加血位置与指血的颜色6比较 |robot.getPixelColor(x2,y2).equals(new Color(248,73,52) /加血位置与指血的颜色7比较 |robot.getPixelColor(x2,y2).equals(new Color(225,195,188) /加血位置与指血的颜色8比较 |robot.getPixelColor(x2,y2).equals(new Color(235,141,130) /加血位置与指血的颜色9比较 |robot.getPixelColor(x2,y2)

28、.equals(new Color(235,69,49) /加血位置与指血的颜色10比较 |robot.getPixelColor(x2,y2).equals(new Color(239,154,144) /加血位置与指血的颜色11比较 */ ) ViewFlow.setText1(不需加血); else if(robot.getPixelColor(x,y).equals(new Color(255,75,53)/加血 &!robot.getPixelColor(x,y).equals(robot.getPixelColor(x2,y2) ) robot.keyPress(KeyEvent.

29、VK_F8);/加血的键位 /ViewFlow.setText1(自动加血开始); catch(AWTException eException1) Java代码 package game; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; class MyActionListener3 implements ActionListener public void actionPerfo

30、rmed(ActionEvent e3) MyActionListener.myTimer.stop(); ViewFlow.setText1( 外挂程序已停止); Java代码 package game; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; class MyActionListener3 implements ActionListener public void ac

31、tionPerformed(ActionEvent e3) MyActionListener.myTimer.stop(); ViewFlow.setText1( 外挂程序已停止); package game;import javax.swing.*;import java.awt.*;import java.awt.event.*;import javax.swing.event.*;import java.lang.*;import java.io.*;class MyActionListener3 implements ActionListener public void actionP

32、erformed(ActionEvent e3) MyActionListener.myTimer.stop(); ViewFlow.setText1( 外挂程序已停止); Java代码 package game; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.lang.*; import java.io.*; class MyActionListener4 implements ActionListener public voi

33、d actionPerformed(ActionEvent e7) if(e7.getSource()=ViewFlow.helpMenuItem1)/打开使用帮助网页 try Runtime.getRuntime().exec(C:ProgramFilesInternetExploreriexplore.exe catch(IOException eIO) else if(e7.getSource()=ViewFlow.helpMenuItem2)/打开在线更新网页 try Runtime.getRuntime().exec(C:ProgramFilesInternetExploreriexplore.exe catch(IOException eIO)

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 期刊短文 > 互联网

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁