Attacking Only ## Npc

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Attacking Only ## Npc

#1 Post by Uniden65 » Sat Aug 08, 2020 3:14 pm

Is there a way to make a way point to attack on a Npc based on there ID number? and exnore the other npc's around them ..?

User avatar
ThulsaDoom
Posts: 123
Joined: Mon Oct 19, 2015 2:46 pm

Re: Attacking Only ## Npc

#2 Post by ThulsaDoom » Sun Aug 09, 2020 1:37 am

CDWriter wrote: Sat Aug 08, 2020 3:14 pm Is there a way to make a way point to attack on a Npc based on there ID number? and exnore the other npc's around them ..?
You can try to find and target the NPC.

Code: Select all

mytarget = player:findNearestNameOrId(108173) -- Guargo the Furious Bull
			
			if mytarget then 
				player:target_NPC(108173)
			end
Today there is no function that allows you to only target an NPC (as far as I know).
Now player:target_NPC() select the NPC and attack it, the problem with this function is that it always starts with a white hit, then continues with the attacks specified in the profile.

Before to do the same we did:

Code: Select all

player:target_NPC(108173) 
	player:fight()

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests