supposedly for me, with these lines, the bot should follow the waypoint (MailRoute) as long as in the backpack we have 5841 times the desired object (or more) is correct ??
I have looked at other themes and got this, which should I use in case one of the 2 is correct ??? and if the two are correct which one should I use?
First option
Code: Select all
<!-- # 1 --><waypoint x="-4173" z="-6276" y="68">
print("Number of items collected", inventory:itemTotalCount("ItemID"))
if (inventory:itemTotalCount(ItemID) >= 5841) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("MailRoute"));
end
</waypoint>
</waypoints>
Code: Select all
<!-- # 2 --><waypoint x="-4173" z="-6276" y="68">
if 5841 > inventory:itemTotalCount(ItemID) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("MailRoute"));
end
</waypoint>
</waypoints>
EDIT: Sorry!!!!!