全图挂检测1.原理:出来就能看到敌对的快乐的小绵羊,故判定为开挂。

//全图挂检测.原理:出来就能看到敌对的快乐的小绵羊,故判定为开挂。
function jiaoyan_kaigua takes nothing returns nothingif not IsUnitInvisible(weiguo_kldxmy, Player(1)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 1 楼玩家( "+GetPlayerName (Player(1))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(weiguo_kldxmy, Player(2)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 2 楼玩家( "+GetPlayerName(Player(2))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(weiguo_kldxmy, Player(3)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 3 楼玩家( "+GetPlayerName(Player(3))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(weiguo_kldxmy, Player(4)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 4 楼玩家( "+GetPlayerName(Player(4))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(weiguo_kldxmy, Player(5)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 5 楼玩家( "+GetPlayerName(Player(5))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(shuguo_kldxmy, Player(7)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 6 楼玩家( "+GetPlayerName(Player(7))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(shuguo_kldxmy, Player(8)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 7 楼玩家( "+GetPlayerName(Player(8))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(shuguo_kldxmy, Player(9)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 8 楼玩家( "+GetPlayerName(Player(9))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(shuguo_kldxmy, Player(10)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 9 楼玩家( "+GetPlayerName(Player(10))+" )有开挂!!!|r"  )endifif not IsUnitInvisible(shuguo_kldxmy, Player(11)) then call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到 10 楼玩家( "+GetPlayerName(Player(11))+" )有开挂!!!|r"  )endif
endfunction

全图挂检测2。原理:玩家选择了不可见的单位,故判断该玩家开挂了。

(我没有测试过,所以这种检测不确定是否有用。)

//全图挂检测1。原理:玩家选择了不可见的单位,故判断该玩家开挂了。(我没有测试过,所以这种检测不确定是否有用。)
//(因为是该玩家选中单位触发的事件后马上检测,故基本排除了选中单位后单位移动到不可见位置的情况。)
function Trig_jiaoyan_kaigua takes nothing returns nothinglocal player player_temp = null //触发的玩家local trigger trig = GetTriggeringTrigger() //触发的触发器local integer playerId = 0 //玩家索引,1楼是2 , 6楼是8 ,10楼是12local unit sel_unit = null //被选择的单位local integer i = 0loopset playerId = playerId + 1exitwhen trig == gg_jiaoyan_kaigua[playerId]  endloopset player_temp = Player(playerId-1)//call DisplayTimedTextToForce(GetPlayersAll(),5.00,  I2S(playerId) + "开始检测..." + I2S(GetUnitLevel ( GetHeroUnit(playerId)) ))if IsUnitSelected( GetHeroUnit(playerId),player_temp) then //选择自己的武将,则不用继续校验了。elseif playerId < 8 then //蜀国的玩家触发if IsUnitSelected( GetHeroUnit(8),player_temp) then set sel_unit = GetHeroUnit(8)elseif IsUnitSelected( GetHeroUnit(9),player_temp) then set sel_unit = GetHeroUnit(9)elseif IsUnitSelected( GetHeroUnit(10),player_temp) then set sel_unit = GetHeroUnit(10)elseif IsUnitSelected( GetHeroUnit(11),player_temp) then set sel_unit = GetHeroUnit(11)elseif IsUnitSelected( GetHeroUnit(12),player_temp) then set sel_unit = GetHeroUnit(12)            endifelseif playerId >= 8 then //魏国的玩家触发if IsUnitSelected( GetHeroUnit(2),player_temp) then set sel_unit = GetHeroUnit(2)elseif IsUnitSelected( GetHeroUnit(3),player_temp) then set sel_unit = GetHeroUnit(3)elseif IsUnitSelected( GetHeroUnit(4),player_temp) then set sel_unit = GetHeroUnit(4)elseif IsUnitSelected( GetHeroUnit(5),player_temp) then set sel_unit = GetHeroUnit(5)elseif IsUnitSelected( GetHeroUnit(6),player_temp) then set sel_unit = GetHeroUnit(6)          endifendif//sel_unit不为空则进一步检测if sel_unit != null and IsUnitInvisible(sel_unit, player_temp) then  //该单位如果对该玩家不可见,但他又选择了,故判断该玩家开挂了。call DisplayTimedTextToForce(GetPlayersAll(),10.00,  "|cFFFFFF00检测到玩家( "+GetPlayerName(player_temp)+" )有开挂!!!|r"  )else//call DisplayTimedTextToForce(GetPlayersAll(),5.00,  "没有检测玩家到开挂。"  )endifcall DisableTrigger(GetTriggeringTrigger())
endfunction
//玩家选择单位事件,通过 TriggerRegisterPlayerSelectionEventBJ 触发调用该函数
function playerSelectUnitTrigger_Action takes nothing returns nothinglocal player player_temp = GetTriggerPlayer() //触发的玩家local integer playerId = GetConvertedPlayerId(player_temp) //玩家索引,1楼是2 , 6楼是8 ,10楼是12if not(IsTriggerEnabled(gg_jiaoyan_kaigua[playerId])) thencall EnableTrigger(gg_jiaoyan_kaigua[playerId])  endif
endfunction

初始化一些全家变量

//选择单位触发器
trigger gg_SelectUnitTrigger=null
//判断指定玩家是否开挂触发器
trigger array gg_jiaoyan_kaigua
//蜀国快乐的小绵羊
unit shuguo_kldxmy = null
//魏国快乐的小绵羊
unit weiguo_kldxmy = null
//初始化
function Trig_init_Actions takes nothing returns nothing
local integer i = 0
//全图挂检测1
call jiaoyan_kaigua()
//全图挂检测2
loop set i = i + 1set gg_jiaoyan_kaigua[i] = CreateTrigger()call DisableTrigger(gg_jiaoyan_kaigua[i])  call TriggerRegisterTimerEventPeriodic(gg_jiaoyan_kaigua[i],0.05)  call TriggerAddAction(gg_jiaoyan_kaigua[i],function Trig_jiaoyan_kaigua)  exitwhen i >= 13
endloop
set gg_SelectUnitTrigger = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_SelectUnitTrigger,EVENT_PLAYER_UNIT_SELECTED)
call TriggerAddAction(gg_SelectUnitTrigger,function playerSelectUnitTrigger_Action)
endfunction

下载了一个全图挂测试了一下。检测技术2有效。但必须玩家点击对方不可见的武将时才能检测出来。

检测技术1无效,可能是外挂没有使用这么粗暴的方法,检测技术1应该是竞技平台会检测。

判断玩家是否开全图挂相关推荐

  1. 还记得《这个杀手不太冷》里的小女孩吗?电影结束后,她的人生简直像是开了挂一样顺

    <这个杀手不太冷>这个电影其实距离现在过去很久了,还是经久不衰.我看的并不早,这部片子是1994年上映的一部电影.熟悉这部电影的人都知道这是一个职业杀手和一个小女孩的感人故事.这也许就是那 ...

  2. 为什么有人的人生跟开了挂一样?

    转载知乎:<为什么有人的人生跟开了挂一样> 知乎超10000赞文章!为什么有人的人生跟开了挂一样? Aug.25 灼见(微信号:penetratingview) 作者丨另维 来源丨另维和Y ...

  3. 星际开图挂_星际的打开全图的秘籍是多少

    匿名用户 1级 2017-10-27 回答 power overwhelming =无敌 operation CWAL=快速建筑生产 show me the money =10,000 单位的矿物和高 ...

  4. android 图片横竖判断_Android应用开发之android 判断ImageView当前显示的是哪一张图片...

    本文将带你了解Android应用开发之android   判断ImageView当前显示的是哪一张图片,希望本文对大家学Android有所帮助. 判断ImageView当前显示的是哪一张图片 Java ...

  5. 随机生成双色球号码判断中奖模拟开奖python代码

    # @Author: Gerry Zhao # @Date: 2019-01-23 18:56:47 # Last Modified by: Gerry Zhao # Last Modified ti ...

  6. DeforGAN:用GAN实现星际争霸开全图外挂!

    点击上方"机器学习与生成对抗网络",关注"星标" 获取有趣.好玩的前沿干货! 文章来源:机器之心 作者:Yonghyun Jeong等 参与:李诗萌.Geek ...

  7. 稳定wow60级服务器,魔兽世界怀旧服:永久60级服务器可能人多还是人少?玩家吵开了!...

    2021年春,暴雪在嘉年华上宣布了TBC版本怀旧服将在今年开放. 一时间,众多AFK很久的老玩家也开始期待起来,有人说,TBC才是我的怀旧之旅. 但是,还有很多玩家坚持认为60级香草是到才是原汁原味的 ...

  8. 饥荒专用服务器全图显示代码,饥荒开全图代码

    用记事本打开游戏目录\data\DLC0001\scripts\prefabs\player_common.lua文件,在inst:AddComponent("resurrectable&q ...

  9. 笨人可以学计算机吗,为什么有的笨人一旦开窍,其人生就像开了挂似的呢?

    真正的天才,是懂得在别人面前装糊涂的人.但如果他受到某种刺激,装糊涂也就没有必要了,低调惯了的人,总有一天,会一鸣惊人. -- 韬盛和夫 大自然有一种特有的现象,自作聪明的动物往往不会活的太长,而那些 ...

  10. U盘插入Mac电脑无反应什么原因?用NTFS for Mac解决简直人生开了挂!

    不止一位朋友反应自己的苹果电脑插入U盘没有反应,或者出现可以看但不能存文件的情况,这到底是什么原因呢?如果大家在看这篇文章那就继续往下看吧! 在mac上遇到这类情况时,对于mac新用户来说难免会有点措 ...

最新文章

  1. 细鹏系列裸金属服务器多核算力,鲲鹏凌云,开启多元计算新架构_外发版(40页)-原创力文档...
  2. 利用linux自带的邮箱服务实现邮件转发
  3. muduo之TcpClient
  4. Elasticsearch过滤与聚合的先后顺序java实现
  5. 在ASP.NET项目中使用CKEditor +CKFinder实现图片上传功能
  6. windosw7 Hosts文件的位置
  7. php验证密码后跳转_php-laravel框架用户验证(Auth)模块解析(四)忘记密码
  8. 虚函数表 对C++ 了解的人都应该知道虚函数
  9. 蓦然认知戴帅湘:做新一代决策引擎,比DuerOs走得垂直纵深
  10. CentOS 7 安装无线驱动
  11. Netty自带的心跳机制——IdleStateHandler
  12. 数据元和元数据的概念与关系
  13. 1.59TB《全球 12.5 米高程DEM for WeServer》发布
  14. Hello World with Ant
  15. python3读取python2的npy文件
  16. 船讯网|爬虫COOKIE重定向反爬处理
  17. %几.几//C语言(闲的没事,记录下)
  18. CA证书下载以及导出公私钥教程
  19. elasticsearch 实现查询忽略大小写
  20. Linux free 查看内存使用情况 常用命令

热门文章

  1. python爬虫-基础入门-python爬虫突破封锁
  2. 服务器自建云存储,如何搭建私有云?私有云储存服务器NAS搭建方法(轻松搞定)...
  3. win7 IIS服务发布网站
  4. net configuration assistant 没反应_苗阜深夜发文:20年了没被打过,张玉浩,你已经离开青曲社了...
  5. win10输入法简繁体切换及全角和半角切换快捷键
  6. YOLO Air:科研改进论文推荐 | 改进组合上千种搭配,包括Backbone,Neck,Head,注意力机制,适用于YOLOv5、YOLOv7、YOLOX等算法
  7. JUJU 猫论坛系统克隆准备工具 V1.0.0.0 Beta 测试版(菜鸟也能轻松制作万能克隆光盘)...
  8. Reverse complement DNA
  9. 判断三角形顺时针/逆时针
  10. gc计算机术语,GC是什么意思?