NoobBotter's LogPlayer Userfunction

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: NoobBotter's LogPlayer Userfunction

#21 Post by beanybabe » Tue Feb 09, 2016 1:43 am

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]);	
Attachments
userfunction_LogPlayer.lua
log player mod shows player class and guild.
(3.52 KiB) Downloaded 164 times

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: NoobBotter's LogPlayer Userfunction

#22 Post by beanybabe » Tue Feb 09, 2016 9:01 pm

Next I need learn to read file back in and use it for data.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests