LuaBot Class
Class LuaBot. Methods to run lua code with access to all .net and bot API.
Namespace:
robotManager.HelpfulExamples
C#
local log = clr.robotManager.Helpful.Logging local wowLua = clr.wManager.Wow.Helpers.Lua.Wow local lua = clr.wManager.Wow.Helpers.Lua local playerName = lua.LuaDoString('return GetUnitName("player")', clr.System.String, '') -- OR wowLua.GetUnitName("player") local txt = 'Player name: ' .. playerName .. ' - WRobot version: ' .. clr.wManager.Information.Version log.Write(txt); clr.System.Windows.MessageBox.Show(txt)
Assembly: robotManager (in robotManager.dll)