Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Pick a Card 1.3 by eXtragoZ
- Credits: Sumizome's, Keoshin, Taikumi, Zynox, Weee, h0nda & ikita
- Thanks Kilua for telling me a more efficient way to do it
- It requires AllClass
- Features:
- -Checks spell name and select the chosen card
- Press T to pick the Red card
- Press E to pick the Blue card
- Press Spacebar to pick the Yellow card
- ]]--
- if myHero.charName ~= "TwistedFate" then return end
- require "AllClass"
- --[[ Code ]]
- local selected = "goldcardlock"
- local lastUse = 0
- function OnLoad()
- PaCConfig = scriptConfig("Pick a Card 1.3", "pickacard")
- PaCConfig:addParam("selectgold", "Select Gold", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- PaCConfig:addParam("selectblue", "Select Blue", SCRIPT_PARAM_ONKEYDOWN, false, 69)
- PaCConfig:addParam("selectred", "Select Red", SCRIPT_PARAM_ONKEYDOWN, false, 84)
- PaCConfig:permaShow("selectgold")
- PaCConfig:permaShow("selectblue")
- PaCConfig:permaShow("selectred")
- end
- function OnTick()
- if myHero:CanUseSpell(_W) == READY and GetTickCount()-lastUse <= 2300 then
- if myHero:GetSpellData(_W).name == selected then CastSpell(_W) end
- end
- if myHero:CanUseSpell(_W) == READY and GetTickCount()-lastUse >= 2400 then
- if PaCConfig.selectgold then selected = "goldcardlock"
- elseif PaCConfig.selectblue then selected = "bluecardlock"
- elseif PaCConfig.selectred then selected = "redcardlock"
- else return end
- CastSpell(_W)
- lastUse = GetTickCount()
- end
- end
- function OnWndMsg(msg,key)
- SC__OnWndMsg(msg,key)
- end
- function OnDraw()
- SC__OnDraw()
- end
- PrintChat(" >> Pick a Card 1.3 loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement