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
Player Color like Order7Chaos
Author Message
EOSCPM
Apprentice
*

Posts: 22
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2014
Reputation: 0



Post: #1
Player Color like Order7Chaos
Hi,

How can i set a new color like order / chaos green and brown colours ?. I wrote a code, 3 guild in Order faction but they can fight in Order. I Need a new color for this.

Thank you.
07-11-2014 05:54 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Player Color like Order7Chaos
Sphere.ini:
Code:
// Default color settings for characters (name, speech)
//ColorNotoGood=059       // blue
//ColorNotoGuildSame=03f  // green (ally)
//ColorNotoCriminal=03b2  // grey (criminal)
//ColorNotoNeutral=03b2   // grey (can be attacked)
//ColorNotoEvil=022       // red
//ColorNotoGuildWar=090   // orange (enemy guild)
//ColorNotoInvul=035      // yellow
//ColorNotoDefault=03b2   // grey (if not any other)

Uncomment these lines and change values at your wish.
(This post was last modified: 07-11-2014 10:08 PM by XuN.)
07-11-2014 10:08 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #3
RE: Player Color like Order7Chaos
Code:
on=@click //player event
if (<memoryfindtype.0400>) && (<src.memoryfindtype.0400>)
  if (<memoryfindtype.0400.link.align>==1) && (<src.memoryfindtype.0400.link.align>==1)
    if !(<memoryfindtype.0400.link>==<src.memoryfindtype.0400.link>)
      message @1120 <name> //brown message
      return 1
    endif
  endif
endif
Looks memory_guild, if they're both aligned order and not the same guild then messages <name> in brown.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
07-12-2014 01:03 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: 1 Guest(s)