Code: Select all
<onSkillCast>
if _t ~= nil then
leaptime = os.difftime(os.time(), _t)
if ( leaptime > 21 and 28 > leaptime ) then
keyboardHold( settings.hotkeys.MOVE_FORWARD.key )
yrest(4500)
keyboardHold( settings.hotkeys.ROTATE_RIGHT.key )
yrest(1500)
keyboardPress(key.VK_SPACE)
yrest(500)
keyboardRelease( settings.hotkeys.MOVE_FORWARD.key )
keyboardRelease( settings.hotkeys.ROTATE_RIGHT.key )
yrest(200)
player:cast("DRUID_RECOVER")
yrest(2200)
player:cast("WARRIOR_ENRAGED")
player:cast("WARRIOR_BERSERK")
player:cast("WARRIOR_SURPRISE_ATTACK")
_t = os.time()
end
yrest(100)
end
if (35 > player.HP/player.MaxHP*100) then
player:cast("WARRIOR_DEFENSIVE_FORMATION")
elseif (50 > player.HP/player.MaxHP*100) then
player:cast("WARRIOR_SURVIVAL_INSTINCT")
end
--if (70 > player.HP/player.MaxHP*100) then
-- player:cast("DRUID_RECOVER")
-- yrest(2200)
--end
if arg1.Name == "WARRIOR_SURPRISE_ATTACK" then
RoMScript("UseSkill(1,1)")
elseif arg1.Name == "WARRIOR_PROBING_ATTACK" then
player:cast("WARRIOR_OPEN_FLANK")
player:cast("WARRIOR_TREMOR")
elseif arg1.Name == "WARRIOR_SLASH" then
player:cast("WARRIOR_TACTICAL_ATTACK")
--elseif arg1.Name == "DRUID_RECOVER" then
--yrest(2200)
end
<![CDATA[
-- Additional Lua code to execute when casting a skill
-- Note: arg1 contains the skill being used.
-- i.e. arg1.Name will be the name of the skill being cast
-- e.g.:
--if( 15 > player.HP/player.MaxHP*100 ) then
-- player:cast("PRIEST_SOUL_SOURCE");
--elseif( 25 > player.HP/player.MaxHP*100 ) then
-- player:cast("PRIEST_HOLY_AURA");
-- player:cast("PRIEST_URGENT_HEAL");
-- player:cast("PRIEST_URGENT_HEAL");
]]></onSkillCast>
Also, could we get the below skills added to skills.xml?
Code: Select all
<skill name="WARRIOR_GUARDIAN'S_PLEDGE" id="494036" skilltab="4" skillnum="12" mana="1" cooldown="180" type="buff" target="self" />
<skill name="WARRIOR_TREMOR" id="494035" skilltab="4" skillnum="10" mana="1" cooldown="15" type="damage" target="enemy" />
<skill name="WARRIOR_TERROR" id="490142" aslevel="32" rage="30" range="90" cooldown="45" type="damage" target="enemy" />