rastrero
Master
Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3
|
RE: special forces attacking npc with karma < 0
This code is bad.
U cant put timer like that on npcs or players.
It will not work.
Anyway u dont need to make a forchars or anything if u are going to use @npcseenewplayer
Its not neccesary. The scripts we writte for u are usefull for "talk orders" or other ways, but not in this trigger.
Try this better on your ranger npc script.
Code:
[chardef c_ranger] /your npc ranger
id, bla bla bal
On=@npcseenewplayer
if (<src.karma> < -799)
attack //or attack <src>
else
return 1 //this make the npc tp check karma again and again until target go out of range.
endif
Or this other in any npc u want.It makes npcs to attack and call rangers in area for help if they see a criminal.
Code:
On=@npcseenewplayer
if (<src.karma> < -799)
say Help Rangers! Help ME!!!
attack //or attack <src>
ref500=<src.uid>
forchars 18 //yelldistance
if <tag0.ranger>
attack <src.uid>
endif
endfor
else
return 1 //this make the npc to check again later if karma > -799
endif
i think this is the best way to do what u want...
(This post was last modified: 02-02-2016 11:45 PM by rastrero.)
|
|
02-02-2016 11:30 PM |
|
The following 1 user Likes rastrero's post:1 user Likes rastrero's post
Berkley (02-03-2016)
|