Iris2.de
http://iris2.de/forum/

Question about queue targets
http://iris2.de/forum/viewtopic.php?f=15&t=1298
Page 1 of 1

Author:  Blacula [ Mon Dec 01, 2008 6:19 pm ]
Post subject:  Question about queue targets

Ghoulsblade informed me that:
ghoulsblade wrote:
Queue Targets :
MacroCmd_QueueTargetSerial(targetserial,timeout)
is already available for usage in hotkeys =)


how is that?

All I want is to set 'wheelup' to 'queue target self' and 'wheeldown' to 'queue last target' but I am unfamiliar with the 'queue targets' syntax in lua.
Any help would be appreciated, thank you :>

Author:  ghoulsblade [ Mon Dec 01, 2008 7:41 pm ]
Post subject: 

this should work =)
put into data/mymacros.lua

Code:
SetMacro("wheelup",      function() MacroCmd_QueueTargetSerial(GetPlayerSerial(),1000) end)
SetMacro("wheeldown",   function() MacroCmd_QueueTargetSerial(MacroGetLastTargetSerial(),1000) end)

function MacroGetLastTargetSerial ()
   if (not gMacroLastTargetMemory) then return 0 end
   if (gMacroLastTargetMemory.hittype == kMousePickHitType_Mobile) then return gMacroLastTargetMemory.mobile.serial end
   if (gMacroLastTargetMemory.hittype == kMousePickHitType_Dynamic) then return gMacroLastTargetMemory.dynamic.serial end
end

Author:  Blacula [ Mon Dec 01, 2008 8:12 pm ]
Post subject: 

Ok, I'll test it and thank you for your (extremely quick)help :>

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/