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-nmm7 (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-nmm7 (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-nmm7 (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: #2
RE: special forces attacking npc with karma < 0
Edit.
hmm wait i think I did not understand what u wanted.

Is this?

[function f_special_force_order_attack]
forchars 16 // chars and npcs 16 tiles distance
if (<karma>>=2000) //blue karma npc
f_special_forces
endif
endfor

[function f_special_forces]
ref12=<uid>
forchars 16 // chars and npcs 16 tiles distance
if (<karma><=0)
ref12.attack <uid>
return 1 //stop checking to attack only one.
endif
endfor
(This post was last modified: 01-19-2016 05:44 AM by rastrero.)
01-19-2016 03:54 AM
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 - 01-19-2016 03:54 AM

Forum Jump:


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