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-nmm6 (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-nmm6 (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-nmm6 (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
Use of TAG.NAME.HUE for players?
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
Use of TAG.NAME.HUE for players?
Hey!

I'm having another issue with my scripts.

Right now, I am trying to use TAG.NAME.HUE to differ players from Order Faction to Chaos Faction.

While it runs just fine on NPCs (@CREATE), I couldn't get it to work on players, I'm probably using it just wrong.

What I have tried so far:

Code:
ELSEIF (<BLABLA> == 01) && (<SRC.RESTEST blabla>)
SRC.TAG.BLABLA=
SRC.TAG.BLA=1
SRC.TAG.NAME.HUE=07ab
SRC.SYSMESSAGE test.

Same if I use TAG.NAME.HUE. (never thought it would work, but...)

I also tried with a normal function;

Code:
[FUNCTION test_click]
TAG.NAME.HUE=07ab

And also with EVENTS...

Code:
[EVENTS e_test_click]
ON=@LOGIN
TAG.NAME.HUE=07ab
ON=@CLICK
TAG.NAME.HUE=07ab

Events and Functions:

Code:
ON=@CLICK
test_click

And even in-game:

Code:
.set TAG.NAME.HUE=07ab

Clearly, I don't know WTF I'm doing, can someone help me out with the proper use?

Thanks again!
(This post was last modified: 09-02-2013 07:47 PM by pinku.)
09-02-2013 07:45 PM
Find all posts by this user Like Post Quote this message in a reply
dagger4k
Journeyman
*

Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: Use of TAG.NAME.HUE for players?
I assume more scripts connect with the tag.name.hue (this being the determining factor for the player?)

Firstly If its just to change the player name colour you can handle this as an event that you add to the player.. For example
Code:
[event e_chaos]
on=@click
IF     (0<tag.chaos>== 01)
             message = @07ab [Chaos]
             message = @07ab <name>
    return 1
    endif


Then you can add more things to this to make sure you can't attack people in the same faction etc...

message back if this isn't what you wanted to do Tongue
09-02-2013 08:40 PM
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: #3
RE: Use of TAG.NAME.HUE for players?
TAG.NAME.HUE works fine.

It does not however work for tooltips and I am wondering if this is what is causing you issue, since that is what will show above a players head if you have FEATURE_AOS_UPDATE_B enabled. You would have to override those under the @ClientToolTip trigger

[Image: 2nis46r.jpg]
09-02-2013 09:42 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #4
RE: Use of TAG.NAME.HUE for players?
Well, this is a faaaaaaaar easier way and will work for me.. Tongue
I never really tried it on players, because on NPCs it shows the blue/red name on the journal anyway.

So on NPCs it looks like:

<COLORED NAME>
<NAME>

I'm surprised this works fine on players. Tongue
EXCEPT it overwrites my guild tags and etc. Tongue

However, I'm still looking for the solution for curiosity and because I planned to use TAG.NAME.PREFIX and TAG.NAME.SUFFIX.
Not that it would be hard to set a prefix and suffix with your EVENT, but yeah, I'm curious. xD
________________________________________________________________________________​_________________________________________
@Mordaunt

My FEATURE_AOS_UPDATE_B is disabled.
TAG.NAME.HUE works on NPCs for me, but not on players, I'm not sure why Tongue
(This post was last modified: 09-02-2013 10:23 PM by pinku.)
09-02-2013 09:51 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Use of TAG.NAME.HUE for players?
Tag.Name.Hue works fine for me, as dagger4k wrote, is it possible you have some sccripts that use tag.name.hue and conflicts each other ?
09-02-2013 10:34 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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