Page 1 of 1

If no potions, Log Out

Posted: Sat Apr 10, 2010 2:30 am
by kernal32
Is this dooable ?

<onLeaveCombat>

scan bagspaces for health or mana potions, if none found, log out ?

Re: If no potions, Log Out

Posted: Sat Apr 10, 2010 3:21 am
by darknero
try liks this

Code: Select all

	inventory:update();
		if ( inventory:itemTotalCount("Heal-Drink-Name") == 0 ) then
                      loadPaths("bla/repair.xml");
		end
	</waypoint>