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
3 flags question
Author Message
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #4
RE: 3 flags question
Code:
//CHEQUEO SI SOS CRIMI, PK O TENES KARMA NEGATIVA, TE HACES CRIMI.
IF (<SRC.TARG> == (<SRC>) //if cure myself don't applied de condition
ELSE
  IF (<SRC.TARG.FLAGS>&statf_criminal) || (<SRC.TARG.KILLS> >= 3 ) || (<SRC.TARG.KARMA> <= -2000 )
   SRC.CRIMINAL = 1
    SRC.UPDATE
    SRC.SYSMESSAGE Criminal!
   SRC.SYSMESSAGE @07d1 Has curado a un bandido!, ahora eres un criminal!
  RETURN 1
ENDIF
ENDIF

//Check allign, if you are order and cure a chaos, you criminal
IF (<SRC.TARG> == (<SRC>)
ELSE
  IF ((<SRC.ALIGN == 2>) && (<SRC.TARG.ALIGN> == 1)) || ((<SRC.ALIGN> == 1) && (<SRC.TARG.ALIGN> == 2))
   SRC.CRIMINAL = 1
    SRC.UPDATE
    SRC.SYSMESSAGE Criminal!
   SRC.SYSMESSAGE @07d1 Has curado a un enemigo!, ahora eres un criminal!
  RETURN 1
ENDIF
ENDIF

Code:
IF (<SRC.TARG> == (<SRC>) // if cure myself don't applied de condition, i think necesary.

I not check the second code, but the script is ok? or Do you suggest me to do another something?
The first one code works.

Thanks
(This post was last modified: 09-01-2012 03:55 AM by daedelus.)
09-01-2012 03:50 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
3 flags question - daedelus - 08-31-2012, 04:15 AM
RE: 3 flags question - RanXerox - 08-31-2012, 04:54 AM
RE: 3 flags question - daedelus - 08-31-2012, 05:00 AM
RE: 3 flags question - daedelus - 09-01-2012 03:50 AM
RE: 3 flags question - RanXerox - 09-01-2012, 01:50 PM
RE: 3 flags question - daedelus - 09-03-2012, 09:50 PM
RE: 3 flags question - RanXerox - 09-04-2012, 03:18 AM
RE: 3 flags question - Extreme - 09-04-2012, 04:53 AM
RE: 3 flags question - Mordaunt - 09-05-2012, 01:32 AM
RE: 3 flags question - daedelus - 09-05-2012, 10:08 PM
RE: 3 flags question - Mordaunt - 09-06-2012, 07:31 AM
RE: 3 flags question - daedelus - 09-13-2012, 06:02 AM
RE: 3 flags question - RanXerox - 09-06-2012, 09:45 AM
RE: 3 flags question - Mordaunt - 09-08-2012, 01:32 AM
RE: 3 flags question - Mordaunt - 09-13-2012, 08:48 AM

Forum Jump:


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