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

Ktos kto umie pisac skrypty :) Pomoc :D


Rekomendowane odpowiedzi

Opublikowano

napisz na forum bola pomogą ci tam jeśli napisałeś skrypt to chyba nie  masz problemu z Angielskim :P wydaje mi sie że wiecej tam ci powiedzą niż tutaj 

Opublikowano

myśle że poza Marcolym  nikt tutaj się nie zna na tym ;)

I tutaj sie mylisz  -.-

Albicoolvod->Katatuki

 

d64cee27e8dd47f0bbd3738cee5a7cce.png

 

Opublikowano

Musisz zdefiniować TargetSelector jako ts:

ts = TargetSelector(TARGET_LESS_CAST, 1337, DAMAGE_MAGIC, false)
Opublikowano

właśnie widzę ;) no cóż, to chyba dobrze ;)

Wszyscy co znaja C++ Znaja .lua wiec.

Albicoolvod->Katatuki

 

d64cee27e8dd47f0bbd3738cee5a7cce.png

 

Opublikowano

Wszyscy co znaja C++ Znaja .lua wiec.

Nikt jakoś nie pisze skryptów mimo znajomości C++.

 

Musisz zdefiniować TargetSelector jako ts:

ts = TargetSelector(TARGET_LESS_CAST, 1337, DAMAGE_MAGIC, false)

Dałbym mu jeszcze całą klasę TargetSelector, bo DAMAGE_MAGIC i TARGET_LESS_CAST może go przerosnąć :D

-- TargetSelector Class
--[[
TargetSelector Class :
    Methods:
        ts = TargetSelector(mode, range, damageType (opt), targetSelected (opt), enemyTeam (opt))
    Goblal Functions :
        TS_Print(enemyTeam (opt))           -> print Priority (global)
        TS_SetFocus()           -> set priority to the selected champion (you need to use PRIORITY modes to use it) (global)
        TS_SetFocus(id)         -> set priority to the championID (you need to use PRIORITY modes to use it) (global)
        TS_SetFocus(charName, enemyTeam (opt))  -> set priority to the champion charName (you need to use PRIORITY modes to use it) (global)
        TS_SetFocus(hero)       -> set priority to the hero object (you need to use PRIORITY modes to use it) (global)
        TS_SetHeroPriority(priority, target, enemyTeam (opt))                   -> set the priority to target
        TS_SetPriority(target1, target2, target3, target4, target5)     -> set priority in order to enemy targets
        TS_SetPriorityA(target1, target2, target3, target4, target5)    -> set priority in order to ally targets
        TS_GetPriority(target, enemyTeam)       -> return the current priority, and the max allowed
    Functions :
        ts:update()                                             -- update the instance target
        ts:SetDamages(magicDmgBase, physicalDmgBase, trueDmg)
        ts:SetPrediction()                          -- prediction off
        ts:SetPrediction(delay)                     -- predict movement for champs (need Prediction__OnTick())
        ts:SetMinionCollision()                     -- minion colission off
        ts:SetMinionCollision(spellWidth)           -- avoid champ if minion between player
        ts:SetConditional()                         -- erase external function use
        ts:SetConditional(func)                     -- set external function that return true/false to allow filter -- function(hero, index (opt))
        ts:SetProjectileSpeed(pSpeed)               -- set projectile speed (need Prediction__OnTick())
    Members:
        ts.mode                     -> TARGET_LOW_HP, TARGET_MOST_AP, TARGET_MOST_AD, TARGET_PRIORITY, TARGET_NEAR_MOUSE, TARGET_LOW_HP_PRIORITY, TARGET_LESS_CAST, TARGET_LESS_CAST_PRIORITY
        ts.range                    -> number > 0
        ts.targetSelected       -> true/false
        ts.target                   -> return the target (object or nil)
        ts.index        -> index of target (if hero)
        ts.nextPosition -> nextPosition predicted
        ts.nextHealth       -> nextHealth predicted
    Usage :
        variable = TargetSelector(mode, range, damageType (opt), targetSelected (opt), enemyTeam (opt))
        targetSelected is set to true if not filled
        Damages are set as default to magic 100 if none is set
        enemyTeam is false if ally, nil or true if enemy
        when you want to update, call variable:update()
        Values you can change on instance :
        variable.mode -> TARGET_LOW_HP, TARGET_MOST_AP, TARGET_PRIORITY, TARGET_NEAR_MOUSE, TARGET_LOW_HP_PRIORITY, TARGET_LESS_CAST, TARGET_LESS_CAST_PRIORITY
        variable.range -> number > 0
        variable.targetSelected -> true/false (if you clicked on a champ)
    ex :
        function OnLoad()
            ts = TargetSelector(TARGET_LESS_CAST, 600, DAMAGE_MAGIC, true)
        end
        function OnTick()
            if ts.target ~= nil then
                PrintChat(ts.target.charName)
                ts:SetDamages((player.ap * 10), 0, 0)
            end
        end
]]
Opublikowano

Dzikeuje teraz mam problem bo jak podbiegam cisne spacje jak pojebany i ni huja comba nie robi XDD lece testowac dalej dzieki all :)


To jest moje combo

function checks_OnTick()
       
        Qready = (myHero:CanUseSpell(_Q) == READY)
        Wready = (myHero:CanUseSpell(_W) == READY)
        Eready = (myHero:CanUseSpell(_E) == READY)
        Rready = (myHero:CanUseSpell(_R) == READY)
 
end
-- Combo
function Combo()
        if target and ValidTarget(target, 800) then
        if Qready and GetDistance(target) <= Qrange then
              if menu.combo.useQ then
              CastSpell(_Q, target)
            end
        end
        if Wready and GetDistance(target) <= Wrange then
                if menu.combo.useW then
                CastSpell(_W, target)
            end
        end
        if Eready and GetDistance(target) <= Erange then
                if menu.combo.useE then
                CastSpell(_E, target)
            end
        end
        if Rready and GetDistance(target) <= Qrange then
                if menu.combo.useR then
                CastSpell(_R)
            end
        end
    end
end      
 
 
 
i podchodze do bota i nie castuje ;/
na harass tez nie reaguje
 
To jest skrypt lekko zedytowany niz ten u gory:

x

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...