冰楓論壇

 找回密碼
 立即註冊
ads_sugarbook
搜索
查看: 866|回覆: 2
打印 上一主題 下一主題

[求助] 菲歐拉腳本讀取錯誤

[複製鏈接]

57

主題

0

好友

125

積分

註冊會員

Rank: 2

UID
111650
帖子
230
主題
57
精華
0
積分
125
楓幣
1127
威望
121
存款
0
贊助金額
0
推廣
1
GP
52
閱讀權限
20
性別
在線時間
81 小時
註冊時間
2015-8-22
最後登入
2024-3-9

2015中秋節紀念勳章 2015年紀念勳章 太陽勳章 神手勳章

跳轉到指定樓層
1
發表於 2015-10-2 17:04:58 |只看該作者 |倒序瀏覽
進入遊戲 出現這個錯誤...

腳本如下...

if GetObjectName(GetMyHero()) ~= "Fiora" then return end
--MonTour Fiora:V1.0.0.0
PrintChat(string.format("<font color='#80F5F5'>MonTour Fiora:</font> <font color='#EFF0F0'>loaded by MarCiii!</font>"))
PrintChat(string.format("<font color='#80F5F5'>Version:</font> <font color='#EFF0F0'>1.0.0.0</font>"))
PrintChat(string.format("<font color='#80F5F5'>Credits to:</font> <font color='#EFF0F0'> leoferrerinha for Auto W</font>"))
PrintChat(string.format("<font color='#80F5F5'>Credits to:</font> <font color='#EFF0F0'> Deftsu for ItemsUse Code</font>"))
local FioraMenu = Menu("Fiora", "F")
FioraMenu:SubMenu("Combo", "Combo")
FioraMenu.Combo:Boolean("Q","Use Q",true)
FioraMenu.Combo:Boolean("W","Use W",false)
FioraMenu.Combo:Boolean("E","Use E",true)
FioraMenu.Combo:Boolean("R","Use R",true)
FioraMenu.Combo:Slider("HP", "Use R if HP < x%", 20, 1, 80, 1)
FioraMenu:SubMenu("Items", "Items&Ignite")
FioraMenu.Items:Boolean("Ignite","AutoIgnite if OOR",true)
FioraMenu.Items:Boolean("useTiamat", "Tiamat", true)
FioraMenu.Items:Boolean("useHydra", "Hydra", true)
FioraMenu.Items:Info("Fiora", " ")
FioraMenu.Items:Boolean("useCut", "Bilgewater Cutlass", true)
FioraMenu.Items:Slider("CutBlademyhp", "if My Health < x%", 50, 5, 100, 1)
FioraMenu.Items:Slider("CutBladeehp", "if Enemy Health < x%", 20, 5, 100, 1)
FioraMenu.Items:Info("Fiora", " ")
FioraMenu.Items:Boolean("useBork", "Blade of the Ruined King", true)
FioraMenu.Items:Slider("borkmyhp", "if My Health < x%", 50, 5, 100, 1)
FioraMenu.Items:Slider("borkehp", "if Enemy Health < x%", 20, 5, 100, 1)
FioraMenu.Items:Info("Fiora", " ")
FioraMenu.Items:Boolean("useGhost", "Youmuu's Ghostblade", true)
FioraMenu.Items:Boolean("useRedPot", "Elixir of Wrath(REDPOT)", true)
FioraMenu:SubMenu("Harass", "Harass")
FioraMenu.Harass:Boolean("Q","Use Q",true)
FioraMenu.Harass:Boolean("W","Use W",false)
FioraMenu.Harass:Boolean("E","Use E",false)
FioraMenu.Harass:Boolean("R","Use R",false)
FioraMenu.Harass:Slider("HP", "Use R if HP < x%", 20, 1, 80, 1)
FioraMenu:SubMenu("OP", "Auto Dodging")
FioraMenu.OP:Boolean("W","Use W",true)

--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/
Defender = {["Aatrox"] = {_E},["Ahri"] = {_Q,_W,_E,_R},["Anivia"] = {_Q,_E},["Annie"] = {_Q},["Amumu"] = {_Q},["Blitzcrank"] = {_Q},["Brand"] = {_Q,_R},["Caitlyn"] = {_Q,_E},["Cassiopeia"] = {_W,_E},["Corki"] = {_R},["DrMundo"] = {_Q},["Elise"] = {_Q,_E},["Ezreal"] = {_Q,_W},["Galio"] = {_Q,_E},["Gangplank"] = {_Q},["Gnar"] = {_Q},["Graves"] = {_Q,_R},["Heimerdinger"] = {_W},["Irelia"] = {_R},["Jinx"] = {_W},["Kalista"] = {_Q},["Karma"] = {_Q},["Kassadin"] = {_Q},["Leblanc"] = {_Q,_E},["Leesin"] = {_Q},["Leona"] = {_E},["Lux"] = {_Q,_E},["Morgana"] = {_Q},["Pantheon"] = {_Q},["Quinn"] = {_Q},["Rengar"] = {_E},["Ryze"] = {_Q},["Sejuani"] = {_R},["Sivir"] = {_Q},["Skarner"] = {_E},["Teemo"] = {_Q},["Thresh"] = {_Q},["Varus"] = {_Q},["Vayne"] = {_E},["Veigar"] = {_R},["Twistedfate"] = {_Q},["Velkoz"] = {_Q},["Zed"] = {_Q}}
--Inicia
                myHero = GetMyHero()
                function GerarPosicaoAtaque(unitPos, spellPos, range)
                local PosxZ = {x = (spellPos.x-unitPos.x), z = (spellPos.z-unitPos.z)}
                local len = math.sqrt(PosXZ.x * PosXZ.x + PosXZ.z * PosXZ.z)
                return {x = unitPos.x + range * PosXZ.x / len, y = 0, z = unitPos.z + range * PosXZ.z / len}
                end
                unit = GetCurrentTarget()

--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/--/
                OnProcessSpell(function(unit, spell)
                myHero = GetMyHero()

                        if FioraMenu.OP.W:Value() then

                                if unit and GetTeam(unit) ~= GetTeam(myHero) and GetObjectType(unit) == GetObjectType(myHero) and GoS:GetDistance(unit) < 700 then
                                local Ataques = Defender[GetObjectName(unit)]

                                        if myHero == spell.target and Ataques and GetRange(unit) >= 450 and not spell.name:lower():find("attack") then
                                        local wPos = GetOrigin(unit)
                                                CastSkillShot(_W, wPos.x, wPos.y, wPos.z)
                                                elseif spell.endPos and not spell.name:lower():find("attack") then
                                                local ComporPos = GerarPosicaoAtaque(GetOrigin(unit), spell.endPos, GoS:GetDistance(unit, myHero))

                                                        if GoS:GetDistanceSqr(ComporPos) < (GetHitBox(myHero)*3)^2 or GoS:GetDistanceSqr(spell.endPos) < (GetHitBox(myHero)*3)^2 then
                                                        local wPos = GetOrigin(unit)
                                                        CastSkillShot(_W, wPos.x, wPos.y, wPos.z)
                                                        end
                                        end
                                end
                        end
                end)
PrintChat(string.format("<font color='#198c19'>Fiora:</font> <font color='#ffff32'>loaded by MarCiii!</font>"))

OnLoop(function(myHero)
Ignite()
Combo()
Harass()
Items()
end)

function Combo()
unit = GetCurrentTarget()
if unit == nil or GetOrigin(unit) == nil or IsImmune(unit,myHero) or IsDead(unit) or not IsVisible(unit) or GetTeam(unit) == GetTeam(myHero) then return false end
if IOW:Mode() == "Combo" then
if GoS:ValidTarget(unit, 1550) and IsObjectAlive(unit) and not IsImmune(unit) and IsTargetable(unit) then

      if FioraMenu.Combo.Q:Value() then
        if GetCastName(myHero, _Q) == "FioraQ" and (GetItemSlot(myHero, 3077) < 1 or GetItemSlot(myHero, 3074) < 1) then
        local QPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,400,50,false,true)
            if CanUseSpell(myHero, _Q) == READY and GoS:IsInDistance(unit, 400) then
            CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
            end
        end
      end  
      if FioraMenu.Combo.Q:Value() then
        if GetCastName(myHero, _Q) == "FioraQ" and (GetItemSlot(myHero, 3077) >= 1 or GetItemSlot(myHero, 3074) >= 1) then
        local QPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,450,400,false,true)
            if CanUseSpell(myHero, _Q) == READY and GoS:IsInDistance(unit, 450) then
            CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
            end
        end
      end  
       if GetCastName(myHero, _W) == "FioraW" then
            if FioraMenu.Combo.W:Value() then           
                local WPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,false,true)
                 if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and GoS:IsInDistance(unit, 750) then
            CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
            end
        end
    end
      if GetCastName(myHero, _E) == "FioraE" then
            if FioraMenu.Combo.E:Value() then
              if CanUseSpell(myHero, _E) == READY and GoS:IsInDistance(unit, 260) then
                CastSpell(_E)
            end
        end
    end
   if GetCastName(myHero, _R) == "FioraR" then
            if FioraMenu.Combo.R:Value() then
                if (GetCurrentHP(unit)/GetMaxHP(unit)) < (FioraMenu.Combo.HP:Value()/100) and
                    CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and GoS:IsInDistance(unit, 500) then
            CastTargetSpell(unit, _R)
            end
        end
    end
end
end
end  

function Harass()
if unit == nil or GetOrigin(unit) == nil or IsImmune(unit,myHero) or IsDead(unit) or not IsVisible(unit) or GetTeam(unit) == GetTeam(myHero) then return false end
if IOW:Mode() == "Harass" then
if GoS:ValidTarget(unit, 1550) and IsObjectAlive(unit) and not IsImmune(unit) and IsTargetable(unit) then
      if FioraMenu.Harass.Q:Value() then
        if GetCastName(myHero, _Q) == "FioraQ" and (GetItemSlot(myHero, 3077) < 1 or GetItemSlot(myHero, 3074) < 1) then
        local QPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,400,50,false,true)
            if CanUseSpell(myHero, _Q) == READY and GoS:IsInDistance(unit, 400) then
            CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
            end
        end
      end  
      if FioraMenu.Harass.Q:Value() then
        if GetCastName(myHero, _Q) == "FioraQ" and (GetItemSlot(myHero, 3077) >= 1 or GetItemSlot(myHero, 3074) >= 1) then
        local QPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,450,400,false,true)
            if CanUseSpell(myHero, _Q) == READY and GoS:IsInDistance(unit, 450) then
            CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
            end
        end
      end
       if GetCastName(myHero, _W) == "FioraW" then
            if FioraMenu.Harass.W:Value() then           
                local WPred = GetPredictionForPlayer(GoS:myHeroPos(),unit,GetMoveSpeed(unit),1700,250,750,50,false,true)
                 if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and GoS:IsInDistance(unit, 750) then
            CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
            end
        end
    end
      if GetCastName(myHero, _E) == "FioraE" then
            if FioraMenu.Harass.E:Value() then
              if CanUseSpell(myHero, _E) == READY and GoS:IsInDistance(unit, 260) then
                CastSpell(_E)
            end
        end
    end
   if GetCastName(myHero, _R) == "FioraR" then
            if FioraMenu.Harass.R:Value() then
                if (GetCurrentHP(unit)/GetMaxHP(unit)) < (FioraMenu.Harass.HP:Value()/100) and
                    CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and GoS:IsInDistance(unit, 500) then
            CastTargetSpell(unit, _R)
            end
        end
    end
end
end
end  

function Ignite()
      local Ignite = (GetCastName(GetMyHero(),SUMMONER_1):lower():find("summonerdot") and SUMMONER_1 or (GetCastName(GetMyHero(),SUMMONER_2):lower():find("summonerdot") and SUMMONER_2 or nil))
    if GoS:ValidTarget(unit, 700) and IsObjectAlive(unit) and not IsImmune(unit) and IsTargetable(unit) and Ignite and FioraMenu.Items.Ignite:Value() and CanUseSpell(myHero,_Q) ~= READY and GoS:GetDistance(unit) > 450 then
        for _, k in pairs(GoS:GetEnemyHeroes()) do
            if CanUseSpell(GetMyHero(), Ignite) == READY and (20*GetLevel(GetMyHero())+50) > GetCurrentHP(k)+GetHPRegen(k)*2.5 and GoS:GetDistanceSqr(GetOrigin(k)) < 600*600 then
                CastTargetSpell(k, Ignite)
            end
        end
     end
end

function Items()
  if IOW:Mode() == "Combo" or IOW:Mode() == "Harass" then
   if FioraMenu.Items.useTiamat:Value() and GetItemSlot(myHero, 3077) >= 1 and GoS:ValidTarget(unit, 550) then --tiamat
        if GoS:GetDistance(unit) < 400 then
         CastTargetSpell(myHero, GetItemSlot(myHero, 3077))
        end      
    elseif FioraMenu.Items.useHydra:Value() and GetItemSlot(myHero, 3074) >= 1 and GoS:ValidTarget(unit, 550) then --hydra
      if GoS:GetDistance(unit) < 385 then
        CastTargetSpell(myHero, GetItemSlot(myHero, 3074))
      end
    end
  end
  if IOW:Mode() == "Combo" then
      if FioraMenu.Items.useCut:Value() and GetItemSlot(myHero,3144) >= 1 and GoS:ValidTarget(unit,550) and GetCurrentHP(myHero)/GetMaxHP(myHero) < (FioraMenu.Items.CutBlademyhp:Value()/100) and GetCurrentHP(target)/GetMaxHP(target) > (FioraMenu.Items.CutBladeehp:Value()/100) then --CutBlade
        if CanUseSpell(myHero,GetItemSlot(myHero,3144)) == READY then
          CastTargetSpell(unit, GetItemSlot(myHero,3144))
        end       
    elseif FioraMenu.Items.useBork:Value() and GetItemSlot(myHero,3153) >= 1 and GoS:ValidTarget(unit,550) and GetCurrentHP(myHero)/GetMaxHP(myHero) < (FioraMenu.Items.borkmyhp:Value()/100) and GetCurrentHP(target)/GetMaxHP(target) > (FioraMenu.Items.borkehp:Value()/100) then
        if CanUseSpell(myHero,GetItemSlot(myHero,3153)) == READY then --bork
          CastTargetSpell(unit,GetItemSlot(myHero,3153))
        end
      elseif FioraMenu.Items.useGhost:Value() and GetItemSlot(myHero,3142) >= 1 and GoS:ValidTarget(unit,500) then --ghost
        if CanUseSpell(myHero,GetItemSlot(myHero,3142)) == READY then
          CastSpell(GetItemSlot(myHero,3142))
        end
     elseif FioraMenu.Items.useRedPot:Value() and GetItemSlot(myHero,2140) >= 1 and GoS:ValidTarget(unit,250) then --redpot
        if CanUseSpell(myHero,GetItemSlot(myHero,2140)) == READY then
          CastSpell(GetItemSlot(myHero,2140))
        end
      end
  end
end

未命名.jpg (34.72 KB, 下載次數: 9)

未命名.jpg

收藏收藏0 推0 噓0


把本文推薦給朋友或其他網站上,每次被點擊增加您在本站積分: 1骰子
複製連結並發給好友,以賺取推廣點數
簡單兩步驟,註冊、分享網址,即可獲得獎勵! 一起推廣文章換商品、賺$$

16

主題

0

好友

119

積分

註冊會員

Rank: 2

UID
97271
帖子
122
主題
16
精華
0
積分
119
楓幣
7364
威望
116
存款
400
贊助金額
0
推廣
0
GP
21
閱讀權限
20
性別
保密
在線時間
62 小時
註冊時間
2015-3-30
最後登入
2023-1-15
2
發表於 2015-10-2 17:22:36 |只看該作者
此文僅作者可見
[發帖際遇]: shing1234 因在創業初期雇用「實習生」第一個月不支薪,因而遭開罰 2 楓幣 幸運榜 / 衰神榜

使用道具 舉報

15

主題

55

好友

374

積分

技術師

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

UID
112702
帖子
1180
主題
15
精華
1
積分
374
楓幣
349
威望
346
存款
13000
贊助金額
0
推廣
0
GP
9
閱讀權限
100
性別
在線時間
160 小時
註冊時間
2015-8-26
最後登入
2024-5-1

發帖達人 管理者 版主勳章 積分勳章 懶人勳章 太陽勳章 幼兒勳章 性別(男) 音樂勳章 神手勳章 富豪勳章 富可敵國 2015年紀念勳章 私服達人 熱心助人 核心勳章 除蟲大隊 性別(女) 2016年紀念勳章 2017年紀念勳章 論壇粉絲 2019年紀念勳章

3
發表於 2015-10-2 18:46:20 |只看該作者
此文僅作者可見

使用道具 舉報

您需要登入後才可以回文 登入 | 立即註冊

廣告刊登意見回饋關於我們管群招募本站規範DMCA隱私權政策

Copyright © 2011-2024 冰楓論壇, All rights reserved

免責聲明:本網站是以即時上載留言的方式運作,本站對所有留言的真實性、完整性及立場等,不負任何法律責任。

而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。

小黑屋|手機版|冰楓論壇

GMT+8, 2024-5-18 04:57

回頂部