LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 1469|回复: 4

[GC] 【GC六段】速来大神给此函数加一个时间轴。

[复制链接]
发表于 2015-11-24 09:22:41 | 显示全部楼层 |阅读模式
本帖最后由 小小沫涵 于 2015-11-26 00:23 编辑

function FHGetRangeRadianCastingUnit(jl,Degrees,spellName)

local name, rank, icon, castTime, minRange, maxRange, spellID = GetSpellInfo(SpellName)

            for i = 1, #FHenemiesTable do
                     local thisUnit = FHenemiesTable.unit
                    if FHObjectDistance("player",thisUnit) < jl and FHgetFacing(thisUnit,Degrees) == true and FHINSight(thisUnit) == true  and UnitIsDeadOrGhost(thisUnit) == false then


                          
                           --local spell, _, _, _, startTime, endTime, _, _, notinterrupt= UnitCastingInfo(thisUnit);
                           --local spell2, _, _, _, startTime2, endTime2, _, _, notinterrupt2= UnitChannelInfo(thisUnit);



                           if amSpellInterrupt(thisUnit) then
                               amrun(spellName,thisUnit);
                                         return true
                           end


                          --[[
                           if UnitCastingInfo(thisUnit) ~= nil and not notinterrupt then
                                local finish = (endTime/1000 - GetTime())/(startTime/1000 - endTime/1000)*100;

                                if finish <= 70 and amSpellCooldown(spellID) == 0 and amcd then
                                       --return thisUnit;
                                      --CastSpellByName(spellName,thisUnit);
                                       amrun(spellName,thisUnit);
                                         return true
                                end
                           end
                           if UnitChannelInfo(thisUnit) ~= nil and not notinterrupt2 then
                                local finish2 = (endTime2/1000 - GetTime())/(startTime2/1000 - endTime2/1000)*100;

                                if finish2 <= 70  and amSpellCooldown(spellID) == 0 and amcd then
                                       --return thisUnit;
                                       --CastSpellByName(spellName,thisUnit);
                                       amrun(spellName,thisUnit);
                                         return true
                                end
                           end
                           ]]

                    end

            end
      return false
end

--------------------------求给上面这个函数加个时间轴。非当前目标读条50%时执行。

回复

使用道具 举报

发表于 2015-11-24 09:29:08 | 显示全部楼层
这是什么高端玩具呀   看不明白
回复 支持 反对

使用道具 举报

发表于 2015-11-24 21:10:30 | 显示全部楼层
其实加个时间判断不是难事,但问题是找到现成的读条时间判断函数
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-11-24 22:09:31 | 显示全部楼层
ggdove 发表于 2015-11-24 21:10
其实加个时间判断不是难事,但问题是找到现成的读条时间判断函数

........自己写一个有困难?
回复 支持 反对

使用道具 举报

发表于 2015-11-26 00:22:50 | 显示全部楼层
写的FH?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-5-20 11:26 PM , Processed in 0.061615 second(s), 23 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表