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?