Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] Jak wgrac skrypty do bola ?


piwko007

Rekomendowane odpowiedzi

Opublikowano

Siema, wbilem sobie na skrypt

"

Akali Autocombo

-FruityBatmanSlippers

 

Moderately based on and inspired by eXtragoZ's combo scripts

 

Converted from skinnydude's FPB script

(https://gist.github.com/3226786)

]]--

 

--[[ Config ]]--

 

CONFIG_E_RANGE = 250

 

--[[ ====== ]]--

 

local function altDoFile(name)

dofile(debug.getinfo(1).source:sub(debug.getinfo(1).source:find(".*\\")):sub(2)..name)

end

 

if player == nil then

player = GetMyHero()

end

 

if player.charName == "Akali" then

altDoFile("common/comboClass.lua")

 

local bEnergyAvail = false

 

local tCallbacks =

{

{

hotkey = 65,

callback = function(pComboBase)

pComboBase:UseActives()

 

local pTarget = pComboBase:GetTarget()

 

if pTarget ~= nil then

local iDist = player:GetDistance(pTarget)

if iDist <= 600 and player:CanUseSpell(_Q) then

CastSpell(_Q, pTarget)

end

 

if(iDist <= 800 and (iDist > CONFIG_E_RANGE or (player:CanUseSpell(_Q) ~= READY and player:CanUseSpell(_E) ~= READY ) ) and player:CanUseSpell(_R) == READY ) then

CastSpell(_R, pTarget)

end

 

if (iDist <= CONFIG_E_RANGE or bEnergyAvail) and player:CanUseSpell(_E) == READY then

CastSpell(_E, pTarget)

end

 

player:Attack(pTarget)

end

end

},

 

{

hotkey = TICK_HANDLER,

callback = function(pComboBase)

local pSpellDataQ = player:GetSpellData(_Q)

local pSpellDataE = player:GetSpellData(_E)

 

bEnergyAvail = true

 

if pSpellDataQ ~= nil and pSpellDataE ~= nil then

if pSpellDataQ.level < 1 or pSpellDataE.level < 1 then return false end

 

local totalCost = 60 + (60-5*pSpellDataE.level)

bEnergyAvail = ( player.mana >= totalCost )

end

end

}

}

 

local pAkaliCombo = ComboBase:new( TARGET_LOW_HP, 800, DAMAGE_MAGIC, tCallbacks )

end

 

PrintChat(" » Akali script loaded!")"

wkleilem odpalilem i w grze mi wyskakuje

: string akali op i i jakis dlugi error, co to moze byc ?

Sygnatury brak z powodu nauki ;3

Opublikowano

Niech zgadne, Pewnie zle skrypt wkleiles !?

Niestety to jest prawda, daj link na forum bola

--[[
    Akali SBTW v0.2 by skinnydude (This is mod'd from h0nda's ryze spammer)
     
    Hold spacebar to win 
     
    ]]
     
    HK=32 --spacebar
    scriptActive = false
     
    combo = {SPELL_SLOT_4,SPELL_SLOT_3,SPELL_SLOT_1}
     
    spell_index = 1
    combo_size = 3
    tmp_target = nil
    range = 800
     
     
     
     
     
    TARGET_LOW_HP = 1
    TARGET_NEAR = 2
    TARGET_FAR =3
     
    TargetSelector = {}
     
    function TargetSelector:new(mode, range)
     
        local object = { mode = mode, range = range, target=nil}
        setmetatable(object, { __index = TargetSelector })  
        return object
    end
     
    function TargetSelector:check_if_target(obj)
        return obj ~= nil and  obj.team == TEAM_ENEMY and obj.dead == false and obj.visible == true
    end
     
    function TargetSelector:low_hp()
        local tmp
        local count = GetPlayerCount()
        for i = 1, count, 1 do
            local object = GetPlayer(i)
           
            if  self:check_if_target(object)  and player:GetDistanceTo(object) <= self.range then
                if tmp==nil then
                    tmp=object
                else
                    if tmp.health > object.health then
                        tmp = object
                    end
                end
            end
        end
        self.target = tmp
    end
     
    function TargetSelector:near()
        local nc  = nil
        local smallest_dist = self.range+1
     
        local count = GetPlayerCount()
        for i = 1, count, 1 do
            local object = GetPlayer(i)
            if  self:check_if_target(object)  then
     
                local d =  player:GetDistanceTo(object)
                if d<=self.range and d<smallest_dist then
                    nc = object
                    smallest_dist = d
                end
            end
        end
        self.target = nc
    end
     
    function TargetSelector:far()
        local fc  = nil
        local biggest_dist = -1
        local count = GetPlayerCount()
        for i = 1, count, 1 do
            local object = GetPlayer(i)
            if  self:check_if_target(object)  then
     
                local d =  player:GetDistanceTo(object)
                if d<=self.range and d>biggest_dist then
                    fc = object
                    biggest_dist = d
                end
            end
        end
        self.target = fc
    end
     
    function TargetSelector:tick(time)
        if self.mode==TARGET_LOW_HP then
            self:low_hp()
        elseif self.mode==TARGET_FAR then
            self:far()
        else
            self:near()
        end
    end
     
     
    ts = TargetSelector:new(TARGET_LOW_HP,range)
     
    function Timer(tick)
     
            ts:tick()
     
            if(scriptActive) then
                    if(spell_index>3) then
                            spell_index =1
     
                    end
     
                    if(ts.target ~= nil and player:CanUseSpell(combo[spell_index])) then
                            player:UseSpell(combo[spell_index], ts.target)
                            spell_index=spell_index+1
                    end
     
                   
            end
    end
     
    function Drawer()
            DrawCircle(range,player.x, player.y, player.z)
        if ts.target ~= nil then
            DrawCircle(100,ts.target.x, ts.target.y, ts.target.z)
        end
    end
    function Hotkey(msg,key)
        if msg == KEY_DOWN then
            --key down
            if key == HK then
                scriptActive = true
            end
        else
            if key == HK then
                scriptActive = false
            end
        end
    end
    function Load()
        if player.charName ~= "Akali" then
            script:Unload()
            return
        end
        script.keyCallback = "Hotkey"
        script.timerCallback = { name = "Timer", interval = 100 }--ms
        script.drawCallback = "Drawer"
        PrintChat("Akali SBTW 0.2 by skinnydude (This is mod'd from h0nda's ryze spammer)")
     
    end

Jak tego , ci sie nie uda wkleic, to znaczy ze nie powiniennes zaimowac sie bolem.

QYUhDIk.png


Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...