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
client color character
Author Message
Novocaine
Apprentice
*

Posts: 3
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0

New Hera Reborn

Post: #1
client color character
Hi,

I'm trying to find out if is possilbe to set in client the color "orange" for guilds who have the same alignment, but are in war each other.

We are trying to remove the guild alignment, setting all the guilds to neutral, but we wish to keep the client colors for the in war guilds.

i.e.

A guild and B guild are neutral, but in war. Actually A and B can see each other in green due to the alignment, but i wish to set it to orange.

is it possible to do?

I have tried to use the tag.override.noto tag, but i saw that reads the noto_types defined in sphere_defs.scp

should I add a new def under noto_types?

thank you Smile
03-29-2014 02:08 AM
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: client color character
http://wiki.sphere.torfo.org/index.php/@NotoSend

NOTE: changing colors will make them to change everything for the system itself, ie:making them orange will allow them to kill themselves without criminal problems wich is what you want but making them greens even being red/orange/criminal will make them to fire the hardcoded criminal checks, also giving them another colors not defined will make the Notoriety system ignore them.
03-29-2014 07:51 AM
Find all posts by this user Like Post Quote this message in a reply
Novocaine
Apprentice
*

Posts: 3
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0

New Hera Reborn

Post: #3
RE: client color character
hi there.

i notice that tag.override.noto.uid is not working as intended.

i tried to use @NotoSend to create an event, but is still not working.

Code:
ON=@NotoSend
    src.sysdebug src <src.name>, i <i.name>
IF !( <I.UID> == <SRC.UID> )
        IF ( <I.HASGUILD> ) && ( <SRC.HASGUILD> )
            REF1=<SRC.MEMORYFINDTYPE.MEMORY_GUILD.LINK>    //gilda di SRC
            REF2=<I.MEMORYFINDTYPE.MEMORY_GUILD.LINK>        //gilda di I
            IF ( <REF1.UID> == <REF2.UID> )    //se appartengono alla stessa gilda, allora sono alleati
                src.SYSMESSAGE <ref1.abbrev> <ref2.abbrev>
                IF (<SRC.FLAGS>&statf_criminal)
                    I.TAG.OVERRIDE.NOTO.<SRC.UID>=4 //MOSTRAMI COME CRIMINAL A SRC
                    SAY <src.name> CRIMINAL
                ENDIF
                IF ( <SRC.KILLS> >= 5 )
                    I.TAG.OVERRIDE.NOTO.<SRC.UID>=6 // MOSTRAMI COME EVIL A SRC
                    SAY <src.name> EVIL
                ENDIF
                IF !( <SRC.FLAGS>&statf_criminal ) || ( <SRC.KILLS> < 5)
                    SAY <src.name> SAME GUILD
                    I.TAG.OVERRIDE.NOTO.<SRC.UID>=2 //MOSTRAMI COME VERDE A SRC
                ENDIF
            ELSE
                IF ( <REF1.guildfromuid.<I.MEMORYFINDTYPE.MEMORY_GUILD.LINK>.isenemy> )
                    I.TAG.OVERRIDE.NOTO.<SRC.UID>=5
                    SAY <src.name> - <SRC.UID> - <SRC.TAG.OVERRIDE.NOTO.<I.UID>> ENEMY
                ELSE
                    SAY <src.name> - <SRC.UID> - <SRC.TAG.OVERRIDE.NOTO.<I.UID>> NON-IN-GUERRA
                ENDIF
            ENDIF
        ENDIF
    ENDIF

script passes and "say" comand spam correctly the align intended, tag is also written but not working.
any suggestion?
(This post was last modified: 04-03-2014 05:26 AM by Novocaine.)
04-03-2014 05:26 AM
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: #4
RE: client color character
Yup, I suggest you to read again the @NotoSend trigger ' http://wiki.sphere.torfo.org/index.php/@NotoSend '.

This trigger does the whole trick, tag.override.noto.uid is deprecated.

Use argn=5 instead of I.TAG.OVERRIDE.NOTO.<SRC.UID>=5
04-03-2014 06:03 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Novocaine
Apprentice
*

Posts: 3
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0

New Hera Reborn

Post: #5
RE: client color character
thank you, now it works Smile
04-03-2014 09:04 AM
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)