-
cokebot
- Posts: 54
- Joined: Wed Oct 19, 2011 7:47 am
#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
-
BlubBlab
- Posts: 948
- Joined: Fri Nov 30, 2012 11:33 pm
- Location: My little Pony cafe
#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
Who is online
Users browsing this forum: No registered users and 1 guest