Hi people, sorry for my bad english
I started to learn these scripts, i started to make for tryndamere and other champions, and i want to make a timer function for this script ,to show on screen active ult 5 seconds.
Example , script activate ult and show me on screen seconds 5 , 4, 3 , 2 , 1
How to do this magic ? Sugestions ?
require("Inspired" ) if GetObjectName(GetMyHero()) ~= "Tryndamere" then return end local Tryndamere = MenuConfig("Crazy Trynda v1.5", "Tryndamere") Tryndamere:Menu("c", "Auto") Tryndamere.c:Boolean("Q", "Use Auto Q", true) Tryndamere.c:Boolean("R", "Use Auto R", true) Tryndamere:Menu("aq","AutoQ") Tryndamere.aq:Slider("AutoQ","Q when Health is < ", 15, 1, 100, 1) Tryndamere:Menu("ar","AutoR") Tryndamere.ar:Slider("AutoR", "R when Health is < ", 35, 1, 100, 1) Tryndamere:Menu("rp","AreaR") Tryndamere.rp:Slider("AreaR","AreaR",600,1,2500,25) Tryndamere:Menu("qp","AreaQ") Tryndamere.qp:Slider("AreaQ","AreaQ",600,1,2500,25) Tryndamere:Menu("ig", "Ignite") Tryndamere.ig:Boolean("IG", "Ignite", true) Tryndamere:Menu("dr", "Draw Ult") Tryndamere.dr:Boolean("DR", "Draw ", true) OnTick(function(myHero) local hp = (GetCurrentHP(myHero)/GetMaxHP(myHero)) local valq = (Tryndamere.aq.AutoQ:Value()/100) local valr = (Tryndamere.ar.AutoR:Value()/100) local posq = Tryndamere.qp.AreaQ:Value() local posr = Tryndamere.rp.AreaR:Value() -------- Q ----------- if CanUseSpell(myHero, _Q) == READY and Tryndamere.c.Q:Value() and hp < valq and EnemiesAround(myHeroPos(), posq) < 1 then CastSpell(_Q) end -------- R ----------- if CanUseSpell(myHero, _R) == READY and Tryndamere.c.R:Value() and hp < valr and EnemiesAround(myHeroPos(), posr) > 0 then CastSpell(_R) end ----IGNITE---- if Tryndamere.ig.IG:Value() then for _, enemy in pairs(GetEnemyHeroes()) do if Ignite and Tryndamere.ig.IG:Value() then if IsReady(Ignite) and 20*GetLevel(myHero)+50 > GetCurrentHP(enemy)+GetHPRegen(enemy)*2.5 and ValidTarget(enemy, 600) then CastTargetSpell(enemy, Ignite) end end end end end) PrintChat("<font color='#FF0000'> Crazy Trynda v1.5 </font><font color='#FFFF00'> by mastternick <font color='#897176'>(thank you all nice people for inspiration)</font>")