Jump to content

Macro in fightclass doesnt work!


Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...