Hey cooco, I'm using your function to check for entities. I have a question about skills being used inside that function.cooco wrote: ↑Tue Oct 31, 2017 1:19 amthis show you ALL entity in 100meters rangeCode: Select all
function OnFrame() for ID, Entity in DictionaryIterator(EntityList:GetList()) do Write("Entity name: "..Entity:GetName().." EntityID: "..Entity:GetID().." EntityTypeID() - http://aiondatabase.net/en/npc/"..Entity:GetTypeID()); end end
I tried to use this routine that Diavolakos recommended:
Code: Select all
--Healing Routine when Hp lower than 65%
if Player:GetHealth() < 35 and CheckAvailable( "Cloak of Darkness" ) then
CheckExecute( "Cloak of Darkness" );
Write( "Healing up!")
return true;
end
My problem is that I'm trying to implement this:
Code: Select all
Summons = "Monster Name"
function OnFrame()
for ID, Entity in DictionaryIterator(EntityList:GetList()) do
if Entity:GetName() == Summons and CheckAvailable( "Terror's Restraint") then
PlayerInput:Console("/Select "..Summons)
PlayerInput:Console("/skill Soul Scream");
PlayerInput:Console("/skill Wave of Darkness");
PlayerInput:Console("/skill Terror's Restraint");
Write( "Siege Watcher Summons Detected!")
return true;
end
end
end
This skill spam is giving me problems to execute the healing routine, any ideas about how to make it follow the conditions?, this is the last thing that I need to finish a definitive script with no timers

PD: CheckAvailable function is as follows:
Code: Select all
function CheckAvailable( Name, SkipActivation )
-- Retrieve the ability with the provided name.
local Ability = AbilityList:GetAbility( Name );
-- Check if the ability is valid and is not in cooldown.
if Ability ~= nil and Ability:GetCooldown() == 0 and ( SkipActivation ~= nil or Ability:GetActivated()) then
return true;
end
-- Either we do not have the ability or it is in cooldown.
return false;
end