ok, i worked on some macro stuff, but it is a bit different from the uo stuff.
there is no ingame editor dialog for it, you have to edit a textfile : data/mymacros.lua
you can assign macros like this :
Code:
SetMacro("ctrl+s",function() MacroCmd_Open("Status") end) -- Open Status window
SetMacro("alt+c",function() MacroCmd_ToggleWarmode() end) -- Toggle between War/Peace modes
SetMacro("alt+p",function() MacroCmd_Open("Paperdoll") end) -- Open Character Window
SetMacro("alt+k",function() MacroCmd_Open("Skill") end) -- Open Skills
SetMacro("alt+j",function() MacroCmd_Open("Journal") end) -- Open Journal
SetMacro("alt+i",function() MacroCmd_Open("Backpack") end) -- Open Backpack
SetMacro("alt+x",function() MacroCmd_Quit() end) -- Quit game
SetMacro("alt+b",function() MacroCmd_Say("*bow*") end) -- Bow
SetMacro("alt+s",function() MacroCmd_Say("*salute*") end) -- Salute
it can be mapped to all sorts of keys, including numbers and function keys
you can also specify conditionals like
Code:
if (MacroRead_PlayerStat("curHits") < 0.5*MacroRead_PlayerStat("maxHits")) then MacroCmd_Say("i'm half-dead !") end
will trigger if the player health is below 50%
not all commands from uo are implemented yet, please tell us which ones you consider most important of the missing ones.
making "pause" possible during a command like in uo would require a bigger bunch of coding on our part (lua-coroutine stuff i think), so for now if that is needed please use
InvokeLater(timeout_in_milliseconds,function () .... stuff to do later.... end)
more docs about commands and syntax are in the template for that file (gets copyed on first start)
http://zwischenwelt.org/trac/iris/brows ... s.lua.dist