How to execute scripts longer the limit of 255

since shadowlands some syntax has been changed and some macros become longer. for example this one
/script local i = 1; local abq = ‘Quest name’; while C_QuestLog.GetInfo(i) do local qTit, _, _, _, _, _, _, _, qID = C_QuestLog.GetInfo(i) if qTit == abq then C_QuestLog.SetSelectedQuest(i); C_QuestLog.SetAbandonQuest(); C_QuestLog.AbandonQuest(); end i = i + 1 end
removes quest from log by name
the simplest way to execute it now?

1 Like
/run local i,qn,c = 1,"Quest name",C_QuestLog; while c.GetInfo(i) do local qTit, _, _, _, _, _, _, _, qID = c.GetInfo(i) if qTit == qn then c.SetSelectedQuest(i); c.SetAbandonQuest(); c.AbandonQuest(); end i = i + 1 end

ty for the attempt but not working)
mb something wrong with methods, but i got it right from wow.
gamepedia. com/ Patch_9.0.1/API_changes
nvm, shortcuts via variables are good but the question is still actual
how to expand the macro limit

addons

10char

By wrapping bigger scripts in an addon wrapper. Intead of clicking a macro you can f.e. type /abandonquests or /aq or whatever you can think of.

There are plenty of guides available showing how to make a basic one like this. Or just adjust it a little and use https://addon.bool.no/

2 Likes

thanks
i’ll try

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.