Integrate Macro: Equip Mainhand and Offhand
Posted: Sat Mar 24, 2012 11:17 am
Greetings. I have this macro to equip my mainhand and offhand from my bag items. Can anyone tell me how to integrate it to the code below?
This is the macro:
This is my WP I want the macro to work in:
Thanks 
This is the macro:
Code: Select all
/run EquipItem(16) EquipItem(17) mh,offh = nil,nil
/run _,_,ts=GetBagCount() for i=1,ts do ii,_,n=GetBagItemInfo(i) if n=="Name of Offhand goes here" then offh=ii elseif n=="Name of Mainhand goes here" then mh = ii end end
/run EquipItem(16, mh) EquipItem(17, offh)Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
--== User Option ==--
startGMDetect()
__WPL:setWaypointIndex(1);
</onLoad>
<!-- # 1 --><waypoint x="-xxxx" z="xxxx" y="xxx">
repeat
player:target_Object("Mailbox"); yrest(1000); -- mailbox
until RoMScript("SpeakFrame:IsVisible()")
repeat
sendMacro("ChoiceOption(1);"); yrest(1000);
until RoMScript("MailFrame:IsVisible()")
UMM_TakeMail ();
yrest(2000);
RoMScript("UMMFrame:Hide()");
yrest(300);
inventory:useItem("Name of Bow")
inventory:useItem("Name of Leggings")
inventory:useItem("Name of Chest Armor")
-- hoping to insert equip offhand/mainhand macro here
</waypoint>
<!-- # 2 --><waypoint x="xxxx" z="xxxx" y="-xx"> </waypoint>
<!-- # 3 --><waypoint x="xxxx" z="xxxx" y="xxx"> </waypoint>
<!-- # 4 --><waypoint x="xxxx" z="xxxx" y="xxx"> loadPaths("Name of Path")
</waypoint>
</waypoints>