itemTotalCount (Solved, it works)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
nerf
Posts: 88
Joined: Thu Jan 27, 2011 10:44 am

itemTotalCount (Solved, it works)

#1 Post by nerf » Fri Nov 10, 2017 8:28 am

I open this topic as a query, since at this moment I can not enter into runes of magic, my question is as follows:

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>
second option

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!!!!!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 27 guests