Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. --[[
  2.  
  3. Zilean The Evil Time Bomb by Lillgoalie [REWORKED]
  4. Version: 1.1
  5.  
  6. Features:
  7.  
  8. - Combo Mode:
  9. - Uses Q, W, Q , E (if E enabled in menu)
  10. - Checks if Q is not available before using W
  11.  
  12.  
  13. Instructions on saving the file:
  14. - Save the file in scripts folder
  15.  
  16. --]]
  17. if myHero.charName ~= "Zilean" then return end
  18.  
  19. local ts
  20.  
  21. function OnLoad()
  22. -- Menu
  23. Config = scriptConfig("Zilean by Lillgoalie", "ZileanBL")
  24. Config:addParam("drawCircleAA", "Draw AA Range", SCRIPT_PARAM_ONOFF, true)
  25. Config:addParam("drawCircleQ", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
  26. Config:addParam("drawCircleR", "Draw R Range", SCRIPT_PARAM_ONOFF, true)
  27. Config:addParam("FarmR", "Farm R with W", SCRIPT_PARAM_ONOFF, true)
  28. Config:addParam("comboE", "Use E in combo", SCRIPT_PARAM_ONOFF, true)
  29. Config:addParam("combo", "Combo mode", SCRIPT_PARAM_ONKEYDOWN, false, 32)
  30.  
  31. -- Target Selector
  32. ts = TargetSelector(TARGET_LOW_HP_PRIORITY,700)
  33.  
  34. -- Message
  35. PrintChat("Loaded Zilean By Lillgoalie")
  36. end
  37.  
  38. function OnTick()
  39. -- Check for enemies repeatly
  40. ts:update()
  41.  
  42. -- Enemy in range?
  43. if (ts.target ~= nil) then
  44. -- Combo key pressed?
  45. if (Config.combo) then
  46. -- Able to cast Q?
  47. if (myHero:CanUseSpell(_Q) == READY) then
  48. -- Cast spell on target
  49. CastSpell(_Q, ts.target)
  50. end
  51. -- Able to cast W?
  52. if (myHero:CanUseSpell(_W) == READY) then
  53. -- Not able to cast Q?
  54. if (myHero:CanUseSpell(_Q) ~= READY) then
  55. -- Cast spell on enemy
  56. CastSpell(_W)
  57. end
  58. end
  59.  
  60. -- E in combo enabled?
  61. if (Config.comboE) then
  62. -- Able to cast E?
  63. if (myHero:CanUseSpell(_E) == READY) then
  64. -- Cast spell on target
  65. CastSpell(_E, ts.target)
  66. end
  67. end
  68. end
  69. end
  70.  
  71. end
  72.  
  73. function OnDraw()
  74. --Draw Range if activated in menu
  75. if (Config.drawCircleAA) then
  76. DrawCircle(myHero.x, myHero.y, myHero.z, 600, ARGB(255, 0, 255, 0))
  77. end
  78. if (Config.drawCircleQ) then
  79. DrawCircle(myHero.x, myHero.y, myHero.z, 700, 0x111111)
  80. end
  81. if (Config.drawCircleR) then
  82. DrawCircle(myHero.x, myHero.y, myHero.z, 900, 0x111111)
  83. end
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement