Command Just to attack NPC

Talk about anything in Runes of Magic. This does not need to pertain to botting.
Post Reply
Message
Author
Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Command Just to attack NPC

#1 Post 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Command Just to attack NPC

#2 Post 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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Re: Command Just to attack NPC

#3 Post by Uniden65 »

thanks lisa .. but if its in profile iam not sure where ...went throw every line ..
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Command Just to attack NPC

#4 Post 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" />
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Post Reply