Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

myHero.GetSpellData(index)


  • Please log in to reply
3 replies to this topic

#1
Zaloopa

Zaloopa

    Member

  • Members
  • 16 posts
-- ZLP Ryze

if myHero.charName ~= "Ryze" then return end

local Q, W, E

local menu = MenuElement ({ id = "ryze", name = "ZLP Ryze", type = MENU })
  menu:MenuElement ({ id = "key", name = "Key Bindings", type = MENU })
    menu.key:MenuElement ({ id = "combo", name = "Combo", key = string.byte (" ") })
	menu.key:MenuElement ({ id = "harass", name = "Harass", key = string.byte ("C") })
	menu.key:MenuElement ({ id = "clear", name = "Lane / Jungle Clear", key = string.byte ("V") })
	menu.key:MenuElement ({ id = "lastHit", name = "Last Hit", key = string.byte ("X") })
	menu.key:MenuElement ({ id = "flee", name = "Flee", key = string.byte ("A") })
  menu:MenuElement ({ id = "combo", name = "Combo / Harass Settings", type = MENU })
  menu:MenuElement ({ id = "clear", name = "Farm Settings", type = MENU })
  menu:MenuElement ({ id = "misc", name = "Additional Settings", type = MENU })
  menu:MenuElement ({ id = "draw", name = "Drawings", type = MENU })

class "Ryze"

function Ryze:__init ()
  self:LoadSpells ()
  self:LoadMenu ()
  
  print ("ZLP Ryze succesfully loaded.")
end

function Ryze:LoadSpells ()
  Q = myHero.GetSpellData (_Q)
  W = myHero.GetSpellData (_W)
  E = myHero.GetSpellData (_E)
end

function Ryze:LoadMenu ()
  menu.combo:MenuElement ({ name = "Combo Settings", type = SPACE })
  menu.combo:MenuElement ({ id = "qc", name = "Use Q", value = true })
  menu.combo:MenuElement ({ id = "wc", name = "Use W", value = true })
  menu.combo:MenuElement ({ id = "ec", name = "Use E", value = true })
  menu.combo:MenuElement ({ name = "", type = SPACE })
  menu.combo:MenuElement ({ name = "Harass Settings", type = SPACE })
  menu.combo:MenuElement ({ id = "qh", name = "Use Q", value = true })
  menu.combo:MenuElement ({ id = "wh", name = "Use W" })
  menu.combo:MenuElement ({ id = "eh", name = "Use E" })
end

function OnLoad ()
  Ryze ()
end

Neeh helperino. What is wrong with this code? Why can't I access to the SpellData?

If I disable LoadSpells function other part of the script loads without any problem.

 

Appreciate any help!


  • 0

#2
Zaloopa

Zaloopa

    Member

  • Members
  • 16 posts

****. I'm retarded. Seems like I've found the reason already.  :fappa:


  • 0

#3
rorshaack

rorshaack

    Advanced Member

  • Members
  • 55 posts

****. I'm retarded. Seems like I've found the reason already.  :fappa:

 

You can tell what? Just for study KappaHD


  • 1

#4
Zaloopa

Zaloopa

    Member

  • Members
  • 16 posts

You can tell what? Just for study KappaHD

Q = myHero.GetSpellData (_Q)

 

there should be ":" not "."

 

= myHero:GetSpellData (_Q)

 

KappaRoss 


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users