Code
function buff_change(BuffName,g_or_l) local BuffDurations = {Haste=180,Presto=30} if g_or_l and BuffDurations[BuffName] then windower.send_command('send Main timers c '..BuffName..' '..BuffDurations[BuffName]..' down') elseif BuffDurations[BuffName] then windower.send_command('send Main timers c '..BuffName..' 0 down') end end
Offending code:
Code
[code] function buff_change(BuffName,g_or_l) local BuffDurations = {Haste=180,Presto=30} if g_or_l and BuffDurations[BuffName] then windower.send_command('send Main timers c '..BuffName..' '..BuffDurations[BuffName]..' down') elseif BuffDurations[BuffName] then windower.send_command('send Main timers c '..BuffName..' 0 down') end end[ /code]