Attacking NPC's

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
cokebot
Posts: 54
Joined: Wed Oct 19, 2011 7:47 am

Attacking NPC's

#1 Post by cokebot » Wed Apr 19, 2017 10:53 am

Is it possible to attack NPC's with skills?

That means it must be possible to change this code from player.lua, for a waypoint :

Code: Select all

	-- don't target NPCs
	if( target.Type == PT_NPC ) then      -- NPCs are type == 4
		debug_target("thats a NPC, he should be friendly and not attackable")
		return false;         -- he is not a valid target
	end;
Thank you for answering

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Attacking NPC's

#2 Post by BlubBlab » Wed Apr 26, 2017 12:35 am

you can take the NPC as a target and then manually hit it with you own code
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 0 guests