Jump to content


Photo

spells in custom functions

gearswap

    No replies to this topic

    #1 theblackdeath

    theblackdeath

      Member

    • Members
    • PipPip
    • 15 posts

      Posted 13 April 2017 - 02:58 AM

      so ive been working on my ranger lua and added a function to check the chat for "you must wait longer to use that action".

      using

      function m_action_message(actor_id, target_id, actor_index, target_index, message_id, param_1, param_2, param_3)
       
      if (message_id == 94) then
      Range_Delay = Range_Delay + 1
      send_command('@wait '..Range_Delay..'; input /ra <t>')
      return
      end 
       
      end
      windower.register_event('action message', m_action_message);
       
      i wanted to add if spell.name = 'Ranged' so it will only activate and up the delay if im ranged attacking.
      but i cant add spell.name to the function cause i get a global spell is nil.
      is there a way of making it so i can have spell.name in there?






      Also tagged with one or more of these keywords: gearswap

      1 user(s) are reading this topic

      0 members, 1 guests, 0 anonymous users