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
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #11
RE: 3 flags question
As I said instead of:

Code:
IF ((<UID.<SRC.GUILD>.ALIGN> == 1) && (<UID.<SRC.TARG.GUILD>.ALIGN> == 2)) || ((<UID.<SRC.GUILD>.ALIGN> == 2) && (<UID.<SRC.TARG.GUILD>.ALIGN> == 1))

why not:
Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>)

[Image: 2nis46r.jpg]
09-06-2012 07:31 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #12
RE: 3 flags question
There are three states: chaos neutral, and order. If the test is for "not equal" then a neutral player cannot heal a chaos or an order person without being made a criminal. Similarly, a order person healing a neutral person would be penalized...
09-06-2012 09:45 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #13
RE: 3 flags question
But... if you're being healed by a chaos player or an order player... are your really that neutral? Tongue

Besides that still only requires:

Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>) && (<UID.<SRC.TARG.GUILD>.ALIGN>!=0)

Still more efficient. I'm assuming 0 is neutral

[Image: 2nis46r.jpg]
09-08-2012 01:32 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

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



Post: #14
RE: 3 flags question
(09-06-2012 07:31 AM)Mordaunt Wrote:  As I said instead of:

why not:
Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>)

If you're neutral, do not you have to make criminal. If i neutral and i heal to a chaos i become criminal. Does not my idea.

Thanks

(09-08-2012 01:32 AM)Mordaunt Wrote:  But... if you're being healed by a chaos player or an order player... are your really that neutral? Tongue

Besides that still only requires:

Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>) && (<UID.<SRC.TARG.GUILD>.ALIGN>!=0)

Still more efficient. I'm assuming 0 is neutral

I try with this.

thanks
(This post was last modified: 09-13-2012 06:03 AM by daedelus.)
09-13-2012 06:02 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #15
RE: 3 flags question
Ahh... yes a neutral player would become criminal healing an order player in that instance

[Image: 2nis46r.jpg]
09-13-2012 08:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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