Skip to content

Instantly share code, notes, and snippets.

@thecuriousorange
Last active August 8, 2017 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecuriousorange/14a3355e28f707e0135e0803886931ac to your computer and use it in GitHub Desktop.
Save thecuriousorange/14a3355e28f707e0135e0803886931ac to your computer and use it in GitHub Desktop.
incorrect script for checking haste received
windower.register_event('chat message' ,
if string:find("casts Haste") and string:find(""..player.name.." gains the effect of Haste") then
hastetype=1
elseif string:find("casts Haste ii") and string:find(""..player.name.." gains the effect of Haste") then
hastetype=2
elseif string:find("casts Flurry") and string:find(""..player.name.." gains the effect of Flurry") then
hastetype=3
elseif string:find("casts Flurry ii") and string:find(""..player.name.." gains the effect of Flurry II") then
hastetype=4
end
add_to_chat(206,"hastetype:"..hastetype.."")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment