I also use the InviteByName command. The difference is I use an addon called XBarIII which has InvitedByFriend incorporated into it.
As for starting up my farming script I use a combination that I threw together from different waypoint files and forum posts I've seen. I also use waypoint tags instead of creating different waypoint files and making calls to them.
Code: Select all
<!-- # 1 --><waypoint x="-32683" z="-14548" y="672" tag="runstart">
local dura = inventory:getMainHandDurability();
if inventory:itemTotalCount(0) == 0 or 90 > dura then
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
else
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("instance"));
end;
</waypoint>
What this does is first check if my bags are full and if they are not it will then check my main weapon durability (in case I died in the instance for whatever reason). If either the bags are full or my weapon has gone below 90% durability it will go to the waypoint section I tagged as "rerun" which goes to the NPC store. If I have empty bag space or my weapon is fine it will jump to the instance section I tagged as "instance".
--------------------------
You don't need an addon to sell the items. There are options in the bot now that will do that for you. Put the following in your profile:
Code: Select all
<!-- Advanced sell option -->
<option name="INV_AUTOSELL_ENABLE" value="true" /> <!-- true = on, false = off -->
<option name="INV_AUTOSELL_FROMSLOT" value="1" /> <!-- First bag slot to begin scanning for items to sell -->
<option name="INV_AUTOSELL_TOSLOT" value="110" /> <!-- Last bag slot to scan for items to sell -->
<option name="INV_AUTOSELL_QUALITY" value="white,green,blue" /> <!-- Item quality types that will be sold -->
<option name="INV_AUTOSELL_STATS_NOSELL" value="Moa,Card" /> <!-- Item name mask that you do not want to sell -->
In the NOSELL option I have it set so that it will not try to sell MOA items and also not try to sell any mob cards. Once you have those options in your profile and you have the bot running it will try to sell the items in the bag slots you have specified whenever it opens an NPC store.
--------------------------
As for leaving the instance there's 2 things I use:
This one is to check if my bags are full, and if so leave the instance and go to the NPC store.
Code: Select all
<!-- #109 --><waypoint x="2604" z="1491" y="47">
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000)
waitForLoadingScreen();
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
This one is the one I use to just exit the instance at the end and let the first waypoint (the first code box I put in this post) decide what should be done
once the game has finished loading out of the instance.
Code: Select all
<!-- # 78 --><waypoint x="4371" z="4868" y="47">
sendMacro("LeaveParty();");
yrest(4000)
waitForLoadingScreen();
yrest(4000)
__WPL:setWaypointIndex(__WPL:findWaypointTag("runstart"));
end
</waypoint>