Ivkan1997 1 Posted May 24, 2018 Share Posted May 24, 2018 Hello, I have around 10 macros already added in fightclass but with this one Im struggling... Macro is: /run for bag=0,4,1 do for slot=1,36,1 do local name=GetContainerItemLink(bag,slot);if (name and string.find(name,"Item1")) or (name and string.find(name,"Item2")) then PickupContainerItem(bag,slot);DeleteCursorItem();end;end;end hint( its working if Im clicking it by myself ingame) At fightclass editor its written like this: RunMacroText("/run for bag=0,4,1 do for slot=1,36,1 do local name=GetContainerItemLink(bag,slot);if (name and string.find(name,"Item1")) or (name and string.find(name,"Item2")) then PickupContainerItem(bag,slot);DeleteCursorItem();end;end;end"); hint(doesnt work at all if fightclass tried to preform action) I dont wana put it on action bar and make macro to click it, because i want it in fightclass editor to be done, since i need it only at specific lvl to be clicked, for exampe 10-20lvl any suggestions etc? Link to comment https://wrobot.eu/forums/topic/9463-macro-in-fightclass-doesnt-work/ Share on other sites More sharing options...
Ivkan1997 1 Posted May 24, 2018 Author Share Posted May 24, 2018 also i wouldnt need to do this if someone know the way to autoequip weapons. Butler doesnt euqip well for me because it doesnt know to equip off hand, only main hand. so my character is always having 1-2dmg dagger in off hand during lvling and butler force everything to keep that off hand... Link to comment https://wrobot.eu/forums/topic/9463-macro-in-fightclass-doesnt-work/#findComment-43982 Share on other sites More sharing options...
Droidz 2738 Posted May 24, 2018 Share Posted May 24, 2018 Hello, Use code: for bag=0,4,1 do for slot=1,36,1 do local name=GetContainerItemLink(bag,slot);if (name and string.find(name,"Item1")) or (name and string.find(name,"Item2")) then PickupContainerItem(bag,slot);DeleteCursorItem();end;end;end or RunMacroText('/run for bag=0,4,1 do for slot=1,36,1 do local name=GetContainerItemLink(bag,slot);if (name and string.find(name,"Item1")) or (name and string.find(name,"Item2")) then PickupContainerItem(bag,slot);DeleteCursorItem();end;end;end'); (when you use RunMacroText, if in you macro you use character ", use ' ) Link to comment https://wrobot.eu/forums/topic/9463-macro-in-fightclass-doesnt-work/#findComment-43984 Share on other sites More sharing options...
Ivkan1997 1 Posted May 24, 2018 Author Share Posted May 24, 2018 Thank you for fast reply Droidz! Everything works perfectly now, thanks again and keep it up ?? Link to comment https://wrobot.eu/forums/topic/9463-macro-in-fightclass-doesnt-work/#findComment-43996 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now