Page 1 of 1
Command Just to attack NPC
Posted: Mon Jul 16, 2012 10:51 pm
by Uniden65
Iam running an instance and since iam higher level then the boss i run past it to the left and cant pull aggro becuase it does not attack me. the code i used to attack the boss is
Code: Select all
local portalIn = 103169;
player:target_NPC(portalIn);
This code does work it runs up too the boss and treats it like a Npc , But when it gets attack it fights and kills it ...
is there a way to target the boss so it will use my Range weapons like before ? since it does not aggro any more or tag it from a far
Re: Command Just to attack NPC
Posted: Tue Jul 17, 2012 1:00 am
by lisa
you interact with NPC's be using the "attack" skill, so that is what it is doing, targets the object and then uses "attack" on it.
Code: Select all
local _enemy = player:findNearestNameOrId(103169)
if _enemy then
player:target(_enemy)
player:fight()
end
Personally I would just change your profile settings so it does attack the boss, it is either a lvl things or a HP thing, either way the answer is in profile to make it attack like normal.
Re: Command Just to attack NPC
Posted: Wed Jul 18, 2012 11:39 am
by Uniden65
thanks lisa .. but if its in profile iam not sure where ...went throw every line ..
Re: Command Just to attack NPC
Posted: Wed Jul 18, 2012 7:09 pm
by lisa
either lvl thing
Code: Select all
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="3" />
<option name="TARGET_LEVELDIF_BELOW" value="50" />
or hp thing
Code: Select all
<option name="AUTO_ELITE_FACTOR" value="20" />
-- mobs with x * your HP value counts as 'Elite' and we will not target it
or you could simply turn on party and party instance which would negate the elite factor, since you want to kill bosses.
Code: Select all
<!-- Party Bot options -->
<option name="PARTY" value="true" />
<option name="PARTY_ICONS" value="true" />
<option name="PARTY_INSTANCE" value="true" />