Guest User

GP MASTER v1.0a

a guest
Apr 21st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. --[[ GP script v0.1 kokosik1221]]--
  2.  
  3. if myHero.charName ~= "Gangplank" then return end
  4.  
  5. function Menu()
  6. Menuconf = AutoCarry.PluginMenu
  7. Menuconf:addParam("IGN", "Use Ignite", SCRIPT_PARAM_ONOFF, true)
  8. Menuconf:addParam("KSULT", "Use Ult to steal kills", SCRIPT_PARAM_ONOFF, true)
  9. Menuconf:addParam("USEE", "Use E in Combo", SCRIPT_PARAM_ONOFF, true)
  10. Menuconf:addParam("HEAL", "Auto W", SCRIPT_PARAM_ONOFF, true)
  11. Menuconf:addParam("MINHPTOW", "Min % HP To Heal", SCRIPT_PARAM_SLICE, 60, 0, 100, 2)
  12. Menuconf:addParam("MINMPTOW", "Min % MP To Heal", SCRIPT_PARAM_SLICE, 70, 0, 100, 2)
  13. end
  14.  
  15. function PluginOnLoad()
  16. Menu()
  17. IgniteKey = nil;
  18. if myHero:GetSpellData(SUMMONER_1).name:find("SummonerDot") then
  19. IgniteKey = SUMMONER_1
  20. elseif myHero:GetSpellData(SUMMONER_2).name:find("SummonerDot") then
  21. IgniteKey = SUMMONER_2
  22. else
  23. IgniteKey = nil
  24. end
  25. ultDmg = 0
  26. end
  27.  
  28. function PluginOnTick()
  29. Target = AutoCarry.GetAttackTarget(true)
  30. if tick == nil or GetTickCount()-tick >= 40 then
  31. tick = GetTickCount()
  32. calcUlt()
  33. end
  34. Qrdy = (myHero:CanUseSpell(_Q) == READY)
  35. Wrdy = (myHero:CanUseSpell(_W) == READY)
  36. Erdy = (myHero:CanUseSpell(_E) == READY)
  37. Rrdy = (myHero:CanUseSpell(_R) == READY)
  38.  
  39. --KSULT--
  40. if Menuconf.KSULT then
  41. players = heroManager.iCount
  42. for i = 1, players, 1 do
  43. target = heroManager:getHero(i)
  44. if target ~= nil and target.team ~= player.team and target.visible and not target.dead then
  45. if Rrdy and ultDmg > target.health then
  46. CastSpell(_R, target.x, target.z)
  47. end
  48. end
  49. end
  50. end
  51. --IGNITE--
  52. if Menuconf.IGN and Target ~= nil and IgniteKey ~= nil then
  53. if Target.health < getDmg("IGNITE", myHero, Target) then
  54. CastSpell(IgniteKey, Target)
  55. end
  56. end
  57. --COMBO--
  58. if AutoCarry.MainMenu.AutoCarry and Target ~= nil then
  59. if Qrdy and ValidTarget(Target, 675) then
  60. CastSpell(_Q, Target.x, Target.z)
  61. end
  62. if Menuconf.USEE then
  63. CastSpell(_E)
  64. end
  65. end
  66. --HEAL--
  67. if Menuconf.HEAL then
  68. if ((myHero.mana/myHero.maxMana)*100) > Menuconf.MINMPTOW and ((myHero.health/myHero.maxHealth)*100) < Menuconf.MINHPTOW then
  69. CastSpell(_W)
  70. end
  71. end
  72. end
  73.  
  74. function calcUlt()
  75. if player:GetSpellData(_R).level == 1 then ultDmg = 200 end
  76. if player:GetSpellData(_R).level == 2 then ultDmg = 290 end
  77. if player:GetSpellData(_R).level == 3 then ultDmg = 400 end
  78. end
Advertisement
Add Comment
Please, Sign In to add comment