i've tried to create a fast and easy addon to use the regeneration sigil
what ive done before was
BTW "Siegel der Regeneration" is the german name for the item/buff
ingame create a macro and put it on key no9:
Code: Select all
/Script FocusUnit(12,"target")
/Script TargetUnit("player")
/Script UseItemByName("Siegel der Regeneration")
/Script TargetUnit("focus12")
/Script FocusUnit(12,"")Code: Select all
<onSkillCast><![CDATA[
if not player:hasBuff("Siegel der Regeneration") then
keyboardPress(key.VK_9);
yrest(330); end
]]></onSkillCast>This is not realy elegant...
my questions are
How do I focus my self? >> player:target(self) or sth like this
or should i do it like this
Code: Select all
if not player:hasBuff(GetIdName(500998)) then
sendMacro("FocusUnit(12,"target")");
sendMacro("TargetUnit("player")");
inventory:useItem(200005);
sendMacro("TargetUnit("focus12")");
sendMacro("FocusUnit(12,"")");
end