The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
special forces attacking npc with karma < 0
Author Message
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #12
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
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes rastrero's post
Post Reply 


Messages In This Thread
RE: special forces attacking npc with karma < 0 - rastrero - 02-02-2016 11:30 PM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)