SphereCommunity
Player Color like Order7Chaos - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Player Color like Order7Chaos (/Thread-Player-Color-like-Order7Chaos)



Player Color like Order7Chaos - EOSCPM - 07-11-2014 05:54 PM

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.


RE: Player Color like Order7Chaos - XuN - 07-11-2014 10:08 PM

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.


RE: Player Color like Order7Chaos - Skul - 07-12-2014 01:03 AM

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.