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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Army Job
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
Army Job
a better and working way to do this please?

Code:
[EVENTS e_army_job]
ON=@CLICK
IF (<EVAL <SRC.TAG0.MILITARY>>==1) && !(STRMATCH("<SRC.TAG.ARMY>","<TAG.ARMY>"))//IS A PLAYER IN THE MILITARY AND NOT SAME ARMY
ATTACK
SAY Die soldier of <SRC.TAG.ARMY>!
ELSE
SAY Hi//DO NOTHING LEAVE CIVILIANS WITH NO MILITARY TAG ALONE
RETURN 0
//
IF (<SRC.FLAGS>&statf_criminal) || (<SRC.KILLS> >= 3 ) || (<SRC.KARMA> <= -2000 )//ATTACK ALL CRIMINALS, MILITARY AND CIVILIAN
Say Beat it criminal!
ATTACK
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>>040004010)//ATTACK every PLAYER made guild
ATTACK
//
ENDIF
RETURN 1

ON=@NPCSeeNewPlayer
IF !(STRMATCH("<SRC.TAG.ARMY>","<TAG.ARMY>"))//FOR NPCS TO ATTACK OTHER NPCS NOT IS SAME ARMY
ATTACK
SAY Die!

i want them to attack military PLAYERS and other military NPCS in any other army other than their own! (all armies are at war)
i want them to leave non criminal civilians alone.
i want them to attack criminal players.(civilian or military dont matter...)
i want them to attack any player made guild.

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-25-2015 03:20 AM by x77x.)
10-25-2015 03:13 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Army Job - x77x - 10-25-2015 03:13 AM
RE: Army Job - XuN - 10-25-2015, 05:24 AM
RE: Army Job - x77x - 10-25-2015, 05:59 AM
RE: Army Job - x77x - 10-25-2015, 08:34 AM
RE: Army Job - XuN - 10-26-2015, 05:01 AM

Forum Jump:


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