Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. function m_action(action)
  2.            
  3.     for index,target in pairs(action['targets']) do
  4.         if (action['targets'] ~= nil) then
  5.             for target_index,target in pairs(action['targets']) do
  6.                 for action_index,action in pairs(target['actions']) do
  7.                     if (action['message'] == 75) then
  8.                         return;
  9.                     end
  10.                 end
  11.             end
  12.         end
  13.         -- if (action['category'] == 12) then
  14.             -- if (message_id == 94) then
  15.                 -- add_to_chat(167, ' wowzer')
  16.                 -- Range_Delay = Range_Delay + 1
  17.                 -- send_command('@wait 2; input /ra <t>')
  18.                 -- return
  19.             -- end     
  20.         -- end
  21.         if (target['id'] == player['id']) then
  22.                 -- spells that are applied to you --
  23.             if (action['category'] == 4) then
  24.                 if (action['param'] == 845) then -- flurry
  25.                    Flurry = "f1";
  26.                 elseif (action['param'] == 846) then -- flurry II
  27.                     Flurry = "f2"; -- can make it a 2 and add another snapshot set with more rapid shot
  28.                 end
  29.             end -- make embrava turn flurry to 1
  30.            
  31.         end
  32.     end
  33. end
  34. windower.register_event('action', m_action);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement