Advertisement
Guest User

Emote-spamm-ikita-fixed-hot-key-8.lua

a guest
Mar 25th, 2013
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. --[[
  2. ikita's Emote spam
  3. credits to Broland and his Funny Phrases
  4. ]]
  5.  
  6. local HK = string.byte("8")
  7.  
  8. --[[ Config ]] --
  9. function OnLoad()
  10.     scriptActiveS = false
  11.     PrintChat(" >> Emote Spam loaded")
  12. end
  13.  
  14. -- (dance = 0, taunt=1, laugh=2, joke=3)
  15. function Emote(id)
  16.     p = CLoLPacket(0x47)
  17.     p:EncodeF(myHero.networkID)
  18.     p:Encode1(id)
  19.     p.dwArg1 = 1
  20.     p.dwArg2 = 0
  21.     SendPacket(p)
  22. end
  23.  
  24.  
  25. --[[ Code ]] --
  26.  
  27. function OnTick()
  28.     if scriptActiveS == true then
  29.         Emote(math.floor(math.random(3)))
  30.     end
  31. end
  32.  
  33.  
  34. function OnWndMsg( msg, keycode )
  35.     if msg == KEY_DOWN then
  36.         if keycode == HK then
  37.             if scriptActiveS then
  38.                 scriptActiveS = false
  39.                 PrintChat(" >> Emote Spam disabled!")  
  40.             else
  41.                 scriptActiveS = true
  42.                 PrintChat(" >>  Emote Spam enabled!")
  43.             end    
  44.         end
  45.     end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement