Page 2 of 2

Re: NoobBotter's LogPlayer Userfunction

Posted: Tue Feb 09, 2016 1:43 am
by beanybabe
hopefully some day the classtable can be added into bot or function and not be needed here.
this creates a log file in \micromacro\scripts\rom\logs\BotSummary.txt that gives some detail on each char its run on.

you can use this like this in player profile or

Code: Select all

	<onLoad><![CDATA[
		-- Additional Lua code to execute after loading the profile
		-- and before the bot starts. e.g. You could overwrite profile settings here
		-- like: changeProfileOption("HP_REST", 60);
	local classtable = {"WARRIOR", "SCOUT", "ROGUE", "MAGE", "PRIEST", "KNIGHT", "WARDEN", "WARDEN", "DRUID", "WARLOCK", "CHAMPION"}	
	logPlayer(classtable[player.Class1],classtable[player.Class2]);		
	]]></onLoad>
use this in a waypoint

Code: Select all

	classtable = {"WARRIOR", "SCOUT", "ROGUE", "MAGE", "PRIEST", "KNIGHT", "WARDEN", "WARDEN", "DRUID", "WARLOCK", "CHAMPION"}	
	logPlayer(classtable[player.Class1],classtable[player.Class2]);	

Re: NoobBotter's LogPlayer Userfunction

Posted: Tue Feb 09, 2016 9:01 pm
by beanybabe
Next I need learn to read file back in and use it for data.