Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Funny Phrases 3.1
- Written by Broland
- Credits to Trus, Manciuszz, and Spudgy for the help
- -- Now taunts on spell cast
- ]]
- if myHero == nil then myHero = GetMyHero() end
- infoTable = {
- {name="Annie", spell = _R, sendchat="KATTIBERS!!!"},
- {name="Blitzcrank", spell = _R, sendchat="QUIET!!"},
- {name="Caitlyn", spell = _R, sendchat="BOOM, HEADSHOT!!"},
- {name="Darius", spell = _R, sendchat="GET DUNKED KID!"},
- {name="Chogath", spell = _R, sendchat="NOM NOM NOM"},
- {name="Garen", spell = _R, sendchat="DEMACIA!!!"},
- {name="Karthus", spell = _R, sendchat="KABOOM!!!"},
- {name="Katarina", spell = _R, sendchat="SPIN 2 WIN!!!"},
- {name="Lux", spell = _R, sendchat="I'M FIRIN' MY LAZAR!!!"},
- {name="DrMundo", spell = _R, sendchat="MUNDO GO WHERE HE PLEASES"},
- {name="Pantheon", spell = _R, sendchat="This is SPARTA!!!"},
- {name="Sona", spell = _R, sendchat="Dance, Dance, Baby Tonight!"},
- {name="Tryndamere", spell = _R, sendchat="I'M TRYNDAQUEER! AHAHAHHA"},
- {name="Vladimir", spell = _W, sendchat="TROLOLOLOLOL"},
- }
- for i = 1, #infoTable, 1 do
- if myHero.charName == infoTable[i].name then
- datIntel = infoTable[i]
- break
- end
- end
- if datIntel ~= nil then
- --[[ Config ]] --
- local sendChat = true -- initial state of send chat feature
- local sendChatKey = 118 -- key for toggling send chat feature (F7=118)
- -- (dance = 0, taunt=1, laugh=2, joke=3)
- function Emote(id)
- p = CLoLPacket(0x47)
- p:EncodeF(myHero.networkID)
- p:Encode1(id)
- p.dwArg1 = 1
- p.dwArg2 = 0
- SendPacket(p)
- end
- --[[ Code ]] --
- alerted = false
- function OnTick()
- if myHero.dead then return end
- if myHero.charName == datIntel.name and myHero:CanUseSpell(datIntel.spell) == READY then
- alerted = false
- end
- if myHero.charName == datIntel.name and myHero:CanUseSpell(datIntel.spell) == COOLDOWN and sendChat == true and alerted == false then
- Emote(1)
- SendChat("/all "..datIntel.sendchat)
- alerted = true
- end
- end
- function OnWndMsg( msg, keycode )
- if msg == KEY_DOWN then
- return
- end
- if sendChatKey ~= nil and keycode == sendChatKey then
- if sendChat == false then
- sendChat = true
- PrintChat("<font color='#7CFC00'> >>Funny Phrases Enabled</font>")
- else
- PrintChat("<font color='#7CFC00'> >>Funny Phrases Disabled</font>")
- sendChat = false
- end
- end
- end
- PrintChat(" >> Funny Phrases loaded")
- end
Advertisement
Add Comment
Please, Sign In to add comment